微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Vundle 使用git来管理vim插件

程序名称:Vundle

授权协议: MIT

操作系统: Linux

开发语言:

Vundle 介绍


Vundle

项目托管在github上 https://github.com/gmarik/vundle

其特色在于使用git来管理插件,更新方便,支持搜索,一键更新,从此只需要一个vimrc走天下.

安装与配置

使用git命令

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

windows下使用,可以考虑放置在$HOME/.vim/bundle/vundle

vimrc

 vundle {
set rtp+=~/.vim/bundle/vundle/
 如果在windows下使用的话,设置为 
 set rtp+=$HOME/.vim/bundle/vundle/
call vundle#rc()
 }

 let Vundle manage Vundle
 required! 
Bundle 'gmarik/vundle'

 My Bundles here:

 original repos on github
 github上的用户写的插件,使用这种用户名+repo名称的方式
 Bundle 'tpope/vim-fugitive'
 Bundle 'Lokaltog/vim-easymotion'
 Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
 Bundle 'tpope/vim-rails.git'
 vim-scripts repos
 vimscripts的repo使用下面的格式,直接是插件名称
Bundle 'taglist.vim'
Bundle 'SuperTab'
Bundle 'vimwiki'
Bundle 'winmanager'
Bundle 'bufexplorer.zip'
Bundle 'The-NERD-tree'
Bundle 'matrix.vim--Yang'
Bundle 'FencView.vim'
Bundle 'Conque-Shell'
Bundle 'Vimpress'
Bundle 'Markdown'
Bundle 'LaTeX-Suite-aka-Vim-LaTeX'
Bundle 'c.vim'
Bundle 'snipMate'

 non github reposo
 非github的插件,可以直接使用其git地址
 Bundle 'git://git.wincent.com/command-t.git'
 ...


 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
 vundle主要就是上面这个四个命令,例如BundleInstall是全部重新安装,BundleInstall!则是更新
 一般安装插件的流程为,先BundleSearch一个插件,然后在列表中选中,按i安装
 安装完之后,在vimrc中,添加Bundle 'XXX',使得bundle能够加载,这个插件,同时如果
 需要配置这个插件,也是在vimrc中设置即可
 see :h vundle for more details or wiki for FAQ
 NOTE: comments after Bundle command are not allowed..

以上中文说明转载自: http://yishanhe.net/using-vim-vundle-for-better-plugin- management/

Vundle 官网

https://github.com/gmarik/vundle

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐