(Vim) resize, rearrange splits
- Resize splits:
:[vertical ]resize [+-]Nresize: sets (or increments/decrements) the height of the window to (by)Nrowsvertical resize: sets (or increments/decrements) the width of the window to (by)Ncolumns- Note how the cmd names are confusing (
vertical resizemoves 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
NERDTreesplit before moving splits around, turn it back on later (sinceNERDTreewill be moved around too)
Reference:
Written on February 24, 2021
