Display CRLF as ^M:

:e ++ff=unix

Substitute CRLF for LF:

:setlocal ff=unix
:w
:e

 

http://stackoverflow.com/questions/3852868/how-to-make-vim-show-m-and-substitute-it
posted on 2015-02-05 17:03  Gemmeg  阅读(310)  评论(0编辑  收藏  举报