tpope / vim-pathogen

pathogen.vim: manage your runtimepath
http://www.vim.org/scripts/script.php?script_id=2332
Vim License
12.12k stars 1.16k forks source link

Can pathogen load plugins in the bundle directive before loading the scripts in vim root directive? #197

Closed huangzonghao closed 6 years ago

huangzonghao commented 6 years ago

It seems the pathogen always try to load the scripts in the vim/ftplugin first, before loading the scripts in vim/bundle/myplugin/ftplugin.

I am wondering if there is a way that I can load the latter first? Because I always want to put the customized configurations for the third-party plugin in the vim/ftplugin directive. But if the corresponding scripts of plugin hasn't been loaded yet, my configuration won't succeed, due to problems like "undefined variable", etc.

tpope commented 6 years ago

Vim provides a directory your customized configurations: vim/after/ftplugin.

huangzonghao commented 6 years ago

Oh thank you so much! Can't believe I didn't know this before!