用vundle管理vim插件 (win7)

(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


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值