windows下安装和配置vim vundle插件管理器

717 查看

VIM安装

这里我使用的是gitbash自带的vim7.4,而没有使用官方的安装包,这样又可以附带一个能用的命令行。

gitbash版本 Git-2.6.1-64-bit.exe

界面差不多是这样的:

Git Bash 下载地址

安装包第一步全选,剩下的步骤全部下一步到底即可。

vundle插件管理器安装

vundle github

$ cd /d/dev/Git/usr/share/vim/vim74/
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
$ vim /d/dev/Git/etc/vimrc

加入以下配置项

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=/d/Dev/Git/usr/share/vim/vim74/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" 需要的插件可以继续从这里追加

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

最后打开vim运行 :PluginInstall