Vim 的插件管理工具有蛮多,比如:
Vundle vim-addon-manager vpathogen.vim vvundle vvimanaVim-addon-manager 和 vimana 的对比,参见Vim的插件管理工具
我最会选择了 Vundle,通过子目录管理插件,支持 Git 更新。 我其实不太喜欢子目录,觉得目录太多了看着烦,但是考虑到在没有良好的 PKG 包描述文件的前提下,分子目录是一种简单有效(粗暴)的方法。
Vundle 通过 git 来对插件进行更新,有三种源可以添加:
github 中 vim-scripts 的项目(这个账号是为 Pathogen 建的,用来建立对 Vim.org 上脚本的镜像)
github 某个 Vim 插件项目
某个 git 源
以上也是我推荐的选择插件顺序,我认为没有必要去取最新的开发版插件。 #Vundle 安装 无二话,官方文档的Quick Start写的很详细 ,一句话:git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
在.vimrc中添加set nocompatible ” be iMproved 
filetype off ” required!
set rtp+=~/.vim/bundle/vundle/ 
call vundle#rc()
” let Vundle manage Vundle 
” required! 
Bundle ‘gmarik/vundle’
” My Bundles here: 
” 
” original repos on github 
Bundle ‘tpope/vim-fugitive’ 
Bundle ‘Lokaltog/vim-easymotion’ 
Bundle ‘rstacruz/sparkup’, {‘rtp’: ‘vim/’} 
Bundle ‘tpope/vim-rails.git’ 
” vim-scripts repos 
Bundle ‘L9’ 
Bundle ‘FuzzyFinder’ 
” non github repos 
Bundle ‘git://git.wincent.com/command-t.git’ 
” …
filetype plugin indent on ” required! 
” 
” Brief help – 此处后面都是vundle的使用命令 
” :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..
” 状态栏插件powerline 
Bundle ‘https://github.com/Lokaltog/vim-powerline.git’ 
filetype plugin indent on
:BundleInstall
![这里写图片描述]() ###配置powerline 在vimrc中添加配置信息“—————————————————————– 
” 
” 状态栏插件powerline的配置 
” 
“—————————————————————– 
set laststatus=2 
set t_Co=256
let g:Powerline_symbols = ‘unicode’
set encoding=utf-8 
“` 
powerline安装截图 

更多Vim相关教程见以下内容:

