Windows下Vundle安装

鼠标手老是发作,没办法。想学习vim尽量减少编码时使用鼠标的频率。安装好gVim开始安装Vundle插件,总结下安装过程和各种遇到的坑:

github上VundleVim倒是有说明 Windows Setup 的步骤,但可能太久没有更新了遇到好几个坑:

1. msysgit 这个项目的github上是这样说的:

Git for Windows 1.x was retired on August 18th, 2015, superseded by Git for Windows 2.x. The development environment of Git for Windows 2.x is no longer maintained in a monolithic Git repository but rather as the Git SDK, a friendly fork of MSys2 pre-configured to ease the development of Git for Windows.

真汗,还安装这个。个人下载了Git for Window v2.8 64bit安装。

2. 那个curl.cmd批处理脚本也是坑爹,我win8.1下竟然运行错误:

for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI

提示:此处不应有%%I。 呵呵,脚本就是设置curl.exe的路径到path环境变量中,Git for Window自带了curl.exe,

参考着自己设一下吧,在“Git\mingw64\bin”中。

3. Vundle叫你改的_vimrc文件,又是%HOME%,又是%USEPROFILE%的。和vim放一起不是很好么?果断改为:

set rtp+=$VIM/vimfiles/bundle/Vundle.vim

call vundle#begin('$VIM/vimfiles/bundle/')

4. 运行gvim,输入:PluginInstall,突然左边分割出一个窗口,还以为在干啥,搞了半天。原来是在下载插件。好吧,搞定了。

原文地址:https://www.cnblogs.com/through/p/5349587.html