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