How do I resize a window horizontally?
Answer
<C-w>> and <C-w><
Explanation
The <C-w>> and <C-w>< commands increase or decrease the width of the current window. These work for vertical splits.
How it works
<C-w>>increases width by 1 column<C-w><decreases width by 1 column10<C-w>>increases width by 10 columns<C-w>|maximizes the window width
Example
With a vertical split, 20<C-w>> gives the current window 20 more columns.
Tips
<C-w>=equalizes all window sizes:vertical resize 80sets exact width to 80<C-w>|maximizes width- These are most useful with vertical splits
- Map to arrow keys for easy resizing