tpope / vim-pathogen

pathogen.vim: manage your runtimepath

Home Page:http://www.vim.org/scripts/script.php?script_id=2332

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pathogen not loading plugins

MIRAMAXED opened this issue · comments

Hello! I'm installing vim 7.4, and i'm installing vim-pathogen, following instructions, but plugins not loading :( May be i do something wrong? That's is my vimrc: http://pastebin.com/ZKn0j6R3

P.S. Sorry for my english...

What does :set rtp? report back?`

runtimepath=~/.vim/bundle/vundle,~/.vim/bundle/surround.vim,~/.vim/bu
ndle/The-NERD-tree,~/.vim/bundle/*/~/.vim/bundle*,~/.vim/bundle/*,~/.vi
m/~/.vim/bundle*,~/.vim,/var/lib/vim/addons/~/.vim/bundle*,/var/lib/vim
/addons,/usr/share/vim/vimfiles/~/.vim/bundle*,/usr/share/vim/vimfiles,
/usr/share/vim/vim74/~/.vim/bundle*,/usr/share/vim/vim74,/usr/share/vim
/vimfiles/after,/usr/share/vim/vimfiles/~/.vim/bundle*/after,/var/lib/v
im/addons/after,/var/lib/vim/addons/~/.vim/bundle*/after,~/.vim/after,~
/.vim/~/.vim/bundle*/after,~/.vim/bundle/*/after,~/.vim/bundle/*/~/.vim
/bundle*/after,~/.vim/bundle/vundle/,~/.vim/bundle/vundle/after,~/.vim/
bundle/surround.vim/after,~/.vim/bundle/The-NERD-tree/after

Looks okay to me. You only need the first of the two pathogen calls. You're sure surround.vim and nerdtree aren't loaded?

Yes, I'm sure. When I try to use these plug-ins, nothing happens. When i try run NERD tree, i see "Not an editor command: NERDTree"

Two things to try independently:

  1. Remove vundle
  2. Change to execute pathogen#infect('~/.vim/bundle/{}')

I deleted .vim/ and all references to vundle in the file .vimrc. Then i install vim-pathogen and NERDTree, but nothing new happend :) May be problem in ElementaryOS ?

Clarify how you're installing nerdtree.

cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdtree.git
Then, in .vimrc i write:
map :NERDTreeToggle
imap :NERDTreeToggle

Really not sure what's going on. Check :scriptnames and see if nerdtree is in there.

:scriptnames return:
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim74/debian.vim
3: /usr/share/vim/vim74/syntax/syntax.vim
4: /usr/share/vim/vim74/syntax/synload.vim
5: /usr/share/vim/vim74/syntax/syncolor.vim
6: /usr/share/vim/vim74/filetype.vim
7: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
8: /usr/share/vim/vim74/plugin/gzip.vim
9: /usr/share/vim/vim74/plugin/matchparen.vim
10: /usr/share/vim/vim74/plugin/netrwPlugin.vim
11: /usr/share/vim/vim74/plugin/rrhelper.vim
12: /usr/share/vim/vim74/plugin/spellfile.vim
13: /usr/share/vim/vim74/plugin/tarPlugin.vim
14: /usr/share/vim/vim74/plugin/tohtml.vim
15: /usr/share/vim/vim74/plugin/vimballPlugin.vim
16: /usr/share/vim/vim74/plugin/zipPlugin.vim
17: ~/.vim/.vimrc
18: ~/.vim/autoload/pathogen.vim
19: /usr/share/vim/vim74/ftoff.vim
20: /usr/share/vim/vim74/syntax/nosyntax.vim
21: /usr/share/vim/vim74/ftplugin.vim
22: /usr/share/vim/vim74/indent.vim
:)

Did you succeed finally? It seems I have the same probleme here. Any suggestions?

Using gVim on Win7.

I just noticed that there's no ~/.vimrc in that output. Instead there's a ~/.vim/.vimrc which is loaded after all the plugins are, meaning it's too late to activate pathogen.

Had the same issue on Win7 and Debian moved ~/.vim/.vimrc to ~/.vimrc (debian) and ~/vimfiles/_vimrc to ~/_vimrc (Win7) now everything works, thanks.

Going to take that as the root cause. I'm not sure why it loads that in that particular order, but that's a question the Vim source could answer.

Not work :( I tried move 'vimrc' from /etc/vim but plugins don't load... I think problem in ElementaryOS Linux, because on Ubuntu pathogen working well.

@tpope i fix it!!! :D I just move .vimrc file from ~/.vim/ to my home directory (now .vimrc placed in ~/.vimrc), and all working fine!!! Plugins loading now!!!

I just move .vimrc file from ~/.vim/ to my home directory (now .vimrc placed in ~/.vimrc), and all working fine!!!

It's ~/.vim/vimrc, not ~/.vim/.vimrc; note the lack of . before vimrc. That may be the source of your woes.

@qstrahl may be :)

@qstrahl 100% you right :D Thanks!

Hey I'm having the same sort of issue with ubuntu 16.04 vim 7.4.
i have a ~/.vimrc file which does not recognize any plugins when sourced.

output of ' :scriptnames ':

1: /usr/share/vim/vimrc
2: /usr/share/vim/vim74/debian.vim
3: /usr/share/vim/vim74/syntax/syntax.vim
4: /usr/share/vim/vim74/syntax/synload.vim
5: /usr/share/vim/vim74/syntax/syncolor.vim
6: /usr/share/vim/vim74/filetype.vim
7: ~/.vimrc
8: /usr/share/vim/vim74/syntax/nosyntax.vim
9: ~/.vim/autoload/pathogen.vim
10: /usr/share/vim/vim74/ftoff.vim
11: ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
12: ~/.vim/bundle/delimitMate/autoload/delimitMate.vim
13: ~/.vim/bundle/vim-noscrollbar/plugin/noscrollbar.vim
14: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
15: /usr/share/vim/vim74/plugin/gzip.vim
16: /usr/share/vim/vim74/plugin/logiPat.vim
17: /usr/share/vim/vim74/plugin/matchparen.vim
18: /usr/share/vim/vim74/plugin/netrwPlugin.vim
19: /usr/share/vim/vim74/plugin/rrhelper.vim
20: /usr/share/vim/vim74/plugin/spellfile.vim
21: /usr/share/vim/vim74/plugin/tarPlugin.vim
22: /usr/share/vim/vim74/plugin/tohtml.vim
23: /usr/share/vim/vim74/plugin/vimballPlugin.vim
24: /usr/share/vim/vim74/plugin/zipPlugin.vim

these return nothing but have no errors:

call pathogen#infect('bundle/{}')
call pathogen#infect('bundle/*')

output of ' :echo glob("~/.vim/bundle/*") ':

/home/jamesson/.vim/bundle/delimitMate
/home/jamesson/.vim/bundle/vim-noscrollbar

output of ' :echo pathogen#glob_directories("~/.vim/bundle/*") ':

['/home/jamesson/.vim/bundle/delimitMate', '/home/jamesson/.vim/bundle/vim-noscrollbar']

output of ' set rtp? ':

runtimepath=/.vim,/.vim/bundle/,/.vim/bundle/delimitMate,/.vim/bundle/delimitMate/bundle/,/.vim/bundle/vim-noscrollbar,/.vim/bundle/vim-noscrollbar/bundle/,/var/lib/vim/addons,/va
r/lib/vim/addons/bundle/
,/usr/share/vim/vimfiles,/usr/share/vim/vimfiles/bundle/,/usr/share/vim/vim74,/usr/share/vim/vim74/bundle/,/usr/share/vim/vimfiles/bundle//after,/usr/share/vim/vi
mfiles/after,/var/lib/vim/addons/bundle/
/after,/var/lib/vim/addons/after,/.vim/bundle/*/after,/.vim/after

Had the same issue on Win7 and Debian moved ~/.vim/.vimrc to ~/.vimrc (debian) and ~/vimfiles/_vimrc to ~/_vimrc (Win7) now everything works, thanks.

Thanks to Darius Kucinskas 👍
This actually worked for my windows 10. All had to do for my gvim was rename ~/.gvimrc to _vimrc and move it under ~/vimfiles

After doing that, for the gvim shortcut i passed and arg, gvim.exe -u ~/vimfiles/_vimrc and pathogen started loading plugins. and this loads my _vimrc first

1: P\vimfiles_vimrc
2: P:\vimfiles\autoload\plug.vim
3: C:\NotBackedUp\Packages\Scoop\apps\vim\current\filetype.vim
4: C:\NotBackedUp\editor\plugged\vim-polyglot\ftdetect\polyglot.vim
5: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\css.vim
6: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\graphql.vim
7: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\html.vim
8: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\javascript.vim
9: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\json.vim
10: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\less.vim
11: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\markdown.vim
12: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\scss.vim
13: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\typescript.vim
14: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\vue.vim
15: C:\NotBackedUp\editor\plugged\vim-prettier\ftdetect\yaml.vim
16: C:\NotBackedUp\Packages\Scoop\apps\vim\current\menu.vim
17: C:\NotBackedUp\Packages\Scoop\apps\vim\current\autoload\paste.vim
18: C:\NotBackedUp\Packages\Scoop\apps\vim\current\ftplugin.vim
19: C:\NotBackedUp\Packages\Scoop\apps\vim\current\indent.vim
20: C:\NotBackedUp\Packages\Scoop\apps\vim\current\syntax\syntax.vim
21: C:\NotBackedUp\Packages\Scoop\apps\vim\current\syntax\synload.vim
22: C:\NotBackedUp\Packages\Scoop\apps\vim\current\syntax\syncolor.vim
23: C:\NotBackedUp\Packages\Scoop\apps\vim\current\syntax\nosyntax.vim
24: C:\NotBackedUp\editor\plugged\oceanic-next\colors\OceanicNext.vim