Intel: MOV A End of word, Marking Position: mx Mark current postn with locator x, `x Return to postn at locator x, 'x ... at first non-white in ln., Yank and Put: yy or Y Yank ln. to buf, yw Yank word to buf, nyy or nY Yank n ln. to buf, p Put back ln. below cursor, P Put back ln. above cursor, "xy Yank ln. to buf x, "xp Put from buf x, Substitution stext Substitutes text for ch. until ESCape, S Substitute for ln. until ESCape, :s/X/Y/opt Substitute Y for first occurrence of X, Options: g - Change every currence in ln., c - Confirm each change, p - Print each change (Command mode only), & Repeat last :substitute command, :g/X/s//Y/opt Globally find the first X on each ln. and, substitute Y for the string X, Delete: x ch., nx n ch., X ch. back, dw word, ndw n words, dd ln., dtx to x in current ln., D to ln. end, d/patn fwd to patn, d?patn back to patn, d`x to marked location x, d'x current ln. and to ln. which contains marked location x, d) to end of sent end, d( to start of sent, d} to end of para, d{ to start of para, d]] to end of sec, d[[ to start of sec, Change: cw word, ncw n words, cc ln., ncc n ln., C to ln. end, c/patn fwd to patn, c?patn back to patn, c`x to marked location x, c'x current ln. and to ln. which contains marked location x, c) to sent end, c( to sent start, c} to end of para, c{ to start of para, c]] to end of sec, c[[ to start of sec, rx Replace ch. with x, R Replace all ch. until ESCape is entered, Cursor: w fwd word, W fwd word inc punct, b bkwd word, B bkwd word inc punct, e fwd end of word, E fwd end of word inc any punct, fx Search current ln. (only) fwd for x, Fx Search current ln. (only) bkwd for x, ; Repeat last f or F, , Reverse of last f or F, Undo: u Undo last change, U Restore current ln., "np Retrieve from buf n (1-9 and a-z), "n1pu.u.u.u. Scan recent deletions, Miscellaneous: . Repeat last operation, ~ Reverse case of letter and advance one postn, J Join ln. together, << Shift ln. left one tab postn, >> Shift ln. right one tab postn, :g/patn/p Locate and print all occurrences of patn within the file., Reverse order of two: xp letters, dwwP words, ddp ln., Command Line Options: +n Edit at ln. n, + Edit at last ln., +/patn Edit at ln. containing patn, -R open file(s) in read-only mode, -c Use ln.-oriented command mode, -e ... restricted edit mode., -l Enable lisp and showmatch opt., -wn Specify window size of n ln., -? Print a summary of all command ln. opt., -- End processing of command ln. opt., Exit: ZZ Exit visual mode, saving changes, :x Exit saving changes, :wq Write buf, then quit., :w Write buf to original file, :w file Write buf to file, :w>> file Append to file, :n,mw file Write ln. n through m to file, :q Quit :q! Quit discarding changes, :e! Reedit file, discarding changes, Setting Options: :set all Prints all opt. settings, :set opt. Enables opt., :set nooption Disables opt. , :set option? Prints current value of opt., :set Prints modified opt., Text Input: i Insert before cursor, I Insert before first non-blank on ln., a Append after cursor, A Append at end of ln., o Open and insert at ln. below, O Open and insert at ln. above, ESC Terminates Input mode.,