On Thu, May 04, 2006 at 03:02:18PM +0100, Neil Bird wrote: > > With the noddy plugin ~/.vim/ftplugin/c/balloon.vim: > > function! MyBalloonExpr() > redir => def > exe 'silent isearch /'.v:beval_text.'/' > redir END > return substitute(def,'^\_s*\(.\{-\}\)\_s*$', '\1', '') > endfunction > setlocal balloonexpr=MyBalloonExpr() > setlocal ballooneval
Sorry, not directly connected to your problem, but I just noticed that the balloon window can _only_ be used with the mouse. Wouldn't it make sense if 'balloonexpr' is set, that the balloon is also shown when the cursor pauses over a character for a certain time? (Just like CursorHold does). I think, most people using vim will never touch the mouse but the balloon could give valuable information (like the definition of variable) also for keyboard-only users. -- Martin