Vim: \n vs. \r

后端 未结 8 1127
小鲜肉
小鲜肉 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:09

    In Windows, if you open up a file in text mode, \n is interpreted as both the newline and linefeed characters. This normally isn't the case the *nix systems.

提交回复
热议问题