119304SpeterMOVING THE CURSOR:
219304Speter k - cursor up    ^F - page forward	       /<pattern><CR> - search forward
319304Speter j - cursor down  ^B - page backward	       ?<pattern><CR> - search backward
419304Speter h - cursor left   w - move forward a "word"   n - repeat the last search
519304Speter l - cursor right  b - move backward a "word"
619304Speter
719304SpeterENTERING TEXT:
819304Spetera - append after the cursor.             Use the <escape> key to return to
919304Speteri - insert before the cursor.            command mode.
1019304Spetero - open a new line below the cursor.
1119304SpeterO - open new line above the cursor.
1219304Speter
1319304SpeterWRITING AND EXITING:
1419304Speter:w<Enter>  - write the file
1519304Speter:q<Enter>  - exit the file
1619304Speter:q!<Enter> - exit without writing the file
1719304Speter:#<Enter>  - move to a line (e.g., :35<Enter> moves to line 35)
1819304Speter
1919304SpeterMISCELLANEOUS:
2019304Speter^G - display the file name
2119304Speter J - join two lines (use i<Enter><escape> to split a line)
2219304Speter u - undo the last change (enter . after a 'u' to undo more than one change)
2319304Speter
2419304Speter=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
2519304SpeterVI COMMANDS:
2619304Speter	^A search forward for cursor word
2719304Speter	^B scroll up by screens
2819304Speter	^C interrupt an operation (e.g. read, write, search)
2919304Speter	^D scroll down by half screens (setting count)
3019304Speter	^E scroll down by lines
3119304Speter	^F scroll down by screens
3219304Speter	^G file status 
3319304Speter	^H move left by characters
3419304Speter	^J move down by lines
3519304Speter	^L redraw screen
3619304Speter	^M move down by lines (to first non-blank)
3719304Speter	^N move down by lines 
3819304Speter	^P move up by lines   
3919304Speter	^R redraw screen
4019304Speter	^T tag pop
4119304Speter	^U half page up (set count)
4219304Speter	^V input a literal character
4319304Speter	^W move to next screen
4419304Speter	^Y page up by lines
4519304Speter	^Z suspend editor
4619304Speter	^[ <escape> exit input mode, cancel partial commands
4719304Speter	^\ switch to ex mode
4819304Speter	^] tag push cursor word
4919304Speter	^^ switch to previous file
5019304Speter   <space> move right by columns
5119304Speter	 ! filter through command(s) to motion
5219304Speter	 # number increment/decrement
5319304Speter	 $ move to last column
5419304Speter	 % move to match
5519304Speter	 & repeat substitution
5619304Speter	 ' move to mark (to first non-blank)
5719304Speter	 ( move back sentence
5819304Speter	 ) move forward sentence
5919304Speter	 + move down by lines (to first non-blank)
6019304Speter	 , reverse last F, f, T or t search
6119304Speter	 - move up by lines (to first non-blank)
6219304Speter	 . repeat the last command
6319304Speter	 / search forward
6419304Speter	 0 move to first character
6519304Speter	 : ex command
6619304Speter	 ; repeat last F, f, T or t search
6719304Speter	 < shift lines left to motion
6819304Speter	 > shift lines right to motion
6919304Speter	 ? search backward
7019304Speter	 @ execute buffer
7119304Speter	 A append to the line
7219304Speter	 B move back bigword
7319304Speter	 C change to end-of-line
7419304Speter	 D delete to end-of-line
7519304Speter	 E move to end of bigword
7619304Speter	 F character in line backward search
7719304Speter	 G move to line
7819304Speter	 H move to count lines from screen top
7919304Speter	 I insert before first nonblank
8019304Speter	 J join lines
8119304Speter	 L move to screen bottom
8219304Speter	 M move to screen middle
8319304Speter	 N reverse last search
8419304Speter	 O insert above line
8519304Speter	 P insert before cursor from buffer
8619304Speter	 Q switch to ex mode
8719304Speter	 R replace characters
8819304Speter	 S substitute for the line(s)
8919304Speter	 T before character in line backward search
9019304Speter	 U Restore the current line
9119304Speter	 W move to next bigword
9219304Speter	 X delete character before cursor
9319304Speter	 Y copy line
9419304Speter	ZZ save file and exit
9519304Speter	[[ move back section
9619304Speter	]] move forward section
9719304Speter	 ^ move to first non-blank
9819304Speter	 _ move to first non-blank
9919304Speter	 ` move to mark
10019304Speter	 a append after cursor
10119304Speter	 b move back word
10219304Speter	 c change to motion
10319304Speter	 d delete to motion
10419304Speter	 e move to end of word
10519304Speter	 f character in line forward search
10619304Speter	 h move left by columns
10719304Speter	 i insert before cursor
10819304Speter	 j move down by lines
10919304Speter	 k move up by lines
11019304Speter	 l move right by columns
11119304Speter	 m set mark
11219304Speter	 n repeat last search
11319304Speter	 o append after line
11419304Speter	 p insert after cursor from buffer
11519304Speter	 r replace character
11619304Speter	 s substitute character
11719304Speter	 t before character in line forward search
11819304Speter	 u undo last change
11919304Speter	 w move to next word
12019304Speter	 x delete character
12119304Speter	 y copy text to motion into a cut buffer
12219304Speter	 z reposition the screen
12319304Speter	 { move back paragraph
12419304Speter	 | move to column
12519304Speter	 } move forward paragraph
12619304Speter	 ~ reverse case
12719304Speter=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
12819304SpeterEX COMMANDS:
12919304Speter	  ^D: scroll lines
13019304Speter	   !: filter lines through commands or run commands
13119304Speter	   #: display numbered lines
132208611Sjh	   &: repeat the last substitution
13319304Speter	   *: execute a buffer
13419304Speter	   <: shift lines left
13519304Speter	   =: display line number
13619304Speter	   >: shift lines right  
13719304Speter	   @: execute a buffer   
13819304Speter      append: append input to a line
13919304Speter  abbreviate: specify an input abbreviation
14019304Speter	args: display file argument list
14119304Speter	  bg: background the current screen
14219304Speter      change: change lines to input
14319304Speter	  cd: change the current directory
14419304Speter       chdir: change the current directory
14519304Speter	copy: copy lines elsewhere in the file
14619304Speter      cscope: create a set of tags using a cscope command
14719304Speter      delete: delete lines from the file
14819304Speter     display: display buffers, screens or tags
14919304Speter     [Ee]dit: begin editing another file
15019304Speter       [Ee]x: begin editing another file
15119304Speter     exusage: display ex command usage statement
15219304Speter	file: display (and optionally set) file name
15319304Speter	  fg: switch the current screen and a backgrounded screen
15419304Speter      global: execute a global command on lines matching an RE
15519304Speter	help: display help statement
15619304Speter      insert: insert input before a line
15719304Speter	join: join lines into a single line
15819304Speter	   k: mark a line position
15919304Speter	list: display lines in an unambiguous form
16019304Speter	move: move lines elsewhere in the file
16119304Speter	mark: mark a line position
16219304Speter	 map: map input or commands to one or more keys
16319304Speter      mkexrc: write a .exrc file
16419304Speter     [Nn]ext: edit (and optionally specify) the next file
16519304Speter      number: change display to number lines
16619304Speter	open: enter "open" mode (not implemented)
16719304Speter       print: display lines
16819304Speter	perl: run the perl interpreter with the command
16919304Speter      perldo: run the perl interpreter with the command, on each line
17019304Speter    preserve: preserve an edit session for recovery
17119304Speter [Pp]revious: edit the previous file in the file argument list
17219304Speter	 put: append a cut buffer to the line
17319304Speter	quit: exit ex/vi
17419304Speter	read: append input from a command or file to the line
17519304Speter     recover: recover a saved file
17619304Speter      resize: grow or shrink the current screen
17719304Speter      rewind: re-edit all the files in the file argument list
17819304Speter	   s: substitute on lines matching an RE
17919304Speter      script: run a shell in a screen
18019304Speter	 set: set options (use ":set all" to see all options)
18119304Speter       shell: suspend editing and run a shell
18219304Speter      source: read a file of ex commands
18319304Speter	stop: suspend the edit session
18419304Speter     suspend: suspend the edit session
18519304Speter	   t: copy lines elsewhere in the file
18619304Speter      [Tt]ag: edit the file containing the tag
18719304Speter     tagnext: move to the next tag
18819304Speter      tagpop: return to the previous group of tags
18919304Speter     tagprev: move to the previous tag
19019304Speter      tagtop: discard all tags
19119304Speter	 tcl: run the tcl interpreter with the command
19219304Speter	undo: undo the most recent change
19319304Speterunabbreviate: delete an abbreviation
19419304Speter       unmap: delete an input or command map
19519304Speter	   v: execute a global command on lines NOT matching an RE
19619304Speter     version: display the program version information
19719304Speter      visual: enter visual (vi) mode from ex mode
19819304Speter   [Vv]isual: edit another file (from vi mode only)
19919304Speter     viusage: display vi key usage statement
20019304Speter       write: write the file
20119304Speter	  wn: write the file and switch to the next file
20219304Speter	  wq: write the file and exit
20319304Speter	 xit: exit
20419304Speter	yank: copy lines to a cut buffer
20519304Speter	   z: display different screens of the file
20619304Speter	   ~: replace previous RE with previous replacement string,
20719304Speter=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20819304SpeterEdit options:
20919304Speternoaltwerase     filec=""        nomodeline      scroll=17       notildeop
21019304Speterautoindent      flash           msgcat="./"     nosearchincr    timeout  
21119304Speterautoprint       hardtabs=0      noprint=""      nosecure        nottywerase
21219304Speternoautowrite     noiclower       nonumber        shiftwidth=8    noverbose  
21319304Speterbackup=""       noignorecase    nooctal         noshowmatch     warn
21419304Speternobeautify      keytime=6       open            noshowmode      window=35
21519304Spetercedit=""        noleftright     optimize        sidescroll=16   nowindowname
21619304Spetercolumns=80      lines=36        print=""        noslowopen      wraplen=0
21719304Spetercomment         nolisp          prompt          nosourceany     wrapmargin=0
21819304Speternoedcompatible  nolist          readonly        tabstop=8       wrapscan
21919304Speterescapetime=1    lock            noredraw        taglength=0     nowriteany
22019304Speternoerrorbells    magic           remap           tags="tags"
22119304Speterexrc            matchtime=7     report=5        term="xterm"
22219304Speternoextended      mesg            ruler           noterse
22319304Spetercdpath="/usr/src/local/nvi:/tmp"
22419304Speterdirectory="/tmp"
22519304Speterparagraphs="IPLPPPQPP LIpplpipbp"
22619304Speterrecdir="/var/tmp/vi.recover"
22719304Spetersections="NHSHH HUnhsh"
22819304Spetershell="/bin/csh"
22919304Spetershellmeta="~{[*?$`'"\"
230