- pathogen的安装:
1、把
~/.vim/autoload/ 目录下面
2、在 .vimrc 文件里, filetype plugin indent on 之前的任何地方,加入下面这句:
剩下的就是安装插件了
先看看我原来的.vim目录,里面安装了 pydiction bash-support c-support project 2、在 .vimrc 文件里, filetype plugin indent on 之前的任何地方,加入下面这句:
3、建立目录 ~/.vim/bundle/
call pathogen#runtime_append_all_bundles()
剩下的就是安装插件了
/home/bl/.vim |---after | |---ftplugin | | |---python_pydiction.vim |---doc | |---taglist.txt | |---various.cnx | |---os_win32.cnx | |---undo.cnx |---README.csupport |---syntax | |---help_cn.vim | |---python3.0.vim |---taglist_45.zip |---project-1.4.1.tar.gz |---vimim.vim |---c-support | |---scripts | | |---wrapper.sh | |---doc | | |---c-hotkeys.pdf | | |---ChangeLog | | |---c-hotkeys.tex | |---codesnippets | | |---print_array.cc.noindent | | |---print_double_array.c.noindent | | |---main.cc | | |---Makefile | | |---calloc_double_matrix.c | | |---main.c | | |---print_int_array.c.noindent | | |---Makefile.multi-target.template | | |---calloc_int_matrix.c | |---rc | | |---customization.ctags | | |---customization.indent.pro | | |---customization.gvimrc | | |---customization.vimrc | |---templates | | |---cpp.preprocessor.template | | |---cpp.idioms.template | | |---c.comments.template | | |---c.cpp.template | | |---c.statements.template | | |---c.idioms.template | | |---cpp.comments.template | | |---Templates | | |---cpp.cpp.template | | |---c.preprocessor.template | | |---cpp.statements.template | |---wordlists | | |---stl_index.list | | |---c-c++-keywords.list | | |---k+r.list |---bash-support | |---scripts | | |---wrapper.sh | |---doc | | |---bash-hot-keys.tex | | |---ChangeLog | | |---bash-hot-keys.pdf | |---codesnippets | | |---timestamp | | |---well-behaved-script | | |---free-software-comment | | |---basename+pathname | | |---basename-function | | |---usage-and-command-line-arguments.noindent | | |---check-number-of-command-line-arguments | | |---use-file-descriptor-read | | |---create-tempfile-with-trap | | |---create-tempfile | | |---use-file-descriptor-write | | |---read-and-split-into-array | | |---assert | |---rc | | |---customization.gvimrc | | |---customization.vimrc | |---templates | | |---bash-frame | | |---bash-file-header | | |---bash-function-description | |---wordlists | | |---bash.list |---skeleton | |---alltests.py | |---wxskeleton.py | |---myskeleton.py~ | |---pydict | | |---README.txt | | |---complete-dict | | |---pydiction.py | |---test.py | |---myskeleton.py | |---skeleton.py |---vimim.pinyin_huge.txt |---README.bashsupport |---.netrwhist |---ftplugin | |---c.vim | |---sh.vim | |---python_fn.vim |---plugin | |---minibufexpl.vim | |---c.vim | |---bash-support.vim | |---project.vim | |---vimcdoc.vim | |---taglist.vim |---cvim.zip |
使用pythogen后的效果
/home/bl/.vim |---c-support |---skeleton |---bundle | |---python-skeleton | | |---pydict | | | |---complete-dict | | | |---pydiction.py | | | |---README.txt | | |---wxskeleton.py | | |---alltests.py | | |---test.py | | |---myskeleton.py | | |---myskeleton.py~ | | |---skeleton.py | |---bash-support | | |---README.bashsupport | | |---bash-support | | | |---rc | | | | |---customization.gvimrc | | | | |---customization.vimrc | | | | |---customization.bashrc | | | |---templates | | | | |---bash.comments.template | | | | |---bash.paramsub.template | | | | |---Templates | | | | |---bash.statements.template | | | |---wordlists | | | | |---bash.list | | | |---codesnippets | | | | |---check-for-unsigned-integer | | | | |---timestamp | | | | |---read-and-split-into-array | | | | |---free-software-comment | | | | |---usage-and-command-line-arguments.noindent | | | | |---check-number-of-command-line-arguments | | | | |---use-file-descriptor-write | | | | |---create-tempfile | | | | |---create-tempfile-in-secure-manner | | | | |---create-tempfile-with-trap | | | | |---use-file-descriptor-read | | | | |---assert | | | | |---basename+pathname | | | | |---basename-function | | | | |---print-command-line-options | | | | |---check-for-signed-integer | | | | |---well-behaved-script | | | |---scripts | | | | |---wrapper.sh | | | |---doc | | | | |---ChangeLog | | | | |---bash-hot-keys.pdf | | | | |---bash-hot-keys.tex | | |---ftplugin | | | |---sh.vim | | |---plugin | | | |---bash-support.vim | | |---doc | | | |---bashsupport.txt | |---taglist | | |---plugin | | | |---taglist.vim | | |---doc | | | |---taglist.txt | |---minibufexpl | | |---plugin | | | |---minibufexpl.vim | |---project | | |---plugin | | | |---project.vim | | |---doc | | | |---project.txt | | | |---tags | |---cvim | | |---c-support | | | |---rc | | | | |---customization.gvimrc | | | | |---customization.vimrc | | | | |---customization.ctags | | | | |---customization.indent.pro | | | |---templates | | | | |---cpp.cpp.template | | | | |---c.idioms.template | | | | |---cpp.preprocessor.template | | | | |---cpp.idioms.template | | | | |---c.preprocessor.template | | | | |---c.cpp.template | | | | |---Templates | | | | |---c.statements.template | | | | |---cpp.statements.template | | | | |---cpp.comments.template | | | | |---c.comments.template | | | |---wordlists | | | | |---k+r.list | | | | |---c-c++-keywords.list | | | | |---stl_index.list | | | |---codesnippets | | | | |---calloc_double_matrix.c | | | | |---print_array.cc.noindent | | | | |---print_double_array.c.noindent | | | | |---main.c | | | | |---main.cc | | | | |---Makefile.multi-target.template | | | | |---Makefile | | | | |---print_int_array.c.noindent | | | | |---calloc_int_matrix.c | | | |---scripts | | | | |---wrapper.sh | | | |---doc | | | | |---c-hotkeys.pdf | | | | |---ChangeLog | | | | |---c-hotkeys.tex | | |---README.csupport | | |---ftplugin | | | |---c.vim | | |---plugin | | | |---c.vim | | |---doc | | | |---csupport.txt |---bash-support |---autoload | |---pathogen.vim |