• andrewth09@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    1 year ago

    Added context.

    ESC exits Insert mode (or any other mode you are in)

    : tells vim you are entering a command

    q is the command for quit

    ! tells vim for force quit (without saving)

    Alternatively, :wq will write (save) the file then quit.