linux(centos)中VIM使用vundle管理插件

2015-01-31 21:10:00
admin
原创
6383

我用到是centos系统,安装vundle之前,先安装git:

$ yum install git

安装vundle:

$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

在.vimrc文件里配置如下:
” —————————————————————————–
”  < Vundle 插件管理工具配置 >
” —————————————————————————–
” 用于更方便的管理vim插件,具体用法参考 :h vundle 帮助
” Vundle工具安装方法为在终端输入如下命令
” git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
” 如果想在 windows 安装就必需先安装 “git for window”,可查阅网上资料

“Bundles托管插件示例
“代码在github上,使用github帐号/项目名,例如:
“Bundle ‘tpope/vim-fugitive’
“代码在vimscript上,使用插件名称,插件名字可以在
“http://vim-scripts.org/vim/scripts.html页面中查找,例如:

“https://github.com/vim-scripts
“Bundle ‘vimwiki’
“非github的插件,使用其git地址,例如:
“Bundle ‘git://git.wincent.com/command-t.git’

” :BundleList          – list configured bundles

” :BundleInstall(!)    – install(update) bundles  ” :BundleSearch(!) foo – search(or refresh cache first) for foo   ” :BundleClean(!)      – confirm(or auto-approve) removal of unused bundles

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle ‘gmarik/vundle’
Bundle ‘a.vim’
Bundle ‘taglist.vim’
Bundle ‘bufexplorer.zip’
Bundle ‘Shougo/neocomplcache.vim’
Bundle ‘scrooloose/nerdtree’
Bundle ‘msanders/snipmate.vim’

……

填写完成,保存退出后,打开一个vim窗口。在命令模式下输入

:BundleList    //会显示你vimrc里面填写的所有插件名称

:BundleInstall  //会自动下载安装或更新你的插件。

版权声明

版权声明:本站原创文章,转载请注明作者和出处。

本站点采用 知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议  

热门文章
云禅道

云端的项目管理软件

尊享禅道项目软件收费版功能

无需维护,随时随地协同办公

内置subversion和git源码管理

每天备份,随时转为私有部署

免费试用