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

后端 未结 12 1317
花落未央
花落未央 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条回答
  •  自闭症患者
    2020-12-04 06:09

    As mentioned by sledge the usage of that plug-in is the best option I have seen and use. jerseyboy commented that the utility recommended ask for confirmation before loading (ie. after opening every file). To avoid this just set at your main .vimrc the list of local .lvimrc files:

    let g:localvimrc_whitelist='/development/kernel/.lvimrc'

提交回复
热议问题