vim 插件之vundle

vundle这个插件主要是用来插件管理的。它可以根据你配置的插件地址,自动下载、更新、删除插件,非常的好用

地址 https://github.com/gmarik/vundle

然后你在 .vim下穿件一个bundle目录,紧接着把vundle放进去就行了。还有一种更加方便的方法,就是直接使用如下的命令

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

安装好以后,在你的.vimrc中加入如下内容

""""""""""""""""""""""""""""""
"vundle.vim
"可以管理、安装、卸载你的插件
""""""""""""""""""""""""""""""

"似乎这里是必须的,后面会重新打开
filetype off

"设置运行跟初始化Vundle的路径
set rtp+=~/.vim/bundle/vundle/

"设置插件的安装目录,默认是vundle
"call vundle#begin('~/some/path/here')
"所有的安装插件都要在begin 跟 end
call vundle#begin()


"添加Vundle到Vundle管理列表
Bundle 'gmarik/vundle'

"""""""""""""""""""""""""
"在Github其他用户下的repos, 需要写出”用户名/repos名
"""""""""""""""""""""""""
"方法、变量列表
Bundle 'majutsushi/tagbar'
"树形显示当前目录结构
Bundle 'scrooloose/nerdtree'
Bundle 'kien/ctrlp.vim'
Bundle 'Valloric/YouCompleteMe'

"显示缓存文件列表
Bundle 'jlanzarotta/bufexplorer'
"使用Tab只能补全
Bundle 'ervandew/supertab'
"给字串添加()等包裹符号的插件
Bundle 'tpope/vim-surround'
Bundle 'exvim/main'
"自动补全引号、括号等
Bundle 'Raimondi/delimitMate'
"添加注释
Bundle 'tpope/vim-commentary'

"""""""""""""""""""""""""
"在Github vim-scripts 用户下的repos,只需要写出repos名称
"""""""""""""""""""""""""
"查看当前文件目录,不是以侧边栏显示,不过感觉没有nerdtree有用
"Bundle 'winfileexplorer'
"Bundle 'bufexplorer'

"""""""""""""""""""""""""
"不在Github上的插件,需要写出git全路径
"""""""""""""""""""""""""
"Bundle 'git://git.wincent.com/command-t.git'

"""""""""""""""""""""""""
"从本地获取插件,比如一些自己写的插件
"""""""""""""""""""""""""
"Bundle 'file://zhangshuli/.vim/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" Avoid a name conflict with L9
"看起来像是处理名字冲突的?
"Bundle 'user/L9', {'name': 'newL9'}

"""""""""""""""""""""""""
"感觉用处不大的插件
"""""""""""""""""""""""""
"窗口管理器-02年以后就不再有人更新了,而且很多插件都不支持
"Bundle 'winmanager'

"对应上面的begin
call vundle#end()

"对应上面的filetype off
filetype plugin indent on
" To ignore plugin indent changes, instead use:
" Brief help
" :BundleList          - list configured plugins
" :BundleInstall(!)    - install (update) plugins
" :BundleSearch(!) foo - search (or refresh cache first) for foo
" :BundleClean(!)      - confirm (or auto-approve) removal of unused plugins
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

"配置默认的ycm_extra_conf.p

 

 

原文地址:https://www.cnblogs.com/zhangshuli-1989/p/zsl_2016_04_16_08_59.html