Can I change vim completion preview window height?

坚强是说给别人听的谎言 提交于 2019-12-22 06:36:56

问题


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?

回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!