一.vim ~/.vimrc后提示YouCompleteMe unavailable: requires Vim 9.1.0016+.说明 Vim 版本低于 YouCompleteMe 所需要的最低版本。
二.升级Vim至9.1.0016+
1. Ubuntu/Debian系统
# 添加PPA仓库
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim-gtk3 # 或 vim-nox
# 若PPA版本不足,需手动编译
sudo apt install -y git make libncurses5-dev
git clone https://github.com/vim/vim.git
cd vim/src
./configure --with-features=huge
make && sudo make install
查看版本:vim --version
2. macOS系统
# 使用Homebrew安装最新版
brew update
brew install vim
# 验证版本
vim --version | head -1
执行完以上步骤,即可解决该问题。