normal·mode
~ / insert
2

Insert Mode

The many doors into Insert mode, and the tricks that work without leaving it: deleting words, overwriting text, borrowing a Normal command, pasting registers, typing characters your keyboard lacks and doing quick maths.

  1. 01

    Doors into Insert mode: i, a, I, A, o, O

    Six ways in, each one putting the cursor right where you want to type.

    iaIAoOgi<Esc>nvim
  2. 02

    Fix it without leaving: <C-h>, <C-w>, <C-u>

    Delete a character, a word or the whole line from inside Insert mode.

    <C-h><C-w><C-u>nvim
  3. 03

    Type over text: r and R

    Swap one character with r, or overwrite a run of text in Replace mode.

    r{char}{count}r{char}r<CR>R<BS>
  4. 04

    Borrow one Normal command: <C-o>

    Run a single Normal-mode command, then land right back in Insert mode.

    <C-o>{cmd}
  5. 05

    Paste while typing: <C-r>{register}

    Drop a yank, a deletion or a named register into the text without leaving Insert mode.

    <C-r>0<C-r>"<C-r>{a-z}<C-r>-nvim
  6. 06

    Characters your keyboard lacks: <C-k> and <C-v>

    Type ©, é, ½ or → with digraphs, any character by its Unicode code, or a real tab.

    <C-k>{a}{b}<C-v>u{hex}<C-v>{key}<C-v>{decimal}
  7. 07

    Do the maths in place: <C-r>=

    Let Vim evaluate the arithmetic and type the answer for you.

    <C-r>=<C-r>{reg}<CR>nvim
outside the editor the page is in normal mode: ? keymaps · / find · : commandsfound this useful? ☕ support it ·credits · source · not affiliated with Vim or Neovim