System: Ubuntu15.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. $ sudoapt-getremovevimvim-runtimevim-tinyvim-commonvim-gui-common $ sudoapt-getpurgevimvim-runtimevim-tin.
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 content::
Make VIM a simple and practical IDE http://www.linuxidc.com/Linux/2011-06/37032.htm
Vim Learning Guide http://www.linuxidc.com/Linux/2013-08/89096.htm
Quick learn Vi editor http://www.linuxidc.com/Linux/2013-08/88586.htm
Powerful Vim editor http://www.linuxidc.com/Linux/2013-07/87544.htm
Build a Vim Development Environment http://www.linuxidc.com/Linux/2013-07/87363.htm on CentOS 6.2
CentOS 5.4 installation highlighted Vim editing tool http://www.linuxidc.com/Linux/2013-06/86508.htm
Vim tips: C language http://www.linuxidc.com/Linux/2012-12/77124.htm settings
Set Vim row http://www.linuxidc.com/Linux/2012-12/75485.htm in Ubuntu
Vim editor use basic tutorial http://www.linuxidc.com/Linux/2013-05/84031.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2016-04/129725.htm