ubuntu16.04 无sudo权限安装vim8.0
编译安装 libreadline-dev
apt-get source libreadline-dev
cd readline6-6.3/
./configure --prefix=/home/zyliu/usr/
make
make install
编译安装 lua-5.3.4
下载 lua-5.3.4.tar.gz
https://www.lua.org/ftp/lua-5.3.4.tar.gz
tar xvf lua-5.3.4.tar.gz
cd lua-5.3.4
vi Makefile
修改 INSTALL_TOP=/home/zyliu/usr/
make linux CFLAGS="-O2 -Wall -Wextra -DLUA_COMPAT_5_2 -I/home/zyliu/usr/include -L/home/zyliu/usr/lib"
make install
编译安装 vim8.0
下载 vim-8.0.tar.bz2
ftp://ftp.vim.org/pub/vim/unix/vim-8.0.tar.bz2
tar jxf vim-8.0.tar.bz2
cd vim80
./configure --with-features=huge --enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu/ --enable-pythoninterp=yes --with-python-config-dir=PATH=/usr/lib/python2.7/config-x86_64-linux-gnu/
--enable-rubyinterp --enable-luainterp=yes --with-lua-prefix=/home/zyliu/usr/ --enable-perlinterp --enable-multibyte --enable-cscope --enable-gui=no --without-x --prefix=/home/zyliu/usr
make
make install
$ export PATH=/home/zyliu/usr/bin:$PATH