1.安装git
下载msysgit并安装,并将Git 的安装路径加入环境变量Path: D:\Git\cmd
2. 配置Curl脚本
在Windows下还需要建立一个Curl脚本用于Vundle的远程链接。在Git的路径下新建一个空文本文件,改名为curl.cmd,编辑内容为
- @rem Do not use "echo off" to not affect any child calls.
- @setlocal
- @rem Get the abolute path to the parent directory, which is assumed to be the
- @rem Git installation root.
- @for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
- @set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%
- @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
- @if not exist "%HOME%" @set HOME=%USERPROFILE%
- @curl.exe %*
3. 安装Vundle。
Git安装完成后,从官网Clone Vundle到Vim的安装路径下,
- git clone https://github.com/gmarik/vundle D:\Vim\vimfiles\bundle\vundle
- filetype off
- " 此处规定Vundle的路径
- set rtp+=$VIM/vimfiles/bundle/vundle/
- call vundle#rc('$VIM/vimfiles/bundle/')
- Bundle 'gmarik/vundle'
- filetype plugin indent on