editing - How to swap files between windows in VIM? - Stack Overflow: "There are a few useful commands built in which give you a certain amount of control, but it's not comprehensive. The main ones are:

Ctrl-W, r (i.e. hold CTRL, press W, release CTRL, press r) - which rotates the windows (The first window becomes the second one, the second one becomes the third one, etc.)

Ctrl-W, x - swap the current window with the next one

Ctrl-W, Shift-H - move this window to the far left

Ctrl-W, Shift-K - move this window to the top

(and similarly for J and K). See:

:help window-moving
for more information."