答:源碼編譯安裝最新的vimpython
以redhat爲例:git
1. 移除舊的vi,vimgithub
sudo yum remove vi vim -yvim
2. 安裝ncurses庫rem
sudo yum install ncurses-devel源碼
3. 獲取源碼it
git clone https://github.com/vim/vim.git編譯
cd vim配置
3. 配置編譯安裝im
./configure --prefix=/usr --with-tlib=tinfo --enable-pythoninterp && make -j4 && sudo make install