[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [OT] Re: Lua 5.1 reference manual in Vim
- From: Rici Lake <lua@...>
- Date: Thu, 30 Nov 2006 19:52:24 -0500
On 29-Nov-06, at 7:09 PM, Luis Carvalho wrote:
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.
I tried that and it didn't work (on vim 6.2, maybe it's different on
vim 7).
Hence my suggestion to use this bit of vimscript:
map <silent> <F1> :call
<SID>LookUp(matchstr(strpart(getline("."),matchend(strpart(getline("."),
0,col(".")),".*\\W\\w")-1),"\\w*"))<CR>