System: Ubuntu 15.04
Because the Ubuntu15.04 system comes with vim that does not support LUA, you have to compile the installation yourself.
1. Remove the vim that comes with the system.
$ sudo apt-get remove vim vim-runtime vim-tiny vim-common vim-gui-common
$ sudo apt-get purge vim vim-runtime vim-tiny vim-common vim-gui-common
2. Install dependent files.
$ 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.
$ ./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- cscope --prefix = / usr
$ Make VIMRUNTIMEDIR = / usr / share / vim / vim74
$ Sudo make install
Lua support in vim in Ubuntu