Thursday, July 14, 2011

dos2unix in vim

http://www.xappsoftware.com/wordpress/2009/03/31/dos2unix-using-vi-or-vim/

the gist of which is:

:%s/^M//g

and to compose the ^M character you need to press 
CTRL-V -> CTRL-M

No comments: