HOWTO: remove ^M characters at end of lines in vi/vim

less than 1 minute read

Open the file with vim, then type:

:%s/^V^M//g  

^V (CONTROL-V) is used to escape control characters.


Tags:

Categories: ,

Updated:

Leave a Comment