Tuesday, October 13, 2015

UNIX DOS Carriage Return CRLF VIM

set ff=unix
set ff=dos

vi -b filename

You can replace one character using r in normal mode.
Or you can enter a "return" in command line mode by typing .



In vim session try:
:%s/^M//g
Where ^M is achieved by ctrl+V+M keystrokes together.

No comments:

Blog Archive