现在的位置: 首页 > 综合 > 正文

用vundle管理vim插件 (win7)

2013年09月20日 ⁄ 综合 ⁄ 共 1233字 ⁄ 字号 评论关闭
文章目录

(1)安装win版本的gvim: 

下载地址 http://www.vim.org/download.php

比如安装到 路径F:\Program Files (x86)\Vim,  并在此目录下新建bundle\vundle目录.

(2)安装git

可以安装git命令行: http://git-scm.com/   (已被长城, 方校长我sun你玛B)

或者github带GUI的版本: http://windows.github.com/

并且把git所在的目录加进环境变量PATH中. 

(3) 安装vundle

打开cmd, 输入以下:

git clone https://github.com/gmarik/vundle "F:\Program Files (x86)\Vim\vimfiles\bundle\vundle"

保证git.exe在你的环境变量中.

(4)在_vimrc添加vundle 配置:

打开C:\Users\xxx\_vimrc, 添加如下: 

set rtp+=$VIM/vimfiles/bundle/vundle/
call vundle#rc('$VIM/vimfiles/bundle/')
Bundle 'gmarik/vundle'


" original repos on github {
	" Bundle 'tpope/vim-fugitive'
	" Bundle 'Lokaltog/vim-easymotion'
	" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
	" Bundle 'tpope/vim-rails.git'
	Bundle 'kien/ctrlp.vim'
	Bundle 'Lokaltog/vim-powerline'
	"Bundle 'Valloric/YouCompleteMe'
" }


" vim-scripts repos {
	Bundle 'bufexplorer.zip'
	Bundle 'grep.vim'
	Bundle 'taglist.vim'	
	Bundle 'The-NERD-tree'
	Bundle 'Markdown'
" }


" non github reposo {
	" 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
" }
filetype plugin indent on       " automatically detect file types.

(5) 通过vundle 安装vim 插件

在git shell 执行gvim,在gvim内执行 :BundleInstall

抱歉!评论已关闭.