Search code examples
vimpreviewcode-completion

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?

Solution

  • 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