下载离线安装包

vim-8.2.tar.bz2

解压

1
bunzip2 vim-8.2.tar.bz2

再解压

1
tar xvf vim-8.2.tar

进入解压目录

1
cd vim82

配置

1
./configure --disable-selinux --enable-cscope

如果此处报错
no terminal library found
checking for tgetent()… configure: error: NOT FOUND!
You need to install a terminal library; for example ncurses.
Or specify the name of the library with –with-tlib.
点击下载ncurses

rpm -ivh xxxxxxxx
安装完成后
重新执行该步骤

编译安装

1
make && make install