Vim add LUA support in Ubuntu

Source: Internet
Author: User
Tags lua



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

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.