Vim no end of line on last line or eof

后端 未结 4 588
小鲜肉
小鲜肉 2021-01-31 17:46

I am trying to setup vim to skip adding eol on last line or eof, i have tried this

:set binary
:set noeol
:w

which is not perfect cause binary

4条回答
  •  不要未来只要你来
    2021-01-31 18:16

    I have came up with this:

    " php remove eol from end of file
    autocmd FileType php setlocal noeol binary fileformats="mac,unix,dos"
    

    Thank you all.

    Cheers.

提交回复
热议问题