vim 源码安装

Posted by 1nhann on 2021-07-11
Page views

vim 的源码安装

  1. 准备好 gcc 、make、ncurses-dev

  2. 下载 zip 文件

1
curl https://github.com/vim/vim/archive/v8.2.0139.zip -o vim8.2.0139.zip -L
  1. 解压
1
unzip vim8.2.0139.zip  && cd vim-8.2.0139/src
  1. 编译
1
./configure --prefix=/usr/local/vim8/ --enable-pythoninterp=yes
1
make && make install
  1. 快捷设置
1
ln -s /usr/local/vim8/bin/vim /usr/bin/vim
  1. 测试
1
vim --version