Tuesday, August 21, 2018

Re: lua

On Wed, Aug 22, 2018 at 12:26 AM, rob <drrob106@gmail.com> wrote:
> Hi. I'm interested in getting code folding to work. I'm getting a message
> on Ubuntu 16.04 amd64 that lua has to be compiled in for a macro to work.
>
> How do I get lua to be compiled into the make process?
>
> --rob

You can get folding without lua in any Normal, Big or Huge Vim; but
that doesn't help with your macro.

For lua, you need, in addition to everything else needed to compile Vim:

1) lua installed on your system _with_ the corresponding "development"
packages (the latter are necessary to compile a program which uses
lua). I'm not sure how exactly to get these on Ubuntu (I'm on openSUSE
Linux) but you should be able to query your package manager about
packages whose names start with lua and make sure that at least the
lua library package and the lua development package are installed.

2) then you need to configure and compile Vim with lua. See the
following for details:
https://vim.wikia.com/wiki/Getting_the_Vim_source_with_Mercurial
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm
These two may seem a little complex but I tried to make them apply to
any use case. (I'm not sure I succeeded but at least I tried.)

The relevant configure parameter is --enable-luainterp (e.g. export
CONF_OPT_LUA='--enable-luainterp') and I recommend to run "make
reconfig" to reconfigure and recompile after any change in your
configure settings (which I define by means of environment variables
so Make will get them right even if, as it sometimes happens, it
decides to run configure again before an ordinary compile).

Before running "make install", run src/vim --version to see if the Vim
you just compiled has +lua (and everything else that you want it to
have). If it doesn't then it is time to ask yourself what went wrong.


Best regards,
Tony.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: