News for hackers. Stuff that matters.
Re:Keyboard vs. The Mouse, Part 1 (1989) by laughinghan on Wednesday December 18, 2019 @03:44AM (#21823008)
> vi in Unix highlights the amount of time you spend watching the screen as you cursor around with hjkl

vi is four decades old. It's not the pinnacle of keyboard-driven interface design, vast improvements have been made since then.

For example, I use vim-sneak, which lets you jump to anywhere on your screen in 3 keystrokes flat 99% of the time (and the 1% of the time where you miss, well, 99% of those times, just one more keystroke is all it takes to get to the right spot): https://github.com/justinmk/vim-sneak

I also use relative line numbers, so I can select or delete most blocks of text in 3 or 4 keystrokes, for example d4j deletes the current line and the next 4 lines (5 lines total), or d23k deletes the current line and the previous 23 lines (24 lines total): https://jeffkreeftmeijer.com/vim-number/

Obviously number of keystrokes isn't the only factor that determines operation speed. This is actually exemplified by my second example, commands like "d23k" actually work out-of-the-box even in original vi, the problem is that counting 23 lines by eye is way slower than selecting 24 lines with a mouse by eye, which is solved by relative line numbers.

There are no comments on this comment yet.