Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Vundle for Windows

Garden Yuen edited this page · 33 revisions


  1. Git
  2. Curl

Git on Windows

Thanks to msysgit installation is trivial:

  1. Download msysgit installer
  2. run downloaded installer and follow instructions It's important to configure PATH environment variable properly. That's why it's recommended to select Run git from Windows command prompt option, as shown: add git to PATH

After installation try running git --version within command prompt (press Win-R, type cmd, press Enter) to make sure all good:

C:\> git --version
git version 1.7.4.msysgit.0

Curl on Windows

Installing Curl on Windows is easy as Curl is bundled with msysgit! But before it can be used with Vundle it's required make curl run in command prompt. The easiest way is to create curl.cmd with this content

@rem Do not use "echo off" to not affect any child calls.

@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;%git_install_root%\mingw64\bin;%PATH%
@rem !!!!!!! For 64bit msysgit, replace 'mingw' above with 'mingw64' !!!!!!!

@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%

@curl.exe %*

And copy it to C:\Program Files\Git\cmd\curl.cmd, assuming msysgit was installed to c:\Program Files\Git

to verify all good, run:

C:\> curl --version
curl 7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8k zlib/1.2.3
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: Largefile NTLM SSL SSPI libz

Vundle on Windows

Different File Names

By default, Vim on Windows will still look for .vimrc and install to ~/.vim. Since this isn't standard on Windows (you would have to enable hidden files) an alternative is to use _ files. That means instead of having a .vimrc file it will be a _vimrc in your home. Instead of .vim, we usually use a folder called vimfiles.

Additionally, if you've set %HOME% environmental variable to some directory, that's the directory vim will search as ~/, thus you have to put _vimrc file and vimfiles folder under the directory or remove %HOME% from environmental variable settings to use %USERPROFILE% as default.

To make these changes, open the cmd prompt or msysgit bash and execute the following lines. If you do not have gvim on your path, use vim instead.

git clone %USERPROFILE%/vimfiles/bundle/Vundle.vim
gvim _vimrc

From here, go to step 3 in the quick start and copy the sample config of Vundle into the _vimrc file.

Go to line around 11 and change set rtp+=~/.vim/bundle/Vundle.vim to set rtp+=$VIM/vimfiles/bundle/Vundle.vim/ and call vundle#begin() to call vundle#begin('$VIM/vimfiles/bundle/').

If you run into any problems, see the FAQ.

Trailing slash issue

Sometimes Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} may not work for you. Note the vim/ part. The trailing slash causes Vim on windows to not load the plugin and may affect others. The fix is simple; change it to:

Bundle 'rstacruz/sparkup', {'rtp': 'vim'} 

See #193 for more details.

Something went wrong with that request. Please try again.