I don't know how to exit Vim Mode Mode

  • h

    Move left one character

  • j

    Move down one line

  • k

    Move up one line

  • l

    Move right one character

  • w

    Move forward one word

  • b

    Move backward one word

  • i

    Insert before the cursor

  • dd

    Delete the current line

  • yy

    Yank (copy) the current line

  • p

    Paste after the cursor

  • u

    Undo

  • /

    Search forward

  • :q

    Quit (if no changes have been made)

  • :q!

    Quit without saving changes

  • :w

    Save (write) the file

  • :wq

    Save and quit

Basic