我可以更改 vim 完成预览窗口的高度吗? [英] Can I change vim completion preview window height?
本文介绍了我可以更改 vim 完成预览窗口的高度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Eclimd 来完成.它生成了很多关于函数的有用信息,但在 1 行预览窗口中它看起来很混乱.(omni-completion 使用相同的窗口)
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)
所以:
- 有没有办法改变默认的预览窗口高度?
- 制作预览弹出窗口而不是预览窗口?
推荐答案
我也面临 'previewheight' 的问题,所以我想出了以下解决方案:
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
这篇关于我可以更改 vim 完成预览窗口的高度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文