Insert mode
i ==== = = = ExitInsert mode
Cursor movement
H,j,k,l =←,↓,↑,→ctrl+f =next page (forward) Ctrl+b =Prev (backward) W=jumps to the beginning of the next word w=jumps to the beginning of the next word (blank delimited) e=jumps to the end of the next word e=jumps to the end of the next word (white space delimited) b=jumps to the beginning of the previous word b=jumps to the beginning of the previous word (blank delimited)0=jump to our line of clothes $=jump to the end of bank line^ =jump to the first non-whitespace character of the bank G_=Skip to our last non-whitespace character GG=jump to the first line G=Skip to last line [N]g=jump to nth row.=jump to the last edit place* =look down at the string where the current cursor is located #= Search up the string at the current cursor position
Edit
u = Undoctrl+r = redoswitchcase >> = indentline one column right <& Lt = indentline one column left = = auto-indent
Cut and paste
DD == = = = = = = = = = = Paste before the cursor position
Find
for pattern for in inopposite direction
Exit
: w == = = exit, with changes not saved when exiting failed: Q! = Forced exit
Vim Common commands