Thursday, September 27, 2012

Remove ^M with Vi

Every now and then I need to strip ^M characters from a file while using vi and too many times I've tried to remember the following and can't commit this to memory :P  

:%s/[ctrlkey+v and ctrl-key+M]//g

I end up having to google it and end up  at

So, ya, I've put it here also :)   Thanks thedansehproject!