- scrolling with a mouse wheel
- selecting/resizing a split window
- jumping to a specific place in the code
- making a selection
- scrolling with a mouse wheel
- selecting/resizing a split window
- jumping to a specific place in the code
- making a selection
- scrolling with a mouse wheel
:h scroll.txt
- selecting/resizing a split window :h window-resize
:h window-move-cursor
- jumping to a specific place in the code /foo<CR>
or the myriad of cool things in :h motion.txt
- making a selection v{motion}Surely we don't need to get into this sort of thing here.
If you don't know how to do it without the mouse, then it's more efficient to do it with the mouse. If you don't remember how to do it without the mouse, then it's more efficient to do it with the mouse. If you just like using the mouse better, then ….
Anyway, and perhaps more importantly, it doesn't hurt any of us if anyone else values ease of use (even if it's illusory or temporary!) over efficiency.
di{ is obviously both quicker and more precise than reaching to the mouse, pointing at the beginning of the code block, extending the selection until the end of the code block and hitting backspace.
One may think these keybindings are awkward or hard to remember (I did, at first, they are not) but they are both faster, more efficient and more deterministic by nature. But I may be a control freak. :-)
No. All this can be made with an extra cognitive overload provided by the use of keyboard shortcuts that makes you think you're doing something useful and/or faster than with the mouse.
Especially if you don't need to have your hand at the keyboard at all times (i.e you're just browsing code and not writing), scrolling with the mouse is way faster.
By the way, you totally missed the "me" in
> Keyboard shortcuts give me precision and efficiency, not speed, and that cognitive overload you talk about is a small price to pay.
which quite clearly means that this is a subjective matter.
Thanks for helping policing the internet: we clearly don't need to debate about anything.
You can of course make nicer mappings, but even then it isn't as nice.
10<C-w>
But I tend to keep windows at equal width anyway.I also resize often, particularly when using vimdiff, because I often use smaller screens (either because I am watching other things in tmux panes at the same time, or because I am working on my eeepc).
"narrower window
map - <C-W><
"wider window
map + <C-W>>
"shorter window
map _ <C-W>-
"taller window
map = <C-W>+