Hacker News new | ask | show | jobs
by skydhash 894 days ago
It's not a thousand shortcuts, but more of a language for text edition, it's merely expressing what you thought when doing the tasks itself. Like:

"Search for the function name foobar; swap the parameters by cutting the first one up to the comma; delete the latter, and the space which comes after; type a comma after the other parameter, and paste."

The Vim commands are: / foobar <Enter> f ( l v t , " a d d f <Space> e a , <Space> <Esc> " a p

With VS Code, it would be like: <Cmd>+f foobar <Enter> "Carefully select the first parameter" <Cmd>+x "Place the cursor at beginning of the second parameter" <Delete> <Delete> <Option>+<Left Arrow> , <Space> <Cmd>+v

The nicest thing with vim is that I never have to touch the mouse for a lot of tasks. And I don't really think about how to edit, just what to edit as the language is very intuitive once you got it down.

1 comments

>The Vim commands are: ...

You forgot the time you spend learning a counterintuitive way to edit text. The microscopic time you gain while editing text is nothing in comparison to that.

>just what to edit as the language is very intuitive once you got it down.

Everything can become intuitive when you spend hours and hours learning it. The question is whether it's worth it.

I've been writing code for more than a decade almost every day. The pros for learning vim is not about writing code fast, it's about streamlining it. I do not want what I'm doing interrupted by moving the cursor with arrows keys or using the mouse. That's why people put hours into configuring their emacs setups. Not for speed, but to resolve annoyances.
> I do not want what I'm doing interrupted by moving the cursor with arrows keys

Why exactly? That's just pressing a button, like any vim command.