Vim: Split Screens
Split screens allow you to view and edit multiple files or parts of the same file simultaneously.
| Command | Description |
|---|---|
:split [file] | Split the screen horizontally and open file in the new split. |
:vsplit [file] | Split the screen vertically and open file in the new split. |
Ctrl + w, s | Split the current window horizontally. |
Ctrl + w, v | Split the current window vertically. |
Ctrl + w, w | Cycle through open windows. |
Ctrl + w, h/j/k/l | Move to the window left/down/up/right. |
Ctrl + w, q | Close the current window. |