Add Lua support for Vim in Ubuntu
System: Ubuntu 15.04
Because the built-in Vim of Ubuntu15.04 does not support Lua, You have to compile and install it yourself.
1. Uninstall the built-in vim.
$ Sudo apt-get remove vim-runtime vim-tiny vim-common vim-gui-common
$ Sudo apt-get purge vim-runtime vim-tiny vim-common vim-gui-common
2. Install the dependency file.
$ Sudo apt-get install luajit libluajit-5.1 libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial
3. Download the vim code.
$ Cd/tmp
$ Git clone https://github.com/vim/vim.git
4. Compile and install the SDK.
$./Configure -- with-features = huge \
-- Enable-cscope \
-- Enable-rubyinterp \
-- Enable-largefile \
-- Disable-netbeans \
-- Enable-pythoninterp \
-- With-python-config-dir =/usr/lib/python2.7/config \
-- Enable-perlinterp \
-- Enable-luainterp \
-- With-luajit-enable-fail-if-missing \
-- With-lua-prefix =/usr \
-- Enable-gui = gnome2 -- enable-csfix -- prefix =/usr
$ Make VIMRUNTIMEDIR =/usr/share/vim/vim74
$ Sudo make install
For more Vim tutorials, see the following:
Build VIM into a simple and practical IDE
Vim Learning Guide
Quick learn Vi Editor
Powerful Vim Editor
Build a Vim Development Environment on CentOS 6.2
Install the highlighted Vim editing tool in CentOS 5.4
Vim tips: C language settings
Set the Vim row number in Ubuntu
Vim editor basic tutorial