vundle设置
来源:互联网 发布:网络购物应用 编辑:程序博客网 时间:2024/05/17 23:25
Vundle(Vim bundle) 是一个vim的插件管理器。
其Github地址为: https://github.com/gmarik/vundle
如何使用Vundle (个人使用环境为ubuntu 12.10)
1. 从Github下载vundle到本地:
$ Git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
2. 配置vimrc文件:
如果是使用ubuntu apt安装的vim,其vimrc一般应该在/etc/vim/目录下
有些人的vimrc文件可能在个人工作目录下,为.vimrc文件
在vimrc文件中修改并按照下面例子加入相应需要的语句。
- set nocompatible ” be iMproved
- filetype off ” required! /** 从这行开始,vimrc配置 **/
- set rtp+=~/.vim/bundle/vundle/
- call vundle#rc()
- “ let Vundle manage Vundle
- “ required!
- Bundle ‘gmarik/vundle’
- “ My Bundles here: /* 插件配置格式 */
- “
- “ original repos on github (Github网站上非vim-scripts仓库的插件,按下面格式填写)
- Bundle ‘tpope/vim-fugitive’
- Bundle ‘Lokaltog/vim-easymotion’
- Bundle ‘rstacruz/sparkup’, {‘rtp’: ‘vim/’}
- Bundle ‘tpope/vim-rails.git’
- “ vim-scripts repos (vim-scripts仓库里的,按下面格式填写)
- Bundle ‘L9’
- Bundle ‘FuzzyFinder’
- “ non github repos (非上面两种情况的,按下面格式填写)
- Bundle ‘git://git.wincent.com/command-t.git’
- “ …
- filetype plugin indent on ” required! /** vimrc文件配置结束 **/
- “ /** vundle命令 **/
- “ Brief help
- “ :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
- “
- “ see :h vundle for more details or wiki for FAQ
- “ NOTE: comments after Bundle command are not allowed..
set nocompatible " be iMproved filetype off " required! /** 从这行开始,vimrc配置 **/ set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle " required! Bundle 'gmarik/vundle' " My Bundles here: /* 插件配置格式 */ " " original repos on github (Github网站上非vim-scripts仓库的插件,按下面格式填写) Bundle 'tpope/vim-fugitive' Bundle 'Lokaltog/vim-easymotion' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} Bundle 'tpope/vim-rails.git' " vim-scripts repos (vim-scripts仓库里的,按下面格式填写) Bundle 'L9' Bundle 'FuzzyFinder' " non github repos (非上面两种情况的,按下面格式填写) Bundle 'git://git.wincent.com/command-t.git' " ... filetype plugin indent on " required! /** vimrc文件配置结束 **/ " /** vundle命令 **/ " Brief help " :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 " " see :h vundle for more details or wiki for FAQ " NOTE: comments after Bundle command are not allowed..
注意,vundle会自动给你下载和管理插件,所以,你只要填上你所需要的插件名称即可。对于不同类型的插件,有不同的地址填写方法。按上面的方法填写完毕就可以了。
填写完成,保存退出后,打开一个vim窗口。在命令模式下输入
:BundleList //会显示你vimrc里面填写的所有插件名称
:BundleInstall //会自动下载安装或更新你的插件。
PS: https://github.com/vim-scripts 和 http://vim-scripts.org/vim/scripts.html 这两个网站上都是vim-scripts的插件,即你只需在vimrc中添加你想要的插件名称即可。
- vundle设置
- Vundle安装
- Vundle常用命令
- Vim插件管理Vundle
- Vundle ,Vim Bundle
- vim之vundle
- Vim+Vundle+YouCompleteMe
- vim使用vundle
- 使用Vundle安装YouCompleteMe
- Vundle管理vim插件
- vundle折腾记
- vim插件管理器vundle
- vim插件管理器Vundle
- Vundle for Windows
- vundle管理VIM插件
- vim 插件管理器-Vundle
- vim插件vundle
- Ubuntu 16.04 安装Vundle
- 【转】C#中的委托和事件(续)
- javascript ascii码转换
- Javascript中使用noscript的优雅降级
- eclipse配置使spring hibernate struts2 的xml节点自动提示
- JAVA使用POI如何导出百万级别数据
- vundle设置
- 《java7并发编程实战》线程辅助类之Phaser
- 数组
- JavaScript实现复选框全选与全不选的效果
- Java WebService 简单实例
- Vivado IP核生成设置
- 上传文件—fileupload工具—细节处理
- CentOS7.2安装pyspider
- Linux应用总结(1):自动删除n天前日志