Jeff Roberts
RHCE #804006066322833
Vim-Fu is now iPhone and Android friendly

Check out the Vim-Fu Store!

Vim-Fu

deleting DOS Carriage Returns (^M)

:%s/\r//g

High level explanation:

 Replace all \r’s with empty spaces globally.

broken down:

% – all lines in buffer
s – substitute
\r – Dos Carriage Return
g – do it globally (every occurrence on every line)

:%s/\r/\r/g    Convert DOS return into a proper CR

 

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>