如何在 windows 上使用病原体安装 YouCompleteMe

How to install YouCompleteMe using pathogen on windows

我正在尝试使用 Pathogen 安装 YCM,但是 Github 上的 README 文件中没有使用 Pathogen 执行此操作的教程。有什么方法可以使用 Pathogen 安装 YCM,我该怎么做?

要使用 Pathogen 安装插件,您只需将其文件夹放入 %USERPROFILE%/vimfiles/bundle/ 文件夹即可。

一种方法是:

git clone https://github.com/Valloric/YouCompleteMe.git %USERPROFILE%/vimfiles/bundle/YouCompleteMe

然后像安装 Vundle 一样按照其余的安装说明进行操作(查看 the repo 了解更多信息):

cd %USERPROFILE%/vimfiles/bundle/YouCompleteMe
python install.py --all

在 macOS 上使用 pyenv,我不得不……

cd "$HOME/.vim/bundle"
git clone https://github.com/Valloric/YouCompleteMe.git
cd YouCompleteMe
git submodule update --init --recursive  # I had to do this several times… YMMV
PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.12
pyenv local 3.6.12
python3.6 install.py --all