问题
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:
- Is there any way to change default preview window height?
- Make preview-popup instead of preview-window?
回答1:
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
回答2:
You can change the default height of the preview window by setting the 'previewheight'
option.
来源:https://stackoverflow.com/questions/3712725/can-i-change-vim-completion-preview-window-height