1 gk, gj - Move up or down one screen line. (Helpful if lines wrap.) 2 3 ga - Display ASCII, hex and octal value of character under cursor. 4 Helpful to search/replace control characters. For example, 5 /<C-v>x1a will search for Control-Z (^Z). (<C-v> is not literal, 6 it means hit Control and v at the same time.) 7 8 gd - Jump to declaration of local variable in a C program. 9 This doesn't seem to work for multiple declarations on one line. 10 ge - Move to end of previous word. 11 gE - Same thing, but words are considered separated by whitespace. 12 W - Go to beginning of next word after whitespace. 13 B - Go to character after closest whitespace left of cursor. 14 E - Go to character before closest whitespace right of cursor. 15 '. - Jumps to last modified line. 16 `. - Jumps to last modified position. 17 18 ; - Repeat last character search (f,F,t,T). 19 , - Repeat last character search in the other direction. 20 21 C-x C-f - Complete filename under cursor 22 23 g <C-g> - Display byte, word, line, etc. cursor is on. 24 <count>go - Go to count byte. 25 26 <C-x> - Decrements first number after the cursor. 27 <C-a> - Increments first number after the cursor. 28 29 read !... - Inserts standard output of shell command. 30 31 <C-b> - Moves cursor to beginning of command-line. 32 <C-e> - Moves cursor to end of command-line. 33 <C-w> - Deletes word before cursor on command-line. 34 <C-u> - Wipes command-line clean. 35 [I - Grep current buffer for word under cursor. 36 37 vi *.txt - Open a series of files and replace all 38 argdo %s/pat/rep/gc | wn occurrences of pat with rep. 39 40 set shortmess=a Outlaws "Hit ENTER to continue" prompts.

