Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I change vim completion preview window height?

I'm using Eclimd for completion. it generates a lot of helpful info about function, but in 1-line preview window it looks messy. (same window uses by omni-completion)

So:

  1. Is there any way to change default preview window height?
  2. Make preview-popup instead of preview-window?
like image 935
Andrew Avatar asked Sep 14 '10 20:09

Andrew


2 Answers

I am facing problems with 'previewheight' too so I came up with the following work around:

set previewheight=50
au BufEnter ?* call PreviewHeightWorkAround()
func PreviewHeightWorkAround()
    if &previewwindow
        exec 'setlocal winheight='.&previewheight
    endif
endfunc
like image 140
theosp Avatar answered Oct 22 '22 20:10

theosp


You can change the default height of the preview window by setting the 'previewheight' option.

like image 38
too much php Avatar answered Oct 22 '22 21:10

too much php