zl程序教程

您现在的位置是:首页 >  工具

当前栏目

Centos8 安装Vim

Vim安装 CentOS8
2023-06-13 09:11:39 时间

安装python依赖

sudo yum install  python python-devel 
sudo yum install  python36 python36-devel 

卸载已有的vim

yum -y remove vim

下载vim的项目源码

git clonehttps://github.com/vim/vim.git

下载好后进入到vim目录下进行配置、编译、安装

./configure --with-features=huge \

--enable-fontset \

--enable-multibyte \

--enable-python3interp=yes \

--with-python3-config-dir=/usr/lib64/python3.6/config

  • 参数说明如下: –with-features=huge:支持最大特性 -enable-python3interp:启用对python3编写的插件的支持 –enable-multibyte:多字节支持 可以在Vim中输入中文 --enable-fontset:支持字体设置 --with-python3-config-dir 指定python3配置路径

编译

make

安装

make install