gvim pathogen issues

后端 未结 3 1810
不知归路
不知归路 2021-01-13 19:14

I downloaded pathogen.vim from github and put it in \"autoload\" directory under ~/.vim. However now when I fire up gvim, and do :helptags, it says \"Argument required\". Th

3条回答
  •  日久生厌
    2021-01-13 19:19

    I use pathogen and I find it great, but you don't need pathogen at all to use NERDTree.

    Just put the files like this then issue :helptags ~/.vim/doc and it will work:

    ~/.vim/doc/NERD_tree.txt
    ~/.vim/nerdtree_plugin/exec_menuitem.vim
    ~/.vim/nerdtree_plugin/fs_menu.vim
    ~/.vim/plugin/NERD_tree.vim
    

    My setup with pathogen is very standard:

    ~/.vim/bundle/NERD_tree/doc/NERD_tree.txt
    ~/.vim/bundle/NERD_tree/nerdtree_plugin/exec_menuitem.vim
    ~/.vim/bundle/NERD_tree/nerdtree_plugin/fs_menu.vim
    ~/.vim/bundle/NERD_tree/nerdtree_plugin/insert_image.vim <-- a custom script not included with the distribution
    ~/.vim/bundle/NERD_tree/plugin/NERD_tree.vim
    

    and works like a charm.

    It it helps, here are the first lines of my ~/.vimrc:

    " This must be first, because it changes other options as side effect
    set nocompatible
    
    " Use pathogen to easily modify the runtime path to include all plugins under
    " the ~/.vim/bundle directory
    filetype off                    " force reloading *after* pathogen loaded
    call pathogen#helptags()
    call pathogen#runtime_append_all_bundles()
    filetype plugin indent on       " enable detection, plugins and indenting in one step
    

提交回复
热议问题