vundle需要git,所以先安装Git for Windows installer
在命令提示符
git --version
如果成功显示版本号则成功。
vundle也需要curl,在你的git安装目录的cmd目录下创建一个curl.cmd
比如C:\Program Files\Git\cmd\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;%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 %*
在cmd里输入 curl --version出现版本号则成功。
将Vundle.vim-master.zip内容复制到vim目录
打开配置文件_vimrc添加:
set nocompatible " 去除VI一致性,必须
filetype off " 必须
set rtp+=KaTeX parse error: Expected 'EOF', got '#' at position 58: … call vundle#̲begin('VIM/vimfiles/bundle’) "插件安装地址
Plugin ‘VundleVim/Vundle.vim’
call vundle#end() " 必须
filetype plugin indent on " 必须 加载vim自带和插件相应的语法和文件类型相关脚本
-
打开vim,执行
- PluginInstall
vundle的使用
在vundle#begin()与vundle#end()之间插入一条语句
Plugin ‘scrooloose/nerdtree’
-
然后打开vim,输入
- PluginInstall 更新
- PluginInstall! 列出插件
- PluginList
卸载
-
删除在_vimrc的相应配置,然后
- PluginClean