Cygwin使用Vundle安装插件时报错 fatal: destination path ‘/home/...‘ already exists and is not an empty

今天遇到了这个问题,明明我git clone到的目录并没有存在,但还是一直报这个错。上github找到了这个issue,解决了我的问题:https://github.com/junegunn/vim-plug/issues/556#issuecomment-262787368 

原因可能是你的windows上已经安装了git,cygwin一直在使用windows上的git。我们可以通过以下指令来查询cygwin使用的git版本:

git --version

如果返回信息里面带有windows字样的话,那么cygwin就在使用windows上的git。

git version 2.10.1.windows.1

现在我们使用cygwin的包管理工具或者apt-cyg来安装cygwin自己的git:

安装后再查询git版本,输出中应该不再含有windows字样。

此时再使用vundle安装插件,应该不再报错😀😀😀

最后附上我为cygwin配置的.vimrc中的vundle部分:

" vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'https://hub.fastgit.org/itchyny/vim-cursorword.git'
Bundle 'https://hub.fastgit.org/ntpeters/vim-better-whitespace'
Bundle 'https://hub.fastgit.org/vim-airline/vim-airline'
filetype plugin indent on
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值