我可以更改vim完成预览窗口高度吗?

And*_*rew 5 vim preview code-completion

我正在使用Eclimd完成.它会生成很多有关函数的有用信息,但在单行预览窗口中它看起来很乱.(同一窗口使用omni-completion)

所以:

  1. 有没有办法更改默认预览窗口高度?
  2. 制作预览弹出而不是预览窗口?

the*_*osp 5

我也遇到了'previewheight'的问题所以我想出了以下工作:

set previewheight=50
au BufEnter ?* call PreviewHeightWorkAround()
func PreviewHeightWorkAround()
    if &previewwindow
        exec 'setlocal winheight='.&previewheight
    endif
endfunc
Run Code Online (Sandbox Code Playgroud)