linux - 左右移动或混洗 vsplit 窗口

标签 linux vim

我正在使用 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/

相关文章:

vim - 替换状态行标志中的文本

vim - 如何在 Vim 中实现类凯撒密码文本替换?

vim - 在Vim中,为什么在 "w"与 "d"开头时 "v"单词选择器的行为不一致

bash - 在 Windows 10 上的 ubuntu 上使用 bash 启用 vi 鼠标滚轮滚动

C: 在 linux 中发送 http get 请求

Linux RFID 读取器 HID 设备与驱动程序不匹配

Linux 如何在 RAM 缓冲区中录制声音并使用自定义延迟播放音频

php - 我如何告诉 Apache2,默认运行 mod_php5,但在 CGI 模式下运行此 VH?

c - 进程间通信的普通管道

vim - 如何编写 vimrc 以在 vim 的标尺栏上显示时间和 git 信息