dpkg -l | grep vim
sudo apt-get remove vim vim-runtime vim-tiny vim-common
yum list installed | grep –i vim
sudo yum remove vim-enhanced vim-common vim-filesystem
sudo apt-get install libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libxpm-dev libxt-dev python-dev python3-dev ruby ruby-dev lua5.1 lua5.1-dev libperl-dev git catgs libncurses5-dev libncursesw5-dev
sudo yum install -y ctags git gcc make ncurses ncurses-devetcl-devel ruby ruby-devel lua lua-devel luajit luajit-devel python python-devel perl perl-devel perl-ExtUtils-ParseXS perl-ExtUtils-XSpp perl-ExtUtils-CBuilder perl-ExtUtils-Embed
git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-python3interp \
--with-python3-config-dir=/usr/lib/python3.5/config \
--enable-perlinterp \
--enable-luainterp \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr
make && sudo make install
vim --version | less
为什么都编译安装 Vim8 了还来个快速安装?
主要考虑要求不高,够用就好。
缺点: 不支持 lua/ruby/perl,建议使用编译安装
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim
sudo apt remove vim
sudo add-apt-repository --remove ppa:jonathonf/vim