【发布时间】:2016-10-14 11:54:41
【问题描述】:
我正在使用vundle 安装vim 插件,但我需要从分支fix-vim-eval-returning-py2-str 安装YouCompleteMe,因为我必须使用python3,否则我会出错。
为此,我已经通过:PluginInstall 下载了带有vundle 的master 分支,然后我必须这样做:
cd ~/.vim/bundle
rm -rf YouCompleteMe
git clone -b fix-vim-eval-returning-py2-str https://github.com/puremourning/YouCompleteMe.git
cd YouCompleteMe
git submodule update --init --recursive
改变分支。
问题是有时 vundle 用master 替换我的早午餐(这与我的系统不兼容),我必须在我的.vimrc 上留下Plugin 'Valloric/YouCompleteMe' 行,否则插件不起作用。我该如何解决?
【问题讨论】:
-
从issue tracker看来,Vundle 目前似乎无法做到这一点。但是vim-plug 有这个功能。
-
是的,我知道,但我正在寻找解决方法。我想我会安装 ycm 而不用 vundle 编辑一些文件以允许 ycm 在不同的目录中工作