2016-11-28 40 views
0

我今天上午從GitHub的 http://www.vim.org/download.phpVIM只有python3

安裝vim8.0版本推出vim和嘗試:echo has("python3")返回0(同爲蟒蛇)

安裝它,然後鍵入vim --version | grep python我後,當得到:

+cryptv   +linebreak  +python/dyn  +vreplace 
+cscope   +lispindent  +python3/dyn  +wildignore 

看起來可能有問題,如果有+python+python3,但它的情況下/dyn? 在此之後我嘗試了很多事情只有唯一python3

 ./configure --with-features=huge 
     --enable-multibyte \ 
     --enable-rubyinterp=yes \ 
     --enable-python3interp=yes \ 
     --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu \ 
     --enable-perlinterp=yes \ 
     --enable-gui=gtk2 --enable-cscope --prefix=/usr \ 
     --disable-pythoninterp \ 

(和許多其他命令...),但我不能設法得到迴音了(「python3」)返回1

還試圖刪除VIM 8.0,沒有辦法刪除...

+0

也許http://stackoverflow.com/questions/30444890/vim-use-python3-interpreter-in-python-mode/30449124#30449124是相關的 – sideshowbarker

回答

0

,在你的configure命令最後一行:

--disable-pythoninterp \ 

是不是一個有效的選項。對於Python解釋器的有效選項是

--enable-pythoninterp \ 

默認值是沒有,和可選的值是無/有/動態。

(見vim80/src目錄/自動/配置,線路1486;和vim80/src目錄/ configure.in,行1100)

因此,它看起來就像是值得嘗試刪除最後一行,並重新發布配置命令。