所以我做了一个垂直分割并使用 CNTRL+| 最大化了一个分割窗口。. 现在我如何让它回到相同的大小?
编辑:让我详细说明我的问题,假设我有这样的布局
------------------
| one | two |
|-----------------
|three | Four |
------------------
在上面的布局中,我最大化第三个窗口以捕获整个屏幕大小。现在,如果我只想在拆分视图中显示三个和四个,并最小化“一”和“二”,那该怎么做?
所以我做了一个垂直分割并使用 CNTRL+| 最大化了一个分割窗口。. 现在我如何让它回到相同的大小?
编辑:让我详细说明我的问题,假设我有这样的布局
------------------
| one | two |
|-----------------
|three | Four |
------------------
在上面的布局中,我最大化第三个窗口以捕获整个屏幕大小。现在,如果我只想在拆分视图中显示三个和四个,并最小化“一”和“二”,那该怎么做?
If you didn't do any resizing between the creation of the vertical split and <C-w>|
, <C-w>=
will return you to an "equalized" layout.
If you did some resizing you are out of luck as Vim doesn't keep a "resize history".
See :help windows
.
If it's just the two windows, Ctrl-W = will make both the same width again, but if you have more windows, their size might be affected by this, too. If you have mouse support (e.g. in GVIM), you also just drag around the window border to resize.