Live data from Hacker News

Vim – Minimal Setup Explained

guckes.net

31–40 of 114 posts

Re: Vim – Minimal Setup Explained

#33

Since I was in university 15 years ago I promised myself to learn Vim commands seriously. Well I see that finally I did my programmer life learning only switching insert mode / edit mode, maybe 5 commands like A x etc...,and :q or :wq!

Please learn dot ".". It repeats the last edit action. It's so powerful.

Re: Vim – Minimal Setup Explained

#34
Many decades ago, you had to resort to abbreviations so that you could use memory in the most efficient way possible. Computer hardware at that time was more expensive than labor. People having to adapt to how computers worked was the doctrine at that time.

But in 2022, this is no longer true. Even the most limited platform you can think of can comfortably run vim. A $5 Raspberry Pi Zero is overkill for vim. And now, labor is more far more expensive than hardware.

So, economically, having commands like "set ek" are objectively a waste of resources. Make commands self-explanatory, drop the abbreviations, and just add autocomplete and suggestions to compensate for the verbosity.

It's time to evolve. The reason this page exists, is because vim is unintuitive. But it doesn't have to.

Re: Vim – Minimal Setup Explained

#35

Since I was in university 15 years ago I promised myself to learn Vim commands seriously. Well I see that finally I did my programmer life learning only switching insert mode / edit mode, maybe 5 commands like A x etc...,and :q or :wq!

I relate quite heavily to this when using vi to do all my git-related activities.

git rebase -i ...

followed by

↓dw ↓←dw ↓←dw ↓←dw ↓←dw ↓←dw i s ↓s ↓s ↓s ↓s ↓s

because I keep forgetting :s/pick/s/g is a thing

i, a, :q, :wq, dd, xdd, and D are all the ones I remember, but cutting/yanking pasting is still something I don't have the muscle memory for.

Shift+G takes me to the bottom of a file, but I don't know how to get back to the top :D .

I really need to make time for vimtutor and commit to it.

Re: Vim – Minimal Setup Explained

#36

Since I was in university 15 years ago I promised myself to learn Vim commands seriously. Well I see that finally I did my programmer life learning only switching insert mode / edit mode, maybe 5 commands like A x etc...,and :q or :wq!

I relate quite heavily to this when using vi to do all my git-related activities. git rebase -i ... followed by ↓dw ↓←dw ↓←dw ↓←dw ↓←dw ↓←dw i s ↓s ↓s ↓s ↓s ↓s because I keep forgetting :s/pick/s/g is a thing i, a, :q, :wq, dd, xdd, and D are all the ones I remember, but cutting/yanking pasting is still something I don't have the muscle memory for. Shift+G takes me to the bottom of a file, but I don't know how to get…

> Shift+G takes me to the bottom of a file, but I don't know how to get back to the top :D

mostly emacs user here, but when I'm on vim I use :0 and :%

Re: Vim – Minimal Setup Explained

#37

Question for Vim users: how do you get used to hitting Esc very often? I know some switch Cap with Esc but still clunky.

Esc is probably the easiest key to hit in the keyboard? Tied with bottom left ctrl/fn and whatever you have in the other two corners. As in it's the easiest to misclick without accidentally hitting other keys

The easiest are F and J, the home keys where your index fingers rest. The more you have to "reach away", the harder it is to always correctly reset your hand.

Re: Vim – Minimal Setup Explained

#39

Many decades ago, you had to resort to abbreviations so that you could use memory in the most efficient way possible. Computer hardware at that time was more expensive than labor. People having to adapt to how computers worked was the doctrine at that time. But in 2022, this is no longer true. Even the most limited platform you can think of can comfortably run vim. A $5 Raspberry Pi Zero is overkill for vim. And now,…

> Make commands self-explanatory, drop the abbreviations, and just add autocomplete and suggestions to compensate for the verbosity.

Vim has autocomplete. That said, while I support long commands, I like having short commands because it's less typing, and I use vim on awkward keyboards where it matters. Also, any changes need to leave the old way or you break people's muscle memory (so again, just add the friendlier versions in addition, not as replacements, and I'm probably on board).

Post reply on HN