Add Lua support for Vim in Ubuntu

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.