lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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>