- CentOS: (貌似已经失效)
# 添加源
sudo curl -L https://copr.fedorainfracloud.org/coprs/mcepl/vim8/repo/epel-7/mcepl-vim8-epel-7.repo -o /etc/yum.repos.d/mcepl-vim8-epel-7.repo
# 升级安装
sudo yum update -y vim*
- Ubuntu:
# 解决 add-apt-repository: command not found
sudo apt-get install software-properties-common python-software-properties
# 添加源
sudo add-apt-repository ppa:nmi/vim-snapshots
# 更新及安装
sudo apt-get update
sudo apt-get install vim
# 如果需要删除或者说叫降级的话
sudo apt-get install ppa-purge
sudo ppa-purge ppa:nmi/vim-snapshots
- 删除一个 PPA 源:
cd /etc/apt/sources.list.d/ # then delete whatever you want
# 下面这条似乎没生效
sudo add-apt-repository -r ppa:user/ppa-name
- 手动编译:
# 下载最新 vim
git clone https://github.com/vim/vim.git
# 进入目录
cd vim/src
# 配置
./configure --enable-pythoninterp=yes
# 编译
make
# 安装
sudo make install
Comments