Reference: https://www.cnblogs.com/DillGao/p/6268165.html
$ sudo apt-get remove--purge vim$ sudo apt-get autoclean$ sudo apt install python-dev python3-dev ruby-dev Luajit liblua5 .1-dev libluajit-5.1 libperl-dev libncurses5-dev$ sudo rm-rf/usr/local/share/vim$ sudo rm/usr/bin/vim$ sudo mkdir-p/u sr/include/lua5.1/include$ sudo cp/usr/include/lua5.1/*.h/usr/include/lua5.1/include/$ cd ~$ git clone--depth 1 https: github.com/vim/vim.git$ CD ~/vim/src$ make distclean$./configure--with-features=huge--enable-largefile-- Enable-multibyte--enable-perlinterp--enable-rubyinterp--enable-luainterp--enable-python3interp-- With-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu--with-luajit--enable-fail-if-missing-- with-lua-prefix=/usr/include/lua5.1--enable-cscope--enable-gui=auto Note: Python3 and Python are given at the same time, Priority will use Python--enable-pythoninterp--with-python-config-dir=/usr/lib/python2.7/config $ make-j8$ sudo make install$ Whereis Vimvim:/usr/local/bin/vim/usr/share/man/man1/vim.1$ vim--version Install spf13-vim$ Curl http://j.Mp/spf13-vim3-l-O-| SH or $ curl Https://raw.githubusercontent.com/spf13/spf13-vim/3.0/bootstrap.sh-L-O-| SH will appear amirh/html-autoclosetag error (hint is to log on to GitHub), press CTRL+W,JJ to skip this error after installing all $ vim ~/. Vimrc.bundles find Amirh, replace with Okayliao, save exit and reinstall the plugin again with the following command. $ vim +bundleinstall! +bundleclean +q
Ubuntu compilation Vim+lua