home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 313_01 / stevie.mm < prev    next >
Text File  |  1990-04-22  |  23KB  |  693 lines

  1. .\" $Header: /r3/tony/src/stevie/src/RCS/stevie.mm,v 3.72 90/01/22 19:11:56 tony Exp $
  2. .\"
  3. .\" Documentation for STEVIE. Process with nroff using the mm macros.
  4. .\"
  5. .nr Hu 1
  6. .SA 1
  7. .TL
  8. STEVIE - An Aspiring VI Clone
  9. .sp
  10. User Reference - 3.71
  11. .AU "Tony Andrews"
  12. .AF ""
  13. .MT 4
  14. .PH "'STEVIE''User Reference'"
  15. .PF "''- \\\\n% -''"
  16. .H 1 "Overview"
  17. STEVIE is an editor designed to mimic the interface of the UNIX
  18. editor 'vi'. The name (ST Editor for VI Enthusiasts) comes from the fact that
  19. the editor was first written for the Atari ST. The current version also supports
  20. UNIX, Minix (ST), MS-DOS, and OS/2, but I've left
  21. the name intact for now.
  22. .P
  23. This program is the result of many late nights of hacking over the last
  24. couple of years.
  25. The first version was written by Tim Thompson and posted
  26. to USENET. From there, I reworked the data structures completely, added
  27. LOTS of features, and generally improved the overall performance in the
  28. process.
  29. .P
  30. I've labelled STEVIE an 'aspiring' vi clone as a warning to those who
  31. may expect too much. On the whole, the editor is pretty complete.
  32. Nearly all of the visual mode commands are supported.
  33. And several of the more important 'ex' commands are supported as well.
  34. I've tried hard to
  35. capture the feel of vi by getting the little things right.
  36. Making lines
  37. wrap correctly, supporting true operators, and even getting the cursor to
  38. land on the right place for tabs are all a pain, but really help make
  39. the editor feel right.
  40. I've tried to resist the temptation to deviate from the behavior
  41. of vi, even where I disagree with the original design.
  42. .P
  43. The biggest problem remaining has to do with the fact that the edit buffer
  44. is maintained entirely in memory, limiting the size of files that can
  45. be edited in some environments.
  46. Other missing features include named buffers and macros.
  47. Performance is generally reasonable, although the screen update code
  48. could be more efficient.
  49. This is generally only visible on fairly slow systems.
  50. .P
  51. STEVIE may be freely distributed. The source isn't copyrighted or
  52. restricted in any way. If you pass the program along, please include all
  53. the documentation and, if practical, the source as well. I'm not fanatical
  54. about this, but I tried to make STEVIE fairly portable and I'd like to
  55. see as many people have access to the source as possible.
  56. .P
  57. The remainder of this document describes the operation of the editor.
  58. This is intended as a reference for users already familiar with the real
  59. vi editor.
  60. .H 1 "Starting the Editor"
  61. The following command line forms are supported:
  62. .VL 20
  63. .LI "stevie [file ...]"
  64. Edit the specified file(s)
  65. .LI "stevie -t tag"
  66. Start at the location of the given tag
  67. .LI "stevie + file"
  68. Edit file starting at end
  69. .LI "stevie +n file"
  70. Edit file starting a line number 'n'
  71. .LI "stevie +/pat file"
  72. Edit file starting at pattern 'pat'
  73. .LE
  74. .P
  75. If multiple files are given on the command line (using the first form),
  76. the ":n" command goes to the next file, ":N" goes backward in the list,
  77. and ":rew" can be used to rewind back to the start of the file list.
  78. .H 1 "Set Command Options"
  79. The ":set" command works as usual to set parameters. Each parameter has
  80. a long and an abbreviated name, either of which may be used. Boolean
  81. parameters are set as in:
  82. .sp
  83. .ti +5
  84. set showmatch
  85. .sp
  86. or cleared by:
  87. .sp
  88. .ti +5
  89. set noshowmatch
  90. .sp
  91. Numeric parameters are set as in:
  92. .sp
  93. .ti +5
  94. set scroll=5
  95. .sp
  96. Several parameters may be set with a single command:
  97. .sp
  98. .ti +5
  99. set novb sm report=1
  100. .P
  101. To see the status of all parameters use ":set all". Typing ":set" with
  102. no arguments will show only those parameters that have been changed.
  103. The supported parameters, their names, abbreviations, defaults,
  104. and descriptions are shown below:
  105. .VL 12
  106. .LI autoindent
  107. Short: ai, Default: noai, Type: Boolean
  108. .br
  109. When in insert mode, start new lines at the same column as the prior
  110. line. Unlike vi, you can backspace over the indentation.
  111. .LI backup
  112. Short: bk, Default: nobk, Type: Boolean
  113. .br
  114. Leave a backup on file writes.
  115. .LI errorbells
  116. Short: eb, Default: noeb, Type: Boolean
  117. .br
  118. Ring bell when error messages are shown.
  119. .LI ignorecase
  120. Short: ic, Default: noic, Type: Boolean
  121. .br
  122. Ignore case in string searches.
  123. .LI lines
  124. Short: lines, Default: lines=25, Type: Numeric
  125. .br
  126. Number of physical lines on the screen. The default value actually
  127. depends on the host machine, but is generally 25.
  128. .LI list
  129. Short: list, Default: nolist, Type: Boolean
  130. .br
  131. Show tabs and newlines graphically.
  132. .LI modelines
  133. Short: ml, Default: noml, Type: Boolean
  134. .br
  135. Enable processing of modelines in files.
  136. .LI number
  137. Short: nu, Default: nonu, Type: Boolean
  138. .br
  139. Display lines on the screen with their line numbers.
  140. .LI report
  141. Short: report, Default: report=5, Type: Numeric
  142. .br
  143. Minimum number of lines to report operations on.
  144. .LI return
  145. Short: cr, Default: cr, Type: Boolean
  146. .br
  147. End lines with cr-lf when writing files.
  148. .LI scroll
  149. Short: scroll, Default: scroll=12, Type: Numeric
  150. .br
  151. Number of lines to scroll for ^D & ^U.
  152. .LI showmatch
  153. Short: sm, Default: nosm, Type: Boolean
  154. .br
  155. When a ), }, or ] is typed, show the matching (, {, or [ if
  156. it's on the current screen by moving the cursor there briefly.
  157. .LI showmode
  158. Short: mo, Default: nomo, Type: Boolean
  159. .br
  160. Show on status line when in insert mode.
  161. .LI tabstop
  162. Short: ts, Default: ts=8, Type: Numeric
  163. .br
  164. Number of spaces in a tab.
  165. .LI terse
  166. Short: terse, Default: noterse, Type: Boolean
  167. .br
  168. This option is currently ignored.
  169. It is provided only for compatibility with vi.
  170. .LI tildeop
  171. Short: to, Default: noto, Type: Boolean
  172. .br
  173. If set, tilde is an operator. Otherwise, tilde acts as normal.
  174. .LI wrapscan
  175. Short: ws, Default: ws, Type: Boolean
  176. .br
  177. String searches wrap around the ends of the file.
  178. .LI vbell
  179. Short: vb, Default: vb, Type: Boolean
  180. .br
  181. Use a visual bell, if possible. (novb for audible bell)
  182. .LE
  183. .P
  184. The EXINIT environment variable can be used to modify the default values
  185. on startup as in:
  186. .sp
  187. .ti +5
  188. setenv EXINIT="set sm ts=4"
  189. .P
  190. The 'backup' parameter, if set, causes the editor to retain a backup of any
  191. files that are written. During file writes, a backup is always kept for
  192. safety until the write is completed. At that point, the 'backup' parameter
  193. determines whether the backup file is deleted.
  194. .P
  195. In environments (e.g. OS/2 or TOS) where lines are normally terminated by
  196. CR-LF, the 'return' parameter allows files to be written with only a LF
  197. terminator (if the parameter is cleared).
  198. This parameter is ignored on UNIX systems.
  199. .P
  200. The 'lines' parameter tells the editor how many lines there are on the screen.
  201. This is useful on systems like the ST (or OS/2 machines with an EGA adapter)
  202. where various screen resolutions may be
  203. used. By using the 'lines' parameter, different screen sizes can be easily
  204. handled.
  205. .H 1 "Colon Commands"
  206. Several of the normal 'vi' colon commands are supported by STEVIE.
  207. Some commands may be preceded by a
  208. line range specification.
  209. For commands that accept a range of lines,
  210. the following address forms are supported:
  211. .DS 1
  212. addr
  213. addr + number
  214. addr - number
  215. .DE
  216. where 'addr' may be one of the following:
  217. .DS 1
  218. a line number
  219. a mark (as in 'a or 'b)
  220. \'.' (the current line)
  221. \'$' (the last line)
  222. .DE
  223. .P
  224. An address range of "%" is accepted as an abbreviation of "1,$".
  225. .H 2 "Mode Lines"
  226. Mode lines are a little-known, but often useful, feature of vi.
  227. To use this feature, special strings are placed in the first or
  228. last five lines in a file.
  229. When the file is edited, these strings are detected and processed
  230. as though typed as a colon command.
  231. One instance where this can be useful is to set the "tabstop"
  232. parameter on a per-file basis.
  233. The following are examples of mode lines:
  234. .DS 1
  235. vi:set ts=4 noai:
  236. ex:45:
  237. .DE
  238. .P
  239. Mode lines are characterized by the string "vi" or "ex" followed
  240. by a command surrounded by colons. Other text may appear on the
  241. line, and multiple mode lines may be present. No guarantee is
  242. made regarding the order in which multiple mode lines will be
  243. processed.
  244. .P
  245. The processing of mode lines is enabled by setting the "ml"
  246. parameter. This should be done in the "EXINIT" environment
  247. variable, so that mode line processing is enabled as soon
  248. as the editor begins.
  249. By default, mode lines are disabled for security reasons.
  250. .H 2 "The Global Command"
  251. A limited form of the global command is supported, accepting the
  252. following command form:
  253. .DS 1
  254. g/pattern/X
  255. .DE
  256. where X may be either 'd' or 'p' to delete or print lines that match
  257. the given pattern.
  258. If a line range is given, only those lines are checked for a match
  259. with the pattern.
  260. If no range is given, all lines are checked.
  261. .P
  262. If the trailing command character is omitted, 'p' is assumed.
  263. In this case, the trailing slash is also optional.
  264. The current version of the editor does not support the undo operation
  265. following the deletion of lines with the global command.
  266. .H 2 "The Substitute Command"
  267. The substitute command provides a powerful mechanism for making more
  268. complex substitutions than can be done directly from visual mode.
  269. The general form of the command is:
  270. .DS 1
  271. s/pattern/replacement/g
  272. .DE
  273. Each line in the given range (or the current line, if no range was
  274. given) is scanned for the given regular expression.
  275. When found, the string that matched the pattern is replaced with
  276. the given replacement string.
  277. If the replacement string is null, each matching pattern string is
  278. deleted.
  279. .P
  280. The trailing 'g' is optional and, if present, indicates that multiple
  281. occurrences of 'pattern' on a line should all be replaced.
  282. .P
  283. Some special sequences are recognized in the replacement string. The
  284. ampersand character is replaced by the entire pattern that was matched.
  285. For example, the following command could be used to put all occurrences
  286. of 'foo' or 'bar' within double quotes:
  287. .DS 1
  288. 1,$s/foo|bar/"&"/g
  289. .DE
  290. .P
  291. The special sequence "\\n" where 'n' is a digit from 1 to 9, is replaced
  292. by the string the matched the corresponding parenthesized expression in
  293. the pattern. The following command could be used to swap the first two
  294. parameters in calls to the C function "foo":
  295. .DS 1
  296. 1,$s/foo\\\\(([^,]*),([^,]*),/foo(\\\\2,\\\\1,/g
  297. .DE
  298. .P
  299. Like the global command, substitutions can't be undone with this
  300. version of the editor.
  301. .H 2 "File Manipulation Commands"
  302. The following table shows the supported file manipulation commands as
  303. well as some other 'ex' commands that aren't described elsewhere:
  304. .DS
  305. :w        write the current file
  306. :wq        write and quit
  307. :x        write (if necessary) and quit
  308. ZZ        same as ":x"
  309.  
  310. :e file        edit the named file
  311. :e!        re-edit the current file, discarding changes
  312. :e #        edit the alternate file
  313.  
  314. :w file        write the buffer to the named file
  315. :x,yw file    write lines x through y to the named file
  316. :r file        read the named file into the buffer
  317.  
  318. :n        edit the next file
  319. :N        edit the previous file
  320. :rew        rewind the file list
  321.  
  322. :f        show the current file name
  323. :f name        change the current file name
  324. :x=        show the line number of address 'x'
  325.  
  326. :ta tag        go to the named tag
  327. ^]        like ":ta" using the current word as the tag
  328.  
  329. :help        display a command summary
  330. :ve        show the version number
  331.  
  332. :sh        run an interactive shell
  333. :!cmd        run a command
  334. .DE
  335. .P
  336. The ":help" command can also be invoked with the <HELP> key on the Atari
  337. ST. This actually displays a pretty complete summary of the real vi with
  338. unsupported features indicated appropriately.
  339. .P
  340. The commands above work pretty much like they do in 'vi'. Most of the
  341. commands support a '!' suffix (if appropriate) to discard any pending
  342. changes.
  343. .H 1 "String Searches"
  344. String searches are supported, as in vi, accepting the usual regular
  345. expression syntax. This was done using a modified form of
  346. Henry Spencer's regular expression
  347. library. I added code outside the library to support
  348. the '\\<' and '\\>' extensions.
  349. The parameter "ignorecase" can be set to ignore case in all string searches.
  350. .H 1 "Operators"
  351. The vi operators (d, c, y, !, <, and >) work as true operators.
  352. The tilde command may also be used as an operator if the parameter "tildeop"
  353. has been set. By default, this parameter is not set.
  354. .H 1 "Tags"
  355. Tags are implemented and a fairly simple version of 'ctags' is supplied
  356. with the editor. The current version of ctags will find functions and
  357. macros following a specific (but common) form.  See 'ctags.doc' for a
  358. complete discussion.
  359. .H 1 "System-Specific Comments"
  360. The following sections provide additional relevant information for the
  361. systems to which STEVIE has been ported.
  362. .H 2 "Atari ST"
  363. .H 3 "TOS"
  364. The editor has been tested in all three resolutions, although low and
  365. high res. are less tested than medium. The 50-line high res. mode can
  366. be used by setting the 'lines' parameter to 50. Alternatively, the
  367. environment variable 'LINES' can be set. The editor doesn't actively
  368. set the number of lines on the screen. It just operates using the number
  369. of lines it was told.
  370. .P
  371. The arrow keys, as well as the <INSERT>, <HELP>, and <UNDO> keys are
  372. all mapped appropriately.
  373. .H 3 "Minix"
  374. The editor is pretty much the same under Minix, but many of the
  375. keyboard mappings aren't yet supported.
  376. .H 2 "UNIX"
  377. The editor has been ported to UNIX System V release 3 as well as 4.2 BSD.
  378. This was done
  379. mainly to get some profiling data so I haven't put much effort into
  380. doing the UNIX version right.
  381. While the termcap routines are supported, the editor is still fairly
  382. picky about the capabilities it wants and makes little effort to
  383. do clever things with less intelligent terminals.
  384. .P
  385. Job control is supported on BSD systems.
  386. .H 2 "OS/2"
  387. Make sure 'ansi' mode is on (using the 'ansi' command).
  388. The OS/2 console driver doesn't support insert/delete line, so STEVIE
  389. bypasses the driver and makes the appropriate system calls directly.
  390. This is all done in the system-specific part of the editor so the kludge
  391. is at least localized.
  392. .P
  393. The arrow keys, page up/down and home/end all do what
  394. you'd expect. The function keys are hard-coded to some useful macros until
  395. I can get true support for macros into the editor. The current mappings
  396. are:
  397. .DS 1
  398. F1    :N <RETURN>
  399. F2    :n <RETURN>
  400. F3    :e # <RETURN>
  401. F4    :rew <RETURN>
  402. F5    [[
  403. F6    ]]
  404. F7    Convert C declaration to pseudo-english (uses cdecl)
  405. F8    Convert english-style declaration to C (uses cdecl)
  406. F9    :x <RETURN>
  407. F10    :help <RETURN>
  408.  
  409. S-F1    :N! <RETURN>
  410. S-F2    :n! <RETURN>
  411. .DE
  412. .P
  413. The macros for F7 and F8 assume that the "cdecl" program is available.
  414. .H 2 "MSDOS"
  415. STEVIE has been ported to MSDOS 3.3 using the Microsoft
  416. C compiler, version 5.1.
  417. The keyboard mappings are the same as for OS/2.
  418. The only problem with the PC version is that the inefficiency of
  419. the screen update code becomes painfully apparent on slower machines.
  420. .P
  421. The DOS version requires the use of an extended console driver
  422. that can insert and delete lines.
  423. The distributed code uses "nansi.sys" which seems to be widely
  424. available.
  425. .H 1 "Missing Features"
  426. .AL
  427. .LI
  428. The ability to edit files larger than the available memory.
  429. This isn't a problem on the machines I use, but it hits the
  430. Minix-PC people pretty hard.
  431. .LI
  432. Named buffers.
  433. .LI
  434. Macros with support for function keys.
  435. .LI
  436. More "set" options.
  437. .LI
  438. Many others...
  439. .LE
  440. .H 1 "Known Bugs and Problems"
  441. .AL
  442. .LI
  443. The yank buffer uses statically allocated memory, so large yanks
  444. will fail. If a delete spans an area larger than the yank buffer,
  445. the program asks
  446. for confirmation before proceeding. That way, if you were moving text,
  447. you don't get screwed by the limited yank buffer. You just have to move
  448. smaller chunks at a time. All the internal buffers (yank, redo, etc.)
  449. need to be reworked to allocate memory dynamically. The 'undo' buffer
  450. is now dynamically allocated, so any change can be undone.
  451. .LI
  452. If you stay in insert mode for a long time, the insert buffer can overflow.
  453. The editor will print a message and dump you back into command mode.
  454. .LI
  455. The current version of the substitute and global commands
  456. (i.e. ":s/foo/bar" or ":g/foo/d") can't
  457. be undone.
  458. This is due to the current design of the undo code.
  459. To undo these
  460. commands would generally involve unreasonable amounts of memory.
  461. .LI
  462. Several other less bothersome glitches...
  463. .LE
  464. .SK
  465. .H 1 "Conclusion"
  466. The editor has reached a pretty stable state, and performs well on
  467. the systems I use it on, so I'm pretty much in maintenance mode now.
  468. There's still plenty to be done; the screen update code is still pretty
  469. inefficient and the yank/put code is still primitive.
  470. I'm still interested in bug reports, and I do still add a new feature
  471. from time to time, but the rate of change is way down now.
  472. .P
  473. I'd like to thank Tim Thompson for writing the original version of the
  474. editor. His program was well structured and quite readable. Thanks for
  475. giving me a good base to work with.
  476. Thanks also to many users of STEVIE who have sent in their changes.
  477. Many of the changes I've received aren't portable to all the systems
  478. I support, but I'm working to get portable implementations integrated
  479. into the editor where possible.
  480. .P
  481. If you're reading this file, but didn't get the source code for STEVIE,
  482. it can be had by sending a disk with return postage to the address given
  483. below. I can write disks for the Atari ST (SS or DS) or MSDOS (360K or
  484. 1.2M). Please be sure to include the return postage. I don't intend to
  485. make money from this program, but I don't want to lose any either.
  486. .DS 1
  487. Tony Andrews        UUCP: uunet!dunike!onecom!raid5!tony
  488. 5902E Gunbarrel Ave.
  489. Boulder, CO 80301
  490. .DE
  491. .SK
  492. .HU "Character Function Summary"
  493. The following list describes the meaning of each character that's used
  494. by the editor. In some cases characters have meaning in both command and
  495. insert mode; these are all described.
  496. .SP 2
  497. .VL 8
  498. .LI ^@
  499. The null character. Not used in any mode. This character may not
  500. be present in the file, as is the case with vi.
  501. .LI ^B
  502. Backward one screen.
  503. .LI ^D
  504. Scroll the window down one half screen.
  505. .LI ^E
  506. Scroll the screen up one line.
  507. .LI ^F
  508. Forward one screen.
  509. .LI ^G
  510. Same as ":f" command. Displays file information.
  511. .LI ^H
  512. (Backspace) Moves cursor left one space in command mode.
  513. In insert mode, erases the last character typed.
  514. .LI ^J
  515. Move the cursor down one line.
  516. .LI ^L
  517. Clear and redraw the screen.
  518. .LI ^M
  519. (Carriage return) Move to the first non-white character
  520. in the next line. In insert mode, a carriage return opens a new
  521. line for input.
  522. .LI ^N
  523. Move the cursor down a line.
  524. .LI ^P
  525. Move the cursor up a line.
  526. .LI ^U
  527. Scroll the window up one half screen.
  528. .LI ^Y
  529. Scroll the screen down one line.
  530. .LI ^[
  531. Escape cancels a pending command in command mode, and is used to
  532. terminate insert mode.
  533. .LI ^]
  534. Moves to the tag whose name is given by the word in which the cursor
  535. resides.
  536. .LI ^`
  537. Same as ":e #" if supported (system-dependent).
  538. .LI SPACE
  539. Move the cursor right on column.
  540. .LI !
  541. The filter operator always operates on a range of lines, passing the
  542. lines as input to a program, and replacing them with the output of the
  543. program. The shorthand command "!!" can be used to filter a number of
  544. lines (specified by a preceding count). The command "!" is replaced
  545. by the last command used, so "!!!<RETURN>" runs the given number of
  546. lines through the last specified command.
  547. .LI $
  548. Move to the end of the current line.
  549. .LI %
  550. If the cursor rests on a paren '()', brace '{}', or bracket '[]',
  551. move to the matching one.
  552. .LI \'
  553. Used to move the cursor to a previously marked position, as
  554. in 'a or 'b. The cursor moves to the start of the marked line. The
  555. special mark '' refers to the "previous context".
  556. .LI +
  557. Same as carriage return, in command mode.
  558. .LI ,
  559. Reverse of the last t, T, f, or F command.
  560. .LI -
  561. Move to the first non-white character in the previous line.
  562. .LI .
  563. Repeat the last edit command.
  564. .LI /
  565. Start of a forward string search command. String searches may be
  566. optionally terminated with a closing slash. To search for a slash
  567. use '\\/' in the search string.
  568. .LI 0
  569. Move to the start of the current line. Also used within counts.
  570. .LI 1-9
  571. Used to add 'count' prefixes to commands.
  572. .LI :
  573. Prefix character for "ex" commands.
  574. .LI ;
  575. Repeat last t, T, f, or F command.
  576. .LI <
  577. The 'left shift' operator.
  578. .LI >
  579. The 'right shift' operator.
  580. .LI ?
  581. Same as '/', but search backward.
  582. .LI A
  583. Append at the end of the current line.
  584. .LI B
  585. Backward one blank-delimited word.
  586. .LI C
  587. Change the rest of the current line.
  588. .LI D
  589. Delete the rest of the current line.
  590. .LI E
  591. End of the end of a blank-delimited word.
  592. .LI F
  593. Find a character backward on the current line.
  594. .LI G
  595. Go to the given line number (end of file, by default).
  596. .LI H
  597. Move to the first non-white char. on the top screen line.
  598. .LI I
  599. Insert before the first non-white char. on the current line.
  600. .LI J
  601. Join two lines.
  602. .LI L
  603. Move to the first non-white char. on the bottom screen line.
  604. .LI M
  605. Move to the first non-white char. on the middle screen line.
  606. .LI N
  607. Reverse the last string search.
  608. .LI O
  609. Open a new line above the current line, and start inserting.
  610. .LI P
  611. Put the yank/delete buffer before the current cursor position.
  612. .LI R
  613. Replace characters until an "escape" character is received.
  614. Similar to insert mode, but replaces instead of inserting.
  615. Typing a newline in replace mode is the same as in insert mode,
  616. but replacing continues on the new line.
  617. .LI T
  618. Reverse search 'upto' the given character.
  619. .LI U
  620. Restore the current line to its state before you started changing it.
  621. .LI W
  622. Move forward one blank-delimited word.
  623. .LI X
  624. Delete one character before the cursor.
  625. .LI Y
  626. Yank the current line. Same as 'yy'.
  627. .LI ZZ
  628. Exit from the editor, saving changes if necessary.
  629. .LI [[
  630. Move backward one C function.
  631. .LI ]]
  632. Move forward one C function.
  633. .LI ^
  634. Move to the first non-white on the current line.
  635. .LI `
  636. Move to the given mark, as with '. The distinction between the two
  637. commands is important when used with operators. I support the
  638. difference correctly. If you don't know what I'm talking about,
  639. don't worry, it won't matter to you.
  640. .LI a
  641. Append text after the cursor.
  642. .LI b
  643. Back one word.
  644. .LI c
  645. The change operator.
  646. .LI d
  647. The delete operator.
  648. .LI e
  649. Move to the end of a word.
  650. .LI f
  651. Find a character on the current line.
  652. .LI h
  653. Move left one column.
  654. .LI i
  655. Insert text before the cursor.
  656. .LI j
  657. Move down one line.
  658. .LI k
  659. Move up one line.
  660. .LI l
  661. Move right one column.
  662. .LI m
  663. Set a mark at the current position (e.g. ma or mb).
  664. .LI n
  665. Repeat the last string search.
  666. .LI o
  667. Open a new line and start inserting text.
  668. .LI p
  669. Put the yank/delete buffer after the cursor.
  670. .LI r
  671. Replace a character.
  672. .LI s
  673. Replace characters.
  674. .LI t
  675. Move forward 'upto' the given character on the current line.
  676. .LI u
  677. Undo the last edit.
  678. .LI w
  679. Move forward one word.
  680. .LI x
  681. Delete the character under the cursor.
  682. .LI y
  683. The yank operator.
  684. .LI z
  685. Redraw the screen with the current line at the top (zRETURN),
  686. the middle (z.), or the bottom (z-).
  687. .LI |
  688. Move to the column given by the preceding count.
  689. .LI ~
  690. Invert the case of the current character (if alpha) and move to the right.
  691. If the parameter "tildeop" is set, this command functions as an operator.
  692. .LE
  693.