How to switch between multiple vim configurations with a command or local vimrc files?

后端 未结 12 1318
花落未央
花落未央 2020-12-04 05:43

I work in several groups, each of which has its own tab/indentation/spacing standards in C.

Is there a way to have separate selectable VIM configurations for each so

12条回答
  •  -上瘾入骨i
    2020-12-04 06:24

    You can also put autocommands in your .vimrc which set specific options on a per-path basis.

    au BufRead,BufNewFile /path/to/project1/* setl sw=4 et
    au BufRead,BufNewFile /path/to/project2/* setl sw=3 noet
    

提交回复
热议问题