Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1173745
  • 博文数量: 93
  • 博客积分: 7185
  • 博客等级: 准将
  • 技术积分: 3560
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-02 13:54
文章分类
文章存档

2011年(43)

2010年(11)

2009年(27)

2008年(12)

分类:

2011-05-29 23:08:12

  • pathogen的安装:
1、把 ~/.vim/autoload/ 目录下面
2、在 .vimrc 文件里, filetype plugin indent on 之前的任何地方,加入下面这句:
call pathogen#runtime_append_all_bundles()
3、建立目录 ~/.vim/bundle/
剩下的就是安装插件了

先看看我原来的.vim目录,里面安装了 pydiction bash-support c-support project
/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


阅读(3334) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~