(Vim) resize, rearrange splits
- Resize splits:
:[vertical ]resize [+-]N
resize
: sets (or increments/decrements) the height of the window to (by)N
rowsvertical resize
: sets (or increments/decrements) the width of the window to (by)N
columns- Note how the cmd names are confusing (
vertical resize
moves split left/right)
- Rearrange splits:
<ctrl-w> HJKL
- Moves the split that I am currently in towards the specified direction
- NOTE: The directions are capitalized (i.e.
<shift-hjkl>
) - TIP: Close
NERDTree
split before moving splits around, turn it back on later (sinceNERDTree
will be moved around too)
Reference:
Written on February 24, 2021