While reading through this answer, I found these useful commands:
- Ctrl+W +/-: increase/decrease height
- Ctrl+W >/<: increase/decrease width
These are super useful, but I hate how it defaults to resizing by a single column at a time. I'd like it to move 10 columns at a time. I could do this:
nnoremap <C-w>+ 10<C-w>+
nnoremap <C-w>- 10<C-w>-
nnoremap <C-w>< 10<C-w><
nnoremap <C-w>> 10<C-w>>
But I dislike this solution. For one, it doesn't work well with counts. Sure, I could use <expr>
, but that just makes it more complicated. The other thing is, this just feels like the wrong way to do it. Is there any setting such as :set resize_amount = 10
?
<prefix>
then just keep hammering<C-J>
,<C-K>
,<C-H>
,<C-L>
until the windows are where I want them. Even Bram moolenaar himself states that vim's resize feature is most easily used with a mouse.