Why do I need vim in binary mode for 'noeol' to work?

前端 未结 4 1079
梦如初夏
梦如初夏 2020-12-04 11:40

This question is a follow up to the Work Around I use for \"saving files in vim without having the newline at end of file forcibly added\" annoyance.

Basically I can

4条回答
  •  臣服心动
    2020-12-04 11:54

    have a simple preference in .vimrc to NOT add newlines at every single file i edit

    You can use my PreserveNoEOL plugin for that. With this simple setting, you're done; alternatively, you can also influence this per buffer:

    :let g:PreserveNoEOL = 1
    

提交回复
热议问题