vi启动时报错:YouCompleteMe unavailable: requires Vim 7.4.1578+如何处理?
答:源码编译安装最新的vim
以redhat为例:
1. 移除旧的vi,vim
sudo yum remove vi vim -y
2. 安装ncurses库
sudo yum install ncurses-devel
3. 获取源码
git clone https://github.com/vim/vim.git
cd vim
3. 配置编译安装
./configure --prefix=/usr --with-tlib=tinfo --enable-pythoninterp && make -j4 && sudo make install