首先安装python2.7和python3
打开:https://www.vim.org/git.php
从Git下载vim8.0
yum install perl-ExtUtils-Embed perl-ExtUtils* libXt-devel gtk2-devel
git clone https://github.com/vim/vim.git
# debian提示could not configure X 需要安装 apt install xorg-dev
cd vim
#如果需要安装新版的话,直接查看git tag 但是如果要安装vj的话用8.0,8.1不支持
git checkout v8.0.1850
./configure --prefix=/usr/local/vim-8.0 -enable-multibyte --enable-fontset --enable-xim --enable-gui=auto --enable-luainterp=dynamic --enable-pythoninterp --enable-python3interp --enable-rubyinterp=dynamic --enable-perlinterp --enable-cscope --enable-sniff --with-x --with-compiledby=erocpil --with-features=huge --with-python-config-dir=/usr/local/python2/lib/python2.7/config --with-python3-config-dir=/usr/local/python3/lib/python3.7/config-3.7m-x86_64-linux-gnu
make && sudo make install && sudo make distclean
ln -sf /usr/local/vim-8.0/ vim
ln -sf /usr/local/vim/bin/* /usr/bin/.
安装插件(本插件只适合vim8.0+python3.7.*)
git clone https://github.com/bbhsky/vimide.git
./update.sh
#安装插件
vim +BundleInstall +BundleClean! +qa
更换vim皮肤
# 正常的可以修改
vim ~/.vimrc
# 安装过vimide查看.vimrc里引入文件位置
# 找到
colorscheme default
# 修改程下面的或者自己下载主题修改
# /usr/local/vim/share/vim/vim90/colors 可以查看皮肤名字.vim结尾的
colorscheme torte
colorscheme slate
其他系统错误:
ubuntu、Debian下安装遇见
error: could not configure X
apt install xorg-dev
yum install ncurses-devel