[英]VIM: how to get current window size, so that I can set NEEDTree to 1/3 window size?
I wish when I bring out NEEDTree or TagBar, the window size is always 1/3 of my original vim window size, no matter how big my vim window is, it's calculated automatically. 我希望当我取出NEEDTree或TagBar时,窗口大小始终是原始vim窗口大小的1/3,无论我的vim窗口有多大,它都是自动计算的。
How to do this? 这个怎么做?
vim has built-in function winwidth({nr})
to get window width. vim具有内置函数winwidth({nr})
来获取窗口宽度。 If you pass a zero
as win number, it will return your the width of current window. 如果您传递zero
作为获胜号码,它将返回您当前窗口的宽度。
To change the window size of NerdTree, you have to set the variable: NERDTreeWinSize
要更改NerdTree的窗口大小,必须设置变量: NERDTreeWinSize
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.