How to use the VIM (in 2 Minutes)

To learn how2VIM, you need practice, time, patience, and other things no one has.

But: if you only use the VIM when git makes you solve a merge conflict or if you forgot the -m after your git commit and just entering this thing makes you uneasy, fear not.

aaaaAAAAAGGGHHHH

This is all you need to know about the VIM:

  1. i for insert mode (no, don’t hit enter after)
  2. esc for exiting (or escaping, and escaping fast) insert mode
  3. if you write stuff and want to save your changes, watch the screen and type :w! (if you don’t see it typing, you might need to hit esc)
  4. if you write stuff and don’t care about your changes, :q! for quit
  5. if you want to write and quit in a single step, :wq!
How I might open a python file that lives on the Desktop, with the VIM
How to know you’re in INSERT mode.
After you make changes, write and quit.

If you really want to learn your way around, here’s an extensive VIM tutorial.

One thought on “How to use the VIM (in 2 Minutes)

Leave a comment