Hacker News new | ask | show | jobs
by looklookatme 1347 days ago
Not OP, but I've been using vim for 20+ years and I get enormous utility out of the mouse wheel for scrolling - especially with a trackpoint.

I spend an enormous amount of time _reading_ code and I want to move up and down quite a lot, but C-U/C-D move too fast (losing mental context) and C-E/C-Y are too slow and RSI-inducing; the wheel very easily allows you to encode an additional "velocity" dimension that the keyboard simply doesn't have.

When reading code, the mouse also allows you to navigate reasonably effectively using only one hand, leaving the other hand free for sipping coffee and taking notes.

3 comments

May I suggest two things to make <C-U> and <C-D> more usable?

1. Set 'scroll' to a value you're comfortable with, so that <C-D> and <C-U> move fewer lines.

2. Use a plugin that shows a scrolling animation when you use <C-D>, <C-U>, <C-F> or <C-B>. I use vim-smoothie (https://github.com/psliwka/vim-smoothie).

Have you tried having N lines of context with C-D and C-U? I also found that (half-)page jumps make me lose context, but having some lines on the top or bottom help me keep it.
> leaving the other hand free for sipping coffee and taking notes.

That explains why my coffee ends up cold and abandoned most of the time!