DEV Community

Guilherme
Guilherme

Posted on

VIM - Windows

Commands:

Horizontal Split: Crtl-w s or

:sp
Enter fullscreen mode Exit fullscreen mode

Vertical Split: Crtl-w v or

:vs
Enter fullscreen mode Exit fullscreen mode

Close window: Crtl-w q or

:q
Enter fullscreen mode Exit fullscreen mode

Close all windows expect the current one: Crtl-w o or:

:on
Enter fullscreen mode Exit fullscreen mode

Navigate to the next window: Crtl-w w

Navigate to window in the direction wanted: Crtl-w and hjkl

Increase or Decrease the height of the window: Crtl-w and + or -

Increase or decrease the width of the window: Crtl-w and < or >

Maximize the height of the window: Crtl-w _

Maximize the width of the window: Crtl-w |

Make all windows to the same size: Crtl-w =

Rotate window: Crtl-w r

Rotate window in the opposite direction: Crtl-w R

Rotate window to specific direction: Crtl-w and HJKL

Open all buffers into windows:

:ba
Enter fullscreen mode Exit fullscreen mode

Execute command on all opened windows:

:windo
Enter fullscreen mode Exit fullscreen mode

Top comments (0)