Vim: \n vs. \r

后端 未结 8 838
小鲜肉
小鲜肉 2020-12-23 17:40

I haven\'t used vim in a Unix system in a while, but as I recall there was no \\r, it was always \\n.

I\'m using gVim under windows and when I search for new

8条回答
  •  囚心锁ツ
    2020-12-23 18:16

    :%s/^V^M/^V^M/g
    

    Similarly, the following does the same thing (I think), and is easier to type out.

    :%s/\r/\r/g
    

提交回复
热议问题