我正在使用 vim 编辑器并使用 vsplit
分割窗口。我有 3 个垂直拆分窗口,顺序为 A
B
C
。是否可以将窗口随机播放到 B
A
C
顺序?
最佳答案
使用 <ctrl-w> + H
将当前选中的窗口移动到最左边(大写 H)
因此,如果您的光标位于 Pane B 中,您可以执行 <c-w>H
将 B 向左移动,A 将在中间位置
看看 :h window-moving
用于移动窗口的其他选项。
5. Moving windows around window-moving
CTRL-W x CTRL-W_x CTRL-W_CTRL-X
CTRL-W CTRL-X Without count: Exchange current window with next one. If there
is no next window, exchange with previous window.
With count: Exchange current window with Nth window (first
window is 1). The cursor is put in the other window.
When vertical and horizontal window splits are mixed, the
exchange is only done in the row or column of windows that the
current window is in.
...
CTRL-W_H
CTRL-W H Move the current window to be at the far left, using the
full height of the screen. This works like closing the
current window and then creating another one with
":vert topleft split", except that the current window contents
is used for the new window.
{not available when compiled without the +vertsplit feature}
关于linux - 左右移动或混洗 vsplit 窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18322892/