开发者

Preserving equal sized split view

开发者 https://www.devze.com 2022-12-24 12:34 出处:网络
I start GVIM in not-maximized win开发者_Go百科dow mode and split its window horizontally making sure the windows are equally sized. How can I preserve this equal-sized split view when I maximize the m

I start GVIM in not-maximized win开发者_Go百科dow mode and split its window horizontally making sure the windows are equally sized. How can I preserve this equal-sized split view when I maximize the main GVIM window? Whenever I maximize GVIM forgets that the windows have been equally split.

Thanks.


The command to equalize splits is ^W= (ctrl-W =), or in a script, wincmd =.

To do this automatically, you can use:

autocmd VimResized * wincmd =
0

精彩评论

暂无评论...
验证码 换一张
取 消