# install libs
sudo apt-get install libncurses5-dev libperl-dev python-dev ruby-dev mercurial checkinstall lua5.2 liblua5.2-dev

# make link
sudo ln -s /usr/include/lua5.2/ /usr/include/lua

# clone vim
git clone git@github.com:vim/vim.git

# enter working directr
cd ~/vim/src

# config to support lua (as well as ruby python perl), tried so many times, sigh...
./configure --enable-rubyinterp \
            --enable-pythoninterp \
            --enable-perlinterp \
            --enable-luainterp \
            --with-lua-prefix=/usr

# make
make

# install
make install
2018-08-16 23:4947