Pathogen does not load plugins

前端 未结 19 1807
醉梦人生
醉梦人生 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:31

    I was facing the same issue, finally after lot of google and tweaking the vimrc file, found the solution. Hope the following code snippet would resolve the issue.

    set nocp source /home/ameet/.vim/autoload/pathogen.vim "location of my pathogen.vim call pathogen#infect() call pathogen#helptags()

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

    I had the same problem. I tried every possible combination.

    Finally I found that if I use mksession to save my Vim workspace and have it load on Vim startup, it made pathogen not load new plugins I put into the bundle folder.

    After installing a new plugin I now always delete my session file and start Vim fresh and every plugin loads fine.

    filetype off
    set nocompatible
    set laststatus=2
    execute pathogen#infect()
    syntax on
    filetype plugin indent on
    
    0 讨论(0)
  • 2020-12-02 11:38

    This seems to be common problem caused by the "system" vimrc in some distributions setting filetype on before you set up pathogen. So turning it off and back on again forces plugins to load correctly:

     call pathogen#runtime_append_all_bundles()
     filetype off
     syntax on
     filetype plugin indent on
    

    More info here.

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

    Fixed by (mattn & tpope) after raising issue via github

    set nocp
    call pathogen#infect()
    syntax on
    filetype plugin indent on
    call pathogen#infect()
    

    see https://github.com/tpope/vim-pathogen/issues/50#issuecomment-3137909

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

    For the sake of completion I'll add my solution for this problem.

    I just renamed my ~/.gvimrc file to ~/.vimrc, and all my problems were solved. I literally copied my .vim and my .gvimrc from linux and did this change and everything works as expected.

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

    Instead of call pathogen#runtime_append_all_bundles(), I used call pathogen#infect('~/.vim/bundle') and it worked for me.

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