Skip to content

Instantly share code, notes, and snippets.

@johngrib
Created January 7, 2019 10:09
Show Gist options
  • Save johngrib/547f736d3d7413bc877b4d355aa9cd98 to your computer and use it in GitHub Desktop.
Save johngrib/547f736d3d7413bc877b4d355aa9cd98 to your computer and use it in GitHub Desktop.
use balloon in gui vim
function! SimpleBalloon()
return 'Cursor is at line/column: ' . v:beval_lnum . ', ' . v:beval_col .
\ ' in file ' . bufname(v:beval_bufnr) .
\ '. Word under cursor is: "' . v:beval_text . '"'
endfunction
set balloonexpr=SimpleBalloon()
set ballooneval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment