Pathogen does not load plugins

前端 未结 19 1808
醉梦人生
醉梦人生 2020-12-02 11:02

Pathogen does not work for me. I am following Adam Lowe\'s hints posted here (and few more) without any success...

My vimrc:

filetype off
call pathogen         


        
相关标签:
19条回答
  • 2020-12-02 11:42

    i had the same problem , solved by copying this file into ~/.vim/autoload: https://github.com/sontek/dotfiles/blob/master/_vim/autoload/pathogen.vim

    0 讨论(0)
  • 2020-12-02 11:43

    I've had problems loading particular plugins: specifically, plugins with a plugin subdirectory. For example, on a fresh MacVim install, a plugin in ~/.vim/bundle/surround/plugin/surround.vim wasn't being loaded, even though ~/.vim/bundle/surround appeared in the output of :scriptnames.

    The problem was that I was loading Pathogen in .gvimrc, not .vimrc. For whatever reason, stuff in .vim/bundle/*/plugin subdirectories won't load if you do that, so do it in .vimrc!

    I've opened an issue on github—I don't know if it can be made to work even if it loads from .gvimrc, but there should at least be some sort of warning in the documentation for idiots like me.

    0 讨论(0)
  • 2020-12-02 11:43

    In my case I cloned to a folder ~/dotfiles but vun looks for a folder ~/.vim, as a result he carried no plugins or color schemes to solve the problem I did this:

    ln -s ~/.dotfiles ~/.vim
    
    0 讨论(0)
  • 2020-12-02 11:44

    I was having the same problem with Ubuntu. The log was:

    linha 4: executando "/usr/share/vim/vim73/ftoff.vim"
    Erro detectado ao processar /usr/share/vim/vim73/ftoff.vim:
    linha   11:
    E216: Grupo ou evento inexistente: filetypedetect *
    fim da execução de /usr/share/vim/vim73/ftoff.vim
    

    The solution was to add "\n"s at the end from file /usr/share/vim/vim73/ftoff.vim to execute it properly.

    0 讨论(0)
  • 2020-12-02 11:45

    I was having a similar problem. Pathogen was loading some of my plugins while not all of them. After some fiddling and wondering I discovered (I don't know if it's mentioned in the documentation) that in each bundle/'plugin_name' folder, there should be another folder called plugin that contains the *.vim file.

    Then, when vim starts will look, not in bundle, but in those folders within bundle that contain a folder called plugin... and will create other folders (in each plugin folder).

    So, if the plugin is just a .vim file make a folder for it...

    instead of:

    ~/.vim/bundle/vimexplorer/vimExplorer.vim
    

    you need:

    ~/.vim/bundle/vimexplorer/plugin/vimExplorer.vim
    

    And everything works like a charm.

    0 讨论(0)
  • 2020-12-02 11:45

    If your .vim is based on a git repo and submodules, DO REMEMBER to run git submodule init and git submodule update after cloning the repo. i.e.

    git submodule init
    git submodule update
    

    I had the same error and tried all of the above, but it didn't work. Until I initialized and updated the git submodules.

    Hope this helps for anyone who has a similar error.

    0 讨论(0)
提交回复
热议问题