Some useful commands for dealing with split screens in vim:
- :split – split the screen (:vsplit splits vertically)
- ^Ww – go to the other window
- ^Whjkl – go to the window in the specified direction
- ^W+ – increase the height of the window (- decreases it), add a count if you like
- 42^W_ – set the height to 42 lines
- ^W> – increase the width of the window (< decreases it), add a count if you like
- :close – close the current window
- :only – close all other windows
Advertisement
Tags: vim