Windows下安装vim插件管理vundle

1.安装git

下载msysgit并安装,并将Git 的安装路径加入环境变量Path: D:\Git\cmd

2. 配置Curl脚本

在Windows下还需要建立一个Curl脚本用于Vundle的远程链接。在Git的路径下新建一个空文本文件,改名为curl.cmd,编辑内容为

  1. @rem Do not use "echo off" to not affect any child calls.  
  2. @setlocal  
  3.   
  4. @rem Get the abolute path to the parent directory, which is assumed to be the  
  5. @rem Git installation root.  
  6. @for /F "delims=" %%I in ("%~dp0.."do @set git_install_root=%%~fI  
  7. @set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%  
  8.   
  9. @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%  
  10. @if not exist "%HOME%" @set HOME=%USERPROFILE%  
  11.   
  12. @curl.exe %*  

3. 安装Vundle。

Git安装完成后,从官网Clone Vundle到Vim的安装路径下,

  1. git clone https://github.com/gmarik/vundle D:\Vim\vimfiles\bundle\vundle  
4. 配置Vundle。

  1. filetype off  
  2. " 此处规定Vundle的路径  
  3. set rtp+=$VIM/vimfiles/bundle/vundle/  
  4. call vundle#rc('$VIM/vimfiles/bundle/')  
  5. Bundle 'gmarik/vundle'  
  6. filetype plugin indent on 


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值