vim Inserting text Insert mode shortcuts


Example

CommandDescription
<C-w>Delete word before cursor
<C-t>Indent current line with by one shiftwidth
<C-d>Unindent current line with by one shiftwidth
<C-f>reindent the line, (move cursor to auto indent position)
<C-a>Insert previously inserted text
<C-e>Insert the character below
<C-h>Delete one character backward
<C-y>Insert the character above
<C-r>{register}Insert the content of {register}
<C-o>{normal mode command}execute {normal mode command} without leaving insert mode
<C-n>Next autocomplete option for the current word
<C-p>Previous autocomplete option for the current word
<C-v>Insert a character by its ASCII value in decimal
<C-v>xInsert a character by its ASCII value in hexadecimal
<C-v>uInsert a character by its unicode value in hexadecimal
<C-k>Enter a digraph