Vim: Move window left/right?

前端 未结 5 1219
野趣味
野趣味 2020-12-04 04:38

In Vim, is it possible to “move” a window to the left or right? Eg, similar to r or x, but left/right instead of up/down?

5条回答
  •  独厮守ぢ
    2020-12-04 04:57

    Do you want to move the window itself or just your cursor position?

    Next to rotating or cycling like you already mentioned, it's only possible to move the window itself to the far top, bottom, left or right, with respectively:

    ^W K
    ^W J
    ^W H
    ^W L
    

    I don't think there is a default builtin way to moving a window one place to the right.

提交回复
热议问题