Vim Cheatsheet
In Vim, you combine operators (what to do) with motions (where to do it). e.g. d (delete) + w (word) = dw (delete word). Master this and Vim clicks.
Basic Commands#
Save (write) the file#
:w
Save and exit#
:wq
# or
:x
Exit without saving#
:q!
Exit with saving#
:wq