I have my dotfiles synchronized on github which is a current practice.
As I use several machines I want to be able to have some part of my configuration not synched on my github repo. To do so I added these lines in my synched
let $MYLOCALVIMRC = $HOME . "/.local.vim"
Which allows me to add some configuration to
~/.local.vim which isn't synched.
This works well but now I'd like to extend that to the plugins: I'd like to have some plugins only loaded on some machines.
I'm using vim-plug as my plugin manager and it is not possible to call
plug#end() several times. Even when changing the directory of
The only solution I could imagine was to use a second plugin manager for the local vimrc but it is pretty ugly and I think that it might create some conflicts on the runtime path.
TL;DR Is it possible, using a plugin manager, to load some plugins in a
.vimrc file and some other plugins in a local configuration file sourced by the first