Replacing carriage return ^M with Enter

前端 未结 5 1445
一向
一向 2021-01-31 08:24

I know how to remove ^M in my files (%s/^M//g), but this one is just one line I\'d like to replace ^M with enter... what\'s the enter char

5条回答
  •  -上瘾入骨i
    2021-01-31 08:35

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

提交回复
热议问题