重新按照流程进行编译GVIM,发现了一些问题;
1.首先,是在使用 msys2时,找不到gcc ;
解决方案,使用Pacman安装后,使用 mingw64.exe 进行安装;
2.在编译gvim,解决Python依赖项时,使用不同版本的python出现问题;
解决方案:编译64位gvim使用 64位的python;
3.在make时使用的文件,custom.mak中,
python的路径手动配置;
4.编译完成后,生成gvim.exe,但是无法从Windows启动栏启动;
提示 缺少 libstdc++-6.dll,
查找后发现,这个dll在msys中,于是将msys的lib路径配置到Windows的环境变量 PATH中;
5.安装Vundle时,vim使用~/.vimrc,gvim使用~/_vimrc,
但是gvim安装插件总是报错,
Error detected while processing function vundle#installer#new.
...
可以通过修改_vimrc中,
" set the runtime path to include Vundle and initialize
set rtp+=~\.vim\bundle\Vundle.vim
"call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
" 修改下面这一行为自己的Vundle目录
call vundle#begin('C://msys64//home//yourname//.vim//bundle//Vundle.vim')
即可成功安装插件;
在msys2环境下编译GVIM过程中遇到了找不到gcc、Python依赖问题、gvim启动错误以及Vundle安装插件失败等挑战。通过使用Pacman安装gcc,确保Python版本匹配,配置python路径,解决缺失dll问题,以及调整.vimrc配置,最终成功编译并安装了gvim及其插件。

6432

被折叠的 条评论
为什么被折叠?



