Useful Keys

Control

The most common key modifier. It's recommended to map Caps Lock to Control.

Option

Also known as "Alt" or "Meta".

Shift

Often used in Vim to reverse or modify the function of a Normal mode command.

Super

Not terribly relevant to Vim. Also known as the "Windows" or "Command" key.

Return m CR

Everyone's favorite

Esc [ Esc

You can get back to Normal mode with Ctrl + [

Delete h BS

Confusingly called "Backspace" by everyone except Apple

Tab i Tab

Should be converted to spaces for religious reasons

Useful Options

  1. set backspace=indent,eol,start

    Without this, Vim restricts you from backspacing over autoindents, line breaks, and insert starts

    backspace

  2. set showcmd

    Displays partial Normal Mode commands as you type them

    showcmd

  3. set formatoptions+=j

    Delete comment character when joining commented lines

    formatoptions

  4. set display=lastline

    Show as much of the last line as possible when wrapping

    display

  5. set autoindent

    Copy indent from current line when starting a new line

    autoindent

  6. set ignorecase

    Ignore case when searching

    set smartcase

    Ignore case UNLESS the search string has upper-case characters

    ignorecase

  7. set undofile

    Save a persistent undo history for every file

    undofile

  8. set listchars=trail:_,tab:>-,extends:>,precedes:<,nbsp:¬

    Without this, Vim restricts you from backspacing over autoindents, line breaks, and insert starts

    listchars