Preben Randhol <[EMAIL PROTECTED]> wrote on 30/06/2006 (13:01) : > Hi > > I use the script pydoc.vim > (http://www.vim.org/scripts/script.php?script_id=910) > to pull out the documentation of functions in python. It is a great > script. One can use \pW or \pw to get the documentation of the function > under the cursor (by using Word, word). > > Problem is that if one has the following code-line: > > re.search(re.sub( > > then \pW \pw will always look up re.search. I guess word doesn't care if > there is a ( and takes everything. Is there a way to get the word to > seperate words if there is a ( in between? I'm asking as I would like to > be able to press say F6 or some other function key in insert mode and > that I then call a macro that gets re.sub and then looks it up with > Pydoc.
Sorry. I found the problem. It was a old script file I sourced that kept messing with my iskeyword. I'm however still interested if there is a way to do the automatic lookup when pressing (. Thanks in advance Preben