Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

profile switching in vim?

Tags:

vim

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

like image 388
McBear Holden Avatar asked Apr 19 '26 01:04

McBear Holden


2 Answers

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.

like image 83
flegmatyk Avatar answered Apr 21 '26 02:04

flegmatyk


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.

like image 29
Luc Hermitte Avatar answered Apr 21 '26 01:04

Luc Hermitte



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!