使用Bundle进行VIM插件的管理

1.安装gitsudoapt-get install git

2.安装Bundlegitclone https://github.com/gmarik/vundle.git~/.vim/bundle/vundle

3..vimrc文件中添加如下语句

setnocompatible " 设置vim为不兼容vi模式
filetypeoff " required
setrtp+=~/.vim/bundle/vundle/
"如果在windows下使用,设置为
"set rtp+=$HOME/.vim/bundle/vundle/
callvundle#rc()
"let Vundle manage Vundle
Bundle'gmarik/vundle' " required!
"Bundles托管插件示例
"代码在github上,使用github帐号/项目名,例如:
"Bundle 'tpope/vim-fugitive'
"代码在vimscript上,使用插件名称,插件名字可以在
"http://vim-scripts.org/vim/scripts.html页面中查找,例如:
"Bundle 'vimwiki'
"非github的插件,使用其git地址,例如:
"Bundle 'git://git.wincent.com/command-t.git'
filetypeplugin indent on " required!
"Brief help
":BundleList - list configured bundles
":BundleInstall(!) - install(update) bundles
":BundleSearch(!) foo - search(or refresh cache first) for foo
":BundleClean(!) - 删除插件首先要在.vimrc中注释掉插件相应的行,再运行该命令
"
"see :h vundle for more details or wiki for FAQ
"NOTE: comments after Bundle command are not allowed..

4.安装插件:打开Vim→使用:BundleSearch插件名搜索插件→ 光标选定对应的候选插件,按下“i”安装该插件→ 在.vimrc文件中添加Bundle对该插件的管理语句”Bundle'XXX' ”XXX为插件在候选插件列表中的名字→ 可以使用bundle提供的命令对安装的插件集进行管理

:配置文件里面“filetypeplugin indent on”会报这句“E116: Invalid arguments for function vundle#config#bundle”错误,不知道是什么原因,知道的请告诉我,谢谢。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值