在Vim中,ctrl + w c​​trl + w的反义词是什么?

时间:2014-11-28 11:05:33

标签: vim editor

ctrl+w ctrl+w在视口中循环,但我该如何反向?

假设我在vsplit中打开了3个缓冲区,反复执行ctrl+w ctrl+w将会进入1,2,3,1,2,3 ......如果我想要去3,2,1,那该怎么办? 3,2,1,......

_____________________________________________________________
|                   |                   |                   |
|                   |                   |                   |
|                   |                   |                   |
|         1         |         2         |         3         |
|                   |                   |                   |
|                   |                   |                   |
|                   |                   |                   |
|                   |                   |                   |

2 个答案:

答案 0 :(得分:5)

让我们试试:help CTRL-W_CTRL-W

CTRL-W w
CTRL-W CTRL-W   Without count: move cursor to window below/right of the
                current one.  If there is no window below or right, go to

现在请继续阅读...

CTRL-W W        Without count: move cursor to window above/left of current
                one.  If there is no window above or left, go to bottom-right

虽然我更喜欢“定向”CTRL-W jklh)映射,尤其是在映射到快速<C-j>等时。

答案 1 :(得分:0)

上移: CTRL + w SHIFT + w

向下移动: CTRL + w CTRL + w