如何在VIM文件末尾禁用自动换行符?
发布于 2018-01-03 12:53:03
vim -b file进入VIM:
vim -b file
:set noeol :wq
或者,可以在vim中使用:e ++bin file
:e ++bin file
还有另一种选择:
:set binary :set noeol :wq
对于vim 7.4+,也可以使用:
:set nofixendofline
https://stackoverflow.com/questions/-100001322
相似问题