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

我用到是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  //会自动下载安装或更新你的插件。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值