I'm trying to use Pathogen
to manage Vim plugins. I had a couple of scripts I made in .vim/ftplugins
.
I installed Pathogen but now none of the scripts in ftplugins runs.
I tried adding a directory inside .vim/bundle
with the scripts but it didn't work (it was .vim/bundle/local/ftplugin/python.vim
)
Any idea how can I make Pathogen load the scripts in ftplugin directory?
First lines of my .vimrc
:
set nocompatible
syntax on
filetype plugin indent on
"execute pathogen#infect()
Only works with that line commented out.
I am running gvim
from a Bash prompt with the filename as first parameter like this:
$ gvim some/path/somefile.py
I expect to see the file with my predefined colorscheme for Python files defined in ~/.vim/ftplugin/python.vim and all the other settings defined in that script.
The ~/.vim/bundle directory is empty.
Pathogen is in ~/.vim/autoload and there is nothing more there.
$ ls ~/.vim/ftplugin/
css.vim html.vim javascript.vim python_pep8.vim python_pyflakes.vim python.vim rst.vim xml.vim
$ ls ~/.vim
autoload bundle colors doc ftdetect ftplugin plugins ScrollColor.vim spell syntax
/bundle
folder. Just because it's easier to reach them that way. So put that under~/.vim/ftplugin/python.vim
. – Unexacting~/.vim/bundle/local/ftplugin/
correct? Could you try moving them to/.vim/ftplugin/
. I'm not aware of Pathogen deactivating these plugins if you put them there. – Unexacting&rtp
, it does not remove them from there. But if pathogen is installed and run correctly it makes no sense in moving back and forth: this should produce identical results (except for a few edge cases), meaning that pathogen is not actually used correctly. @F.C. It is almost impossible to tell what you have done wrong without seeing your.vimrc
(better: diff, before and after you installed pathogen). – Dasie:filetype
and:syntax
calls after:execute
? Official README suggest doing just this in the second section: first:execute
, second:syntax
, third:filetype
. – Dasie