views:

88

answers:

2

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?

A: 

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

too much php
Doesn't work for me, strange. Looks like it also deletes all newlines from preview-code.
Andrew
+1  A: 

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
TheOsp