Live data from Hacker News

Vim - Putting arrows to use

codingfearlessly.com

41–42 of 42 posts

Re: Vim - Putting arrows to use

#41
post #4

Earlier quoted context omitted.

Interesting. How long have you been using Vim?

Around 2 years I think. Often switching mode to move around is just more effort than moving my hand a little, at least on the laptops I've used lately.

Insert is not a mode.

Well, technically it is. But don't think of it as one.

Re: Vim - Putting arrows to use

#42
post #32

I'm a rather advanced Vim user (10 years, vimrc with custom vimscript, use many shortcuts for movement), but I find it unproductive to NOT use arrows in insert mode. Example: inserting 'x' two characters before current position. With arrows: x Without arrows: hix lli It also much depends on a keyboard design, the laptop-like often have arrows under ENTER and using them doesn't require hand movement.

In that situation I'd likely as not just backspace to the offending location and continue typing. Although I have been known to map caps+hjkl to the arrow keys.

(I'm assuming your situation is a typo while you're inserting a short string, rather than just defaulting to insert mode)

Post reply on HN