Today I decided to level up and start learning Vim (VI improved) – I know it’s a long road ahead but there are many benefits:
- I’ve heard it’s stupidly powerful once you know how to work it
- It’s installed, or can be installed, on pretty much every computer
- Hundreds of posts on ‘why should you learn vim’ can’t be wrong…can they?
I’m going to start out using Learn Vim Progressively, but I’m going to adapt as I go. So, from that page – first lessons:
i→ Insert mode. Type
ESCto return to Normal mode.
x→ Delete the char under the cursor
:wq→ Save and Quit (:w save, :q quit)
dd→ Delete (and copy) current line
hjkl(highly recommended but not mandatory) → basic cursor move (←↓↑→). Hint: j look like a down arrow.
→ Show help about , you can start using
:helpwithout anything else.
And a few of my own:
u→ Undo the last change
:q!→ force quit without saving