$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 15 2020 16:44:08)
$ yum -y remove vim*
# https://github.com/vim/vim/releases
$ wget https://github.com/vim/vim/archive/refs/tags/v8.2.2879.tar.gz
$ tar -zxvf v8.2.2879.tar.gz
$ cd vim-8.2.2879
$ yum -y install gcc ncurses ncurses-devel
# --with-features=huge:支持最大特性
# --enable-[ruby|python|python3|lua|perl]interp:打开对[ruby|python|python3|lua|perl]编写的插件支持
# --enable-multibyte:多字节支持
# --enable-cscope:打开对cscope的支持
# --with-python-config-dir=...:指定python路径
$ ./configure --with-features=huge --enable-multibyte --enable-cscope --prefix=/usr/local
$ make
$ make install
$ vim --verison
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 24 2021 19:33:48)