First, apologies for attempting to ask a complicated question since I would not be able to provide a lot of details, however, one might catch something that I am missing.
I have a vim script, that is a series of stages that prepare dein.vim
as a plugin loader. The problem I am experiencing is that if I put my script (single file) inside $HOME/.vim/plugin/my_dein_bridge.vim
it is not working properly. I know that I should be explaining the errors etc., however, there are fundamental problems, so let's say that the script is not doing what it is intended to do and acts buggy.
However, If I just put that very same script file somewhere, let's say inside /some/path/my_dein_bridge.vim
and simply source it at the end of my .vimrc
file. It is working perfectly.
Maybe, someone can point to something that I need to be careful about, in regards to scripts running from the $HOME/.vim/plugin
folder.
--- EDIT ---
Just to provide some additional information as much as I can. The script is intended to function as a bridge between the .vimrc
file and the rest of vim's start-up
, providing a safe environment for the plugin loaders.
1) .vimrc
2) bridge-boiler-plate
: (this is us)
- Make sure the
plugin manager
is installed - Run
plugin manager
's prep stages - Load some low-level plugins using the
plugin manager
- Create a list of active plugins plus some other stages etc.
- Pass control over to the
plugin manager
3) plugin manager
takes on, loads the standard plugins
4) Proceed into vim-start up.
I thought having a source /some/path/my_boulerplate_bridge.vim
in my .vimrc
is a bit ugly, so I tried to come up with a more elegant way.