My vi/vim cheatsheet. Cursor movement h - move leftj - move downk - move upl - move rightw - jump by start of words (punctuation considered words)W - jump by words (spaces separate words)e - jump to end of words (punctuation considered words)E - jump to end of words (no punctuation)b - jump backward by words (punctuation considered words)B - jump backward by words (no punctuation)0 - (zero) start of line^ - first non-blank character of line$ - end of lineG - Go To command (prefix with number - 5G goes to line 5) Note: Prefix a cursor movement command with a number to repeat it.
For example, 4j moves down 4 lines. Insert Mode - Inserting/Appending text. VI and VIM editor: advanced features. Vim Intro: This "vi" tutorial is intended for those who wish to master and advance their skills beyond the basic features of the basic editor.
It covers buffers, "vi" command line instructions, interfacing with UNIX commands, and ctags. Vi Editor Commands.