[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: [OT] Re: Lua 5.1 reference manual in Vim
- From: Luis Carvalho <carvalho@...>
- Date: Wed, 29 Nov 2006 19:09:24 -0500
> > luarefvim, the Vim help file for Lua that is based on the reference manual,
> > has been updated to include the Lua 5.1 reference manual. Grab it at:
> > http://www.vim.org/scripts/script.php?script_id=1291
> That is truly great! Thanks!
You're welcome. :)
> One thing I wonder, what is help.vim for?
Extra markups and settings for luarefvim.
> One tiny thing, I notice that whether c-] can jump to a description of a
> function while inside the help windows depends on whether the ( is
> touching the function name:
> lua_gettable(L, -1) -- can't jump, thinks that 'lua_gettable(L' i
> the token
> lua_gettable (...) -- can jump
> For example, try ':help stackexample', then try (using c-] or \lr) to
> go to the help for lua_replace from inside the example, it doesn't work
> for me.
That's because the 'iskeyword' option is set differently for help files, and
it includes '(' (\lr should work fine in C/Lua code). To fix that, you can
append "set iskeyword+=^(" to after/syntax/help.vim.
A mathematician is a device for turning coffee into theorems.
-- P. Erdos
Applied Math PhD Student - Brown University
PGP Key: E820854A <firstname.lastname@example.org>