关于vim:编译vim支持python3

1次阅读

共计 1132 个字符,预计需要花费 3 分钟才能阅读完成。

零碎:uos
为了让 vim 反对 C 语言的代码提醒,据说须要 vim 反对 python

vim –version

发现零碎自带的 vi 的 python 和 python3 后面都是减号。所以须要编译. 我从欧拉仓库下载了 8.2 版的压缩包

https://gitee.com/src-openeul…

在根目录配置

./configure –enable-multibyte –enable-fontset –enable-xim –enable-gui=auto –enable-luainterp=dynamic –enable-python3interp=yes –enable-rubyinterp=dynamic –enable-perlinterp –enable-cscope –with-compiledby=erocpil –with-features=huge –with-python3-command=python3 -with-python3-config-dir=/lib/python3.7/config-3.7m-x86_64-linux-gnu> note.txt

make 之后,我进入 src 目录执行,vim –version 发现依然是减号。于是,查看配置的输入,其中搜寻 python 发现,Python’s configuration directory。于是我去掉一些唠叨的结尾

./configure –enable-multibyte –enable-fontset –enable-xim –enable-gui=auto –enable-luainterp=dynamic –enable-python3interp=yes –enable-rubyinterp=dynamic –enable-perlinterp –enable-cscope –with-compiledby=erocpil –with-features=huge

再 make 后,发现 python3 后面是加号了。
而后我给原来的 /usr/bin/vi 批改软连贯到 src 下的 vim,并没有动原来的 /usr/bin/vim
运行 vi,会有报错但不影响程序执行:

Error detected while processing ~/.vimrc:
line 78:
E484: Can’t open file /usr/local/share/vim/syntax/syntax.vim
Press ENTER or type command to continue

我关上 vimrc

77 “colorscheme shine
78 syntax on
79 “ 设置高亮搜寻

尽管不懂起因,只有把 78 行正文掉。就不会报错了。哪位兄弟晓得报错起因的,多谢指导!

正文完
 0