vim bundle
安装
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
添加.vimrc
的配置:
filetype off " set rtp+=~/.vim/bundle/Vundle.vim "如果在windows下使用,设置为 set rtp+=$HOME/.vim/bundle/vundle call vundle#begin() Plugin 'gmark/vundle' Plugin 'scrooloose/nerdtree' Plugin 'vimwiki/vimwiki' Plugin 'mattn/emmet-vim' Plugin 'ervandew/supertab' Plugin 'derekwyatt/vim-scala' Plugin 'groenewege/vim-less' call vundle#end() filetype plugin indent on "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
配置需要的插件
GitHub上的库:
Plugin 'tpope/vim-fugitive'
非github上的库:
Plugin 'git://git.wincent.com/command-t.git'
本机上的git库:
Plugin 'file:///home/gmarik/path/to/plugin'
http://vim-scripts.org/vim/scripts.html
上的插件:
Plugin 'L9'
The sparkup vim script is in a subdirectory of this repo called vim. pass the path to set runtimepath properly:
Plugin 'rstacruz/sparkup', {'rtp':'vim/'}
avoid a name conflict with L9
Plugin 'user/L9', {'name':'newL9'}