开发者

profile switching in vim?

开发者 https://www.devze.com 2023-03-27 20:37 出处:网络
I 开发者_运维百科plan to use Vim for two types of developement: Python and Javascript I have a different set of plugins for each of these.

I 开发者_运维百科plan to use Vim for two types of developement: Python and Javascript I have a different set of plugins for each of these. I wonder if those plugins are in conflict to each other. and whether there's a mechanizm that "switch the development profile" .

Thanks


You can use -u switch to load non-default .vimrc file (-U for .gvimrc), and there you may load specific plugins. You may create shortcuts or aliases to that command, and have different profiles that way.

Maybe it's not live switching, but that's the simplest approach.


If the plugins you use are correctly written (buffer local settings, commands, abbreviations, and mappings) everything should be fine. Usually this is done through ftplugins, and not really plugins.

If you see misbehaviours, you'll have to search which plugin(s) are incorrectly written and then contact their maintainers to fix them.

0

精彩评论

暂无评论...
验证码 换一张
取 消