使所有分屏的宽度相同的捷径?

时间:2011-09-30 11:18:27

标签: vim macvim

当我打开gvim -S(带会话)时,我的分屏的宽度被搞砸了,我必须手动调整它们。

是否有快捷方式使所有分割屏幕的宽度相同?

由于

2 个答案:

答案 0 :(得分:65)

通常应该有效:

  

C-w=
see window-resize

窗口有例外情况,可以保持最小/最大宽度。 “侧边栏”样式插件(taglist,nerdtree)经常出现这种情况;在这种情况下,它可能只是在他们不调整大小时你想要的。

答案 1 :(得分:9)

来自vim帮助页面:

CTRL-W =    Make all windows (almost) equally high and wide, but use
            'winheight' and 'winwidth' for the current window.
            Windows with 'winfixheight' set keep their height and windows
            with 'winfixwidth' set keep their width.
相关问题