How to swap files between windows in VIM? [closed]

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:

  • CtrlW, 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.)

  • CtrlW, x – swap the current window with the next one

  • CtrlW, ShiftH – move this window to the far left

  • CtrlW, ShiftK – move this window to the top

(and similarly for CtrlW, ShiftJ and CtrlW, ShiftL). See:

:help window-moving

for more information.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)