How to ensure that formatoptions *never* contains `r` or `o`?

后端 未结 2 1058
不知归路
不知归路 2021-01-24 16:02

In vim, the filetype occasionally is set to a value that auto-populates formatoptions with r and o, two features that I do not like.

2条回答
  •  Happy的楠姐
    2021-01-24 16:58

    You could define an auto-command in ~/.vimrc to remove r and o format options from every file type:

    autocmd CmdLineLeave,BufEnter * set fo-=r fo-=o
    

提交回复
热议问题