If I hover the mouse on any word of a Ruby file, I get a tooltip message.
A screenshot of that popup message is at popup message.
cat ~/.gvimrc
returns:
function! SyntaxBalloon()
let synID = synID(v:beval_lnum, v:beval_col, 0)
let groupID = synIDtrans(synID)
let name = synIDattr(synID, "name")
let group = synIDattr(groupID, "name")
return name . "\n" . group
endfunction
set balloonexpr=SyntaxBalloon()
set ballooneval
"how syntax highlighting groups for word under cursor
nmap <F2> :call <SID>SynStack()<CR>
function! <SID>SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc
The cleanest simplest way is to put this in your .vimrc:
:set noballooneval
Place it after you initialize Syntastic and Pathogen, if you use those plugins.
In some instances people have had problems with setting noballooneval, there's a few work-arounds:
:verb set ballooneval?
to watch changes to it.:set balloondelay=100000
:setlocal balloonexpr=
balloon
).balloon_eval
is a compile-time configuration option, you can use that to enable or disable the feature.References:
See also: I get this window while editing Ruby Files in Vim. What is it?
You're are using vim-ruby I guess. Well, this plugin defined a balloonexpr. You can read it here. Personally I find it quite annoying so I have disabled it with:
setlocal balloonexpr=
in my .vim/after/ftplugin/ruby.vim
file.
If you're using MacVim, the built-in netrw plugin will overwrite your set noballooneval
setting. You have to do this:
" Disable hover tooltips
set noballooneval
let g:netrw_nobeval = 1
What you see in the tooltip is the default output of ri
when run without arguments.
I think I saw an almost identical problem here a few weeks ago: a ri
vim script/macro that somehow didn't send the correct argument (word under cursor) to ri
.
You should hunt down the script/plugin/macro/autocommand that is supposed to interact with ri
and see if:
ri
.ri
.Do you use Janus or some other "distro"?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With