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

后端 未结 12 1344
花落未央
花落未央 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:22

    After trying out the localvimrc plugin suggested by the previous poster, I very much like having non-futzy per-project control over vim settings.

    It does ask confirmation before loading a .lvimrc file by default but there is a setting to automatically load .lvimrc files. Some might see this as a security hole, but it works as advertised.

    I chose to .gitignore the .lvimrc files. Alternatively you can check them in as a form of shared settings (tab/space expansion, tabstops, other project-specific settings).

提交回复
热议问题