The Tip: :res[ize] and :vertical res[ize] for resizing windows.
Usage: Split some windows using both :split and :vsplit. With your cursor in a particular window you can resize it using the following:
- :res N - Changes the height of a window to be N rows.
- :res +N - Adds N rows to the height of a window
- :res -N - Removes N rows from the height of a window
- :vertical res N - Changes the width of a window to be N characters
- :vertical res +N - Adds N characters to the width of a window
- :vertical res -N - Removes N characters from the width of a window
- ctrl-w = - Makes all windows visible in VIM approximately the same height.
What Is It Good For?: Very rarely am I in VIM without having multiple windows open to look at multiple files at the same time (or perhaps to look at the same file in two different locations). These commands are ultra useful to size the windows to an appropriate width and height for the given task.