请先安装 CentOS(Community Enterprise Operating System:社区企业操作系统),最好是最新版
开发工具包安装
[centos@localhost ~]$ sudo yum groupinstall 'Development Tools'
必要编译链接库安装
[centos@localhost ~]$ sudo yum install python-devel python3-devel lua-devel ruby-devel libX11-devel gtk-devel gtk2-devel gtk3-devel ncurses-devel
[centos@localhost ~]$ yum search perl | grep ExtUtils
[centos@localhost ~]$ sudo yum install perl-ExtUtils-Embed
准备 vim
[centos@localhost ~]$ cd /usr/local/src
[centos@localhost src]$ sudo git clone https://github.com/vim/vim.git