1.安装git:
sudo apt-get install git
2.安装Bundle:
git clone 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”错误,不知道是什么原因,知道的请告诉我,谢谢。
来源:http://blog.csdn.net/tangbin330/article/details/8654770
分类目录
- arch/management (17)
- computer (38)
- java/j2ee (305)
- lnmpa (237)
- mac/iphone/ipad/android (11)
- mysql/oracle/postgresql (126)
- os/software (74)
- other (518)
- python (6)
- redis/memcached/mongo (31)
- sitebuild (143)
随便看看
标签云
程序员 创业 人生箴言 eclipse 快捷键 术语 索引 unix命令 vim wordpress java学习笔记 环境变量 oracle内置函数 index 人生 数据类型 nohup tuxedo mysql学习笔记 MS-DOS命令 servlet spring 职场进阶 职业进阶 服务器选购 服务器选型 apache JPA MongoDB 注解 tomcat 子女教育 jquery maven JVM aix命令 网络营销 java异常 seo 人生规划 关键字 css 网络推广 struts 系统优化 成长 frame iframe bluehost jdbc select 我的信仰 oracle函数 cookie HashMap 站长工具 乱码 ArrayList secureCRT jsp session tail find halt 事务 oracle单记录函数 算法 URL window table javascript操作表单元素 String 字符串处理 健康 http 域名 情感 more google A记录 域名解析 netstat 弹出对话框 弹出窗口 框架集 框架 excel 字符串 javascript函数 showModalDialog nginx number 数组 sql frameset 开源程序 java数组 软件 oracle服务友情链接
收藏链接