切换Vim插件集 [英] Toggle sets of Vim plugins
问题描述
有没有技巧或脚本可以让我轻松地在vim插件集和-settings之间切换?
Is there a trick or script that allows me to switch between sets of vim-plugins and -settings easily?
我使用vim进行非常不同的开发和编写.例如,在LaTeX中编写报告时,出现某些特定于Web开发的插件真的很烦人.
I use vim for very different development and writing. It can be really annoying to have certain webdevelopment-specific plugins turn up, when writing a report in LaTeX, for example.
我想看的是 RVM 之类的东西.
What I'd like to see is something like RVM.
- 具有一组全局"插件和设置;始终启用或使用的插件和设置.
- 每个项目的插件和设置;激活该环境"后将加载的插件,配置和设置.
推荐答案
您可能会找到 localvimrc 对于第二点很有用.它使您可以在项目文件夹中包含.lvimrc
,其中包含该特定项目的设置.在该文件中,您可以通过操作runtimepath
或使用病原体/病毒/任何方式来加载特定于项目的插件.
You may find localvimrc to be useful for point number two. It allows you to have a .lvimrc
in your project folder with settings for that specific project. In that file you could load your project-specific plugins by manipulating the runtimepath
or by using pathogen/vundle/whatever.
使用此方法,您将像往常一样配置全局"设置和插件.
Using this method you would configure your "global" settings and plugins as you would normally.
这篇关于切换Vim插件集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!