我使用病原體,我覺得它很棒,但是根本不需要病原體來使用NERDTree。
只要把文件這樣便發出:helptags ~/.vim/doc
,它會工作:
~/.vim/doc/NERD_tree.txt
~/.vim/nerdtree_plugin/exec_menuitem.vim
~/.vim/nerdtree_plugin/fs_menu.vim
~/.vim/plugin/NERD_tree.vim
我與病原體的設置是很標準:
~/.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
和工程就像一個魅力。
它有幫助,這裏有我的~/.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
@Randy Morris:謝謝你的回覆。您提供的鏈接似乎暗示我需要在我的.vimrc中只有$:call pathogen#helptags()。我做到了,現在當我啓動gvim時,出現了一堆錯誤(「處理〜/ autoload/pathogen.vim .....時檢測到錯誤」)。對不起,Vim的新.. – Andy 2011-05-05 22:40:53
@Andy具體的錯誤會很好。你可以通過運行':messages'消失後得到它們。 – 2011-05-05 22:45:57
@Randy Morris:其實我有github和vogen.org版本的pathogen.vim混在一起。當我使用vim.org版本時,病原體得到正確安裝,通過以下驗證:call pathogen#helptags()(儘管它沒有顯示輸出)。但是現在當我把nerdtree加載到〜/ .vim/bundle /下時,它不會加載! – Andy 2011-05-05 22:47:17