我今天早上从github上安装了vim8.0版本 http://www.vim.org/download.php
启动vim并尝试:echo has("python3")
时,它返回0
(对于python来说相同)
安装并输入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 \
(和许多其他命令......)但我无法设法得到echo has(“python3”)返回1。
还尝试删除vim 8.0,无法将其删除...
答案 0 :(得分:0)
configure命令中的最后一行:
--disable-pythoninterp \
不是有效选项。 Python解释器的有效选项是
--enable-pythoninterp \
默认值为no,可选值为no / yes / dynamic。
(参见vim80 / src / auto / configure,第1486行;以及vim80 / src / configure.in,第1100行)
因此,看起来值得尝试删除最后一行并重新发出configure命令。