Ubuntu14.04 自動升級到16.04的時候,vim突然沒了Python-support,
運行
vim --version |grep python
出現如下結果
+cryptv +linebreak -python +viminfo
-cscope +lispindent -python3 +vreplace
說明vim沒有python支持。於是clone了vim源碼,使用
./configure --enable-multibyte --enable-pythoninterp=yes
配置后重新安裝編譯
中途出現了一個小插曲,發現
no terminal library found checking for tgetent()… configure: error: NOT FOUND! You need to install a terminal library; for example ncurses.
發現其實是ncurses包沒有,在ubuntu下面只需要安裝即可
sudo apt-get install libncurses5-dev
reference:
http://stackoverflow.com/questions/20160902/how-to-solve-requires-python-2-x-support-in-linux-vim-and-it-have-python-2-6-6