所以,我试过指令here,但它们似乎不起作用。一个问题可能是指令中指定的config目录错误,因此我将配置指令更改为cd ~
git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
--enable-python3interp=yes \
--with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr/local
make VIMRUNTIMEDIR=/usr/local/share/vim/vim80
它准确地反映了我的配置目录。我还验证了在我的命令行上安装了python和python3,不过,我不确定它们是否与我提供的配置文件中使用的版本相同,也不知道如何检查。在
当我输入vim --version时,我得到以下输出:
^{pr2}$
您可以看到python是动态检查的(尽管我不希望这样做,但不知道如何更改它)。当我尝试:echo has('python')或{}时,两者都会返回{}。在
我想知道如何用python正确地安装vim以及我做错了什么。在