home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / VILE327.ZIP / VILE327.TAR / vile3.27 / cmdtbl < prev    next >
Text File  |  1992-12-14  |  25KB  |  1,117 lines

  1.  
  2. # This file contains all of the editor's command and key linkages.
  3. #
  4. # It should be processed by the "mktbls" program, which produces the
  5. #  headers #included by main.c
  6. #
  7. # All that is necessary to add a new function to the editor is to add
  8. #  an entry to this file, write the function, make sure it's in the
  9. #  makefile, and rebuild.  (This is not to be confused with adding a
  10. #  new key binding, which can be done with the rebind command if it
  11. #  was compiled in.)
  12. #
  13. # If you want to know which keyboard bindings are already taken, look
  14. #  at nebind.h, after you build it.
  15. #
  16. # The entries are functions within the editor.  They _must_ match the
  17. #  functions' names.  On the same line as the name is the set of flags
  18. #  describing that function.
  19. # Also accompanying each function is a list of english names  for the 
  20. #  command, in double quotes, and a list of keys bound to the command,
  21. #  in single quotes.  These are the default key bindings -- they can change
  22. #  at runtime.  English names must be all lowercase.
  23. # Any function, name, or key may be followed by a conditional, i.e. the
  24. #  name of a preprocessor #define which must be defined non-zero for that
  25. #  line to become part of the editor.  If a function name is made conditional,
  26. #  the names and keys listed with it will be conditional also.
  27. # The names and keys must be preceded by a tab character.
  28. # Blank lines must be completely empty.
  29. # For convenience only, this table is kept in roughly alphabetical order, 
  30. #  by first character of function name.
  31. #
  32. # For example, consider the following entry:
  33. #
  34. #     somefunc    ABS|MOTION        BSD|DOS
  35. #        "funkycom"
  36. #        '^X-F'
  37. #        'FN-2'                DOS
  38. #
  39. # This says that somefunc() is an absolute motion command, that it should
  40. #  only be included in the editor if we're running BSD or DOS, that its
  41. #  english name as one would type on the command line is "funkycom", and
  42. #  that it is bound to ^X-F, and also to function key 2 under DOS.
  43. #
  44. # Function flags have the following meanings:
  45. #    REDO means the dotcmd command recorder should be halted, so that
  46. #        the command can be redone.
  47. #    UNDO means the undo stacks should be cleared, in preparation for
  48. #        an undoable command.
  49. #    OPER means the command is an "operator", that is, it acts on a region
  50. #        demarcated by the current cursor position and the cursor position
  51. #        following a subsequent motion command.
  52. #    MOTION means this command moves dot, and specifically is compatible
  53. #        with the operator commands.
  54. #    FL only occurs with MOTION, means that if the motion is an argument
  55. #        to an operator, the operation should affect Full Lines
  56. #    ABS only occurs with MOTION, means that the motion is absolute,
  57. #        i.e. not relative to the current position or screen.  It causes
  58. #        the "lastdotmark", ldmark to be set to dot before the move
  59. #        takes place.
  60. #    GOAL signifies a motion that will attempt to retain the 
  61. #        current column position after the motion.
  62. #    GLOBOK says the function can follow a global command
  63. #        (e.g. the 'd' in "g/pattern/d")
  64. #
  65. #    This file was designed and constructed by Paul Fox for vile, (c)1990
  66. #
  67. #    The flags given in parentheses are "ex" flags, related to what
  68. #        kind of line-range arguments the command can take.  Not all are
  69. #        currently used or implemented, but they were defined in the command
  70. #        table for the Steve Kirkendall's elvis editor, so I included them
  71. #        here for completeness.
  72. #
  73. # $Log: cmdtbl,v $
  74. # Revision 1.43  1992/11/19  08:56:35  foxharp
  75. # add "args" as a synonym for "list-buffers".  i know it's not much
  76. # like the vi "args" command, but it's about as close as i can get easily
  77. #
  78. # Revision 1.42  1992/08/20  23:40:48  foxharp
  79. # typo fixes -- thanks, eric
  80. #
  81. # Revision 1.41  1992/07/16  22:03:35  foxharp
  82. # made kbd_mac_exec undoable
  83. #
  84. # Revision 1.40  1992/07/15  19:26:18  foxharp
  85. # made dotcmdplay undoable
  86. #
  87. # Revision 1.39  1992/07/08  08:19:43  foxharp
  88. # added DOS function keys
  89. #
  90. # Revision 1.38  1992/06/01  20:44:47  foxharp
  91. # always define bktoshell -- we make it a null routine instead of leaving
  92. # it out...
  93. #
  94. # Revision 1.37  1992/05/25  21:06:46  foxharp
  95. # emacs --> vile !!  (about time)
  96. #
  97. # Revision 1.36  1992/03/19  23:42:49  pgf
  98. # took out scrsearchforwword stuff -- macros can handle i
  99. #
  100. # Revision 1.35  1992/03/13  08:10:37  pgf
  101. # added ZERO flag to gomark, so ":0" can work
  102. #
  103. # Revision 1.34  1992/03/07  10:19:17  pgf
  104. # added Eric Krohn's srcsearchword() functions.  All of this screen search
  105. # stuff could be done with macros if variables worked right.
  106. #
  107. # Revision 1.33  1991/12/24  09:18:47  pgf
  108. # added current/change directory support  (Dave Lemke's changes)
  109. #
  110. # Revision 1.32  1991/11/07  14:56:59  pgf
  111. # added "pop" synonym
  112. #
  113. # Revision 1.31  1991/11/06  23:28:08  pgf
  114. # getfence() will scan for a fence if not on one to begin with.  it'll
  115. # scan in either direction, depending on arg to matchfence or matchfenceback
  116. #
  117. # Revision 1.30  1991/11/03  17:45:15  pgf
  118. # change getfence to matchfence
  119. #
  120. # Revision 1.29  1991/11/01  14:21:17  pgf
  121. # cleanup
  122. #
  123. # Revision 1.28  1991/10/31  02:36:14  pgf
  124. # implement vi-like substagain
  125. #
  126. # Revision 1.27  1991/10/29  14:35:29  pgf
  127. # implemented the & commands: substagain
  128. #
  129. # Revision 1.26  1991/10/29  03:08:54  pgf
  130. # changes for new function keys (ESC O x and # x) bindings, for
  131. # executing named registers, for loading named registers, and for
  132. # saving the keyboard macro to a named register
  133. #
  134. # Revision 1.25  1991/10/26  00:13:48  pgf
  135. # the sentence motions are now implemented
  136. #
  137. # Revision 1.24  1991/10/20  23:33:06  pgf
  138. # made ^N, ^P, and ^T vi-compliant
  139. #
  140. # Revision 1.23  1991/09/17  13:02:57  pgf
  141. # added write-all and brethren
  142. #
  143. # Revision 1.22  1991/09/10  00:40:05  pgf
  144. # took out obsolete "showgmodes"
  145. #
  146. # Revision 1.21  1991/08/14  12:08:54  pgf
  147. # showmodes command now does new-style show
  148. #
  149. # Revision 1.20  1991/08/12  15:06:21  pgf
  150. # added ANSI_SPEC capability -- can now use the arrow keys from
  151. # command or insert mode
  152. #
  153. # Revision 1.19  1991/08/07  11:56:58  pgf
  154. # added RCS log entries
  155. #
  156. # revision 1.18
  157. # date: 1991/08/06 15:55:01;
  158. # added "Q!"
  159. # revision 1.17
  160. # date: 1991/08/06 15:28:15;
  161. # mode listing changes
  162. # revision 1.16
  163. # date: 1991/07/23 11:10:51;
  164. # made the top, bottom, and middle of screen commands (H,M,L) absolute
  165. # revision 1.15
  166. # date: 1991/07/19 17:18:58;
  167. # change over-wordy "end-of-line" and "begi..." to "eol" and "bol"
  168. # revision 1.14
  169. # date: 1991/06/26 09:34:53;
  170. # new, rationalized(?) names
  171. # revision 1.13
  172. # date: 1991/06/16 17:41:39;
  173. # added entab, detab, and trim operator commands
  174. # revision 1.12
  175. # date: 1991/06/15 09:08:01;
  176. # added new forwchar_to_eol, and backchar_to_eol
  177. # revision 1.11
  178. # date: 1991/06/13 15:19:03;
  179. # made "source" a synonym for "execute-file"
  180. # revision 1.10
  181. # date: 1991/06/03 17:34:59;
  182. # switch from "meta" etc. to "ctla" etc.
  183. # revision 1.9
  184. # date: 1991/06/03 15:53:18;
  185. # added "set-variable"
  186. # revision 1.8
  187. # date: 1991/06/03 12:19:25;
  188. # added some ifdefs for unresoved refs when TAGS, GLOBALS, or WORDPRO
  189. # is turned off
  190. # revision 1.7
  191. # date: 1991/06/03 10:27:54;
  192. # added rebind-key synonym for bind-key, and
  193. # took out named version and GLOBOK flag on "join", since it
  194. # doesn't work after "g" command anymore (need to take a region to
  195. # work now)
  196. # revision 1.6
  197. # date: 1991/05/31 11:37:16;
  198. # a bunch of changes for ex commands and line ranges
  199. # revision 1.5
  200. # date: 1991/04/04 09:35:07;
  201. # added filterregion, and some text improvements
  202. # revision 1.4
  203. # date: 1991/04/04 09:31:59;
  204. # added horiz. scrolling and window resizing commands
  205. # revision 1.3
  206. # date: 1990/10/12 19:33:30;
  207. # added ^A-/ for scrsearchpat
  208. # revision 1.2
  209. # date: 1990/10/01 10:38:25;
  210. # change execcmd to NEVER -- the routine itself has been ifdefed out
  211. # revision 1.1
  212. # date: 1990/09/21 10:24:53;
  213. # initial vile RCS revision
  214. #
  215.  
  216. altbuff        NONE
  217.     "alternate-buffer"        !FEWNAMES
  218.     '^^'
  219. append        REDO|UNDO
  220.     "append-chars"            !FEWNAMES
  221.     'a'
  222. appendeol    REDO|UNDO
  223.     "append-chars-at-eol"            !FEWNAMES
  224.     'A'
  225. apro        NONE            APROP|REBIND
  226.     "apropos"
  227.     "list-commands-apropos-to"
  228. backchar    MOTION
  229.     "backward-character"        !FEWNAMES
  230. backchar_to_bol    MOTION
  231.     "backward-character-to-bol"    !FEWNAMES
  232.     'h'
  233.     '^H'
  234.     '^?'
  235.     'FN-D'                ANSI_SPEC
  236.     'FN-\113'            MSDOS
  237. backdelchar    REDO|UNDO
  238.     "delete-previous-character"    !FEWNAMES
  239.     'X'
  240. backhunt    ABS|MOTION        !SMALLER
  241.     "hunt-backward"
  242. backhpage    NONE
  243.     "previous-half-page"        !FEWNAMES
  244.     "back-half-page"        !FEWNAMES
  245.     "up-half-page"        !FEWNAMES
  246.     '^U'
  247. backline    GOAL|MOTION|FL
  248.     "previous-line"            !FEWNAMES
  249.     "back-line"            !FEWNAMES
  250.     "up-line"            !FEWNAMES
  251.     'k'
  252.     '^P'
  253.     'FN-A'                ANSI_SPEC
  254.     'FN-\110'            MSDOS
  255. backbline    MOTION|FL
  256.     "previous-line-at-bol"        !FEWNAMES
  257.     "back-line-at-bol"        !FEWNAMES
  258.     "up-line-at-bol"        !FEWNAMES
  259.     '-'
  260. backpage    MOTION
  261.     "previous-page"            !FEWNAMES
  262.     "back-page"            !FEWNAMES
  263.     '^B'
  264.     'FN-\111'            MSDOS
  265. backword    MOTION
  266.     "previous-word"            !FEWNAMES
  267.     "back-word"            !FEWNAMES
  268.     'B'
  269.     'FN-\163'            MSDOS
  270. backviword    MOTION
  271.     "previous-punctuated-word"        !FEWNAMES
  272.     "back-punctuated-word"        !FEWNAMES
  273.     'b'
  274. backsearch    ABS|MOTION
  275.     "search-reverse"        !FEWNAMES
  276.     '?'
  277. bcsrch        MOTION
  278.     "backward-char-scan"        !FEWNAMES
  279.     'F'
  280. bcsrch_to    MOTION
  281.     "backward-char-scan-to"        !FEWNAMES
  282.     'T'
  283. bindkey        NONE            REBIND
  284.     "bind-key"
  285.     "rebind-key"
  286. bktoshell    NONE
  287.     "suspend-vile"            !FEWNAMES
  288.     '^Z'
  289. cd        NONE
  290.     "cd"
  291.     "change-directory"
  292. cntl_xf        NONE
  293.     "cntl_x-prefix"            !FEWNAMES
  294.     '^X'
  295. chgchar        REDO|UNDO
  296.     "change-char"            !FEWNAMES
  297.     "delete-char-and-insert-chars"        !FEWNAMES
  298.     's'
  299. chgline        REDO|UNDO
  300.     "change-line"            !FEWNAMES
  301.     "delete-line-and-insert-chars"        !FEWNAMES
  302.     'S'
  303. chgtoeol    REDO|UNDO
  304.     "change-to-eol"        !FEWNAMES
  305.     "delete-to-eol-and-insert-chars"    !FEWNAMES
  306.     'C'
  307. clrmes        NONE
  308.     "clear-message-line"        !FEWNAMES
  309. consearch    ABS|MOTION
  310.     "continue-search"        !FEWNAMES
  311.     'n'
  312. opercopy        OPER|(RANGE|EXTRA)
  313.     "copy-til"
  314.     "c"
  315. kbd_mac_begin        NONE
  316.     "begin-keyboard-macro"        !FEWNAMES
  317.     '^X-('
  318. kbd_mac_end        NONE
  319.     "end-keyboard-macro"        !FEWNAMES
  320.     '^X-)'
  321. kbd_mac_exec        REDO|UNDO
  322.     "execute-keyboard-macro"    !FEWNAMES
  323.     '^X-&'
  324. kbd_mac_save        NONE
  325.     "save-keyboard-macro"
  326.     '^X-^'
  327. cbuf1        REDO
  328.     "execute-macro-1"        !FEWNAMES
  329.     'FN-1'                UNIX
  330.     'FN-P'                ANSI_SPEC
  331. cbuf2        REDO
  332.     "execute-macro-2"        !FEWNAMES
  333.     'FN-2'                UNIX
  334.     'FN-Q'                ANSI_SPEC
  335.     'FN-\125'            MSDOS
  336. cbuf3        REDO
  337.     "execute-macro-3"        !FEWNAMES
  338.     'FN-3'                UNIX
  339.     'FN-R'                ANSI_SPEC
  340.     'FN-\126'            MSDOS
  341. cbuf4        REDO
  342.     "execute-macro-4"        !FEWNAMES
  343.     'FN-4'                UNIX
  344.     'FN-S'                ANSI_SPEC
  345.     'FN-\127'            MSDOS
  346. cbuf5        REDO
  347.     "execute-macro-5"        !FEWNAMES
  348.     'FN-5'                UNIX
  349.     'FN-\130'            MSDOS
  350. cbuf6        REDO
  351.     "execute-macro-6"        !FEWNAMES
  352.     'FN-6'                UNIX
  353.     'FN-\131'            MSDOS
  354. cbuf7        REDO
  355.     "execute-macro-7"        !FEWNAMES
  356.     'FN-7'                UNIX
  357.     'FN-\132'            MSDOS
  358. cbuf8        REDO
  359.     "execute-macro-8"        !FEWNAMES
  360.     'FN-8'                UNIX
  361.     'FN-\133'            MSDOS
  362. cbuf9        REDO
  363.     "execute-macro-9"        !FEWNAMES
  364.     'FN-9'                UNIX
  365.     'FN-\134'            MSDOS
  366. cbuf10        REDO
  367.     "execute-macro-10"        !FEWNAMES
  368. cbuf11        REDO            !SMALLER
  369.     "execute-macro-11"        !FEWNAMES
  370. cbuf12        REDO            !SMALLER
  371.     "execute-macro-12"        !FEWNAMES
  372. cbuf13        REDO            !SMALLER
  373.     "execute-macro-13"        !FEWNAMES
  374. cbuf14        REDO            !SMALLER
  375.     "execute-macro-14"        !FEWNAMES
  376. cbuf15        REDO            !SMALLER
  377.     "execute-macro-15"        !FEWNAMES
  378. cbuf16        REDO            !SMALLER
  379.     "execute-macro-16"        !FEWNAMES
  380. cbuf17        REDO            !SMALLER
  381.     "execute-macro-17"        !FEWNAMES
  382. cbuf18        REDO            !SMALLER
  383.     "execute-macro-18"        !FEWNAMES
  384. cbuf19        REDO            !SMALLER
  385.     "execute-macro-19"        !FEWNAMES
  386. cbuf20        REDO            !SMALLER
  387.     "execute-macro-20"        !FEWNAMES
  388. cbuf21        REDO            !SMALLER
  389.     "execute-macro-21"        !FEWNAMES
  390. cbuf22        REDO            !SMALLER
  391.     "execute-macro-22"        !FEWNAMES
  392. cbuf23        REDO            !SMALLER
  393.     "execute-macro-23"        !FEWNAMES
  394. cbuf24        REDO            !SMALLER
  395.     "execute-macro-24"        !FEWNAMES
  396. cbuf25        REDO            !SMALLER
  397.     "execute-macro-25"        !FEWNAMES
  398. cbuf26        REDO            !SMALLER
  399.     "execute-macro-26"        !FEWNAMES
  400. cbuf27        REDO            !SMALLER
  401.     "execute-macro-27"        !FEWNAMES
  402. cbuf28        REDO            !SMALLER
  403.     "execute-macro-28"        !FEWNAMES
  404. cbuf29        REDO            !SMALLER
  405.     "execute-macro-29"        !FEWNAMES
  406. cbuf30        REDO            !SMALLER
  407.     "execute-macro-30"        !FEWNAMES
  408. cbuf31        REDO            !SMALLER
  409.     "execute-macro-31"        !FEWNAMES
  410. cbuf32        REDO            !SMALLER
  411.     "execute-macro-32"        !FEWNAMES
  412. cbuf33        REDO            !SMALLER
  413.     "execute-macro-33"        !FEWNAMES
  414. cbuf34        REDO            !SMALLER
  415.     "execute-macro-34"        !FEWNAMES
  416. cbuf35        REDO            !SMALLER
  417.     "execute-macro-35"        !FEWNAMES
  418. cbuf36        REDO            !SMALLER
  419.     "execute-macro-36"        !FEWNAMES
  420. cbuf37        REDO            !SMALLER
  421.     "execute-macro-37"        !FEWNAMES
  422. cbuf38        REDO            !SMALLER
  423.     "execute-macro-38"        !FEWNAMES
  424. cbuf39        REDO            !SMALLER
  425.     "execute-macro-39"        !FEWNAMES
  426. cbuf40        REDO            !SMALLER
  427.     "execute-macro-40"        !FEWNAMES
  428. delwind        NONE
  429.     "delete-window"            !FEWNAMES
  430.     '^K'
  431.     '^X-0'
  432. deblank        REDO|UNDO        AEDIT
  433.     "delete-blank-lines"        !FEWNAMES
  434.     '^A-o'
  435. delgmode    NONE
  436.     "delete-global-mode"        !FEWNAMES
  437.     "setgno"
  438.     "unsetg"
  439.     "setno"
  440.     "unset"
  441. delmode        NONE|(EXRCOK|EXTRA)
  442.     "delete-mode"            !FEWNAMES
  443.     "setlno"
  444.     "unsetl"
  445. deltoeol    REDO|UNDO
  446.     "delete-to-eol"        !FEWNAMES
  447.     'D'
  448. desbind        NONE            REBIND
  449.     "describe-bindings"
  450.     "list-bindings"
  451. deskey        NONE            REBIND
  452.     "describe-key"
  453. dotcmdplay    UNDO
  454.     "repeat-last-cmd"        !FEWNAMES
  455.     '.'
  456. ex    NONE|(BANG|FILE1)
  457.     "ex"
  458. execbuf        NONE            !SMALLER
  459.     "execute-buffer"        !FEWNAMES
  460. execcmd        NONE            NEVER
  461.     "execute-command-line"        !FEWNAMES
  462. execfile    NONE            !SMALLER
  463.     "execute-file"            !FEWNAMES
  464.     "source"
  465. execkreg    NONE
  466.     "execute-register"
  467.     '@'
  468. execproc    REDO            PROC
  469.     "execute-procedure"        !FEWNAMES
  470.     "run"
  471. enlargewind    NONE
  472.     "grow-window"            !FEWNAMES
  473.     'V'
  474. esc        NONE
  475.     "abort-command"            !FEWNAMES
  476.     '^['
  477. fcsrch        MOTION
  478.     "forward-char-scan"        !FEWNAMES
  479.     'f'
  480. fcsrch_to    MOTION
  481.     "forward-char-scan-up-to"    !FEWNAMES
  482.     't'
  483. filefind    NONE|(BANG|FILE1|PLUS)
  484.     "e"
  485.     "E"
  486.     "edit-file"            !FEWNAMES
  487.     "find-file"            !FEWNAMES
  488.     '^X-e'
  489. filename    NONE|(NAMEDF)
  490.     "change-file-name"        !FEWNAMES
  491.     "f"
  492.     "file"
  493.     "filename"
  494. fileread    NONE
  495.     "e!"
  496.     "replace-with-file"        !FEWNAMES
  497. filesave    NONE            !SMALLER
  498.     "save-file"
  499. filewrite    NONE
  500. #    "w"
  501. #    "W"
  502.     "write-file"            !FEWNAMES
  503. filter        REDO|UNDO
  504.     "|"
  505.     "filter-buffer"            !FEWNAMES
  506. finderr        NONE            FINDERR
  507.     "find-next-error"        !FEWNAMES
  508.     '^X-^X'
  509. firstnonwhite    MOTION
  510.     "first-nonwhite"        !FEWNAMES
  511.     '^'
  512. fisearch    NONE            ISRCH
  513.     "incremental-search"        !FEWNAMES
  514.     '^X-S'
  515. flipchar    REDO|UNDO
  516.     "flip-character"        !FEWNAMES
  517.     '~'
  518. fnclabel    NONE            FLABEL
  519.     "label-function-key"        !FEWNAMES
  520.     "label-fkey"
  521. forwdelchar    REDO|UNDO
  522.     "delete-next-character"        !FEWNAMES
  523.     'x'
  524.     'FN-\123'            MSDOS
  525. forwhpage    NONE
  526.     "forward-half-page"        !FEWNAMES
  527.     "next-half-page"        !FEWNAMES
  528.     "down-half-page"        !FEWNAMES
  529.     '^D'
  530. forwchar    MOTION
  531.     "forward-character"        !FEWNAMES
  532.     "next-character"        !FEWNAMES
  533. forwchar_to_eol    MOTION
  534.     "forward-character-to-eol"    !FEWNAMES
  535.     "next-character-to-eol"    !FEWNAMES
  536.     ' '
  537.     'l'
  538.     'FN-C'                ANSI_SPEC
  539.     'FN-\115'            MSDOS
  540. forwpage    MOTION
  541.     "forward-page"            !FEWNAMES
  542.     "next-page"            !FEWNAMES
  543.     "down-page"            !FEWNAMES
  544.     '^F'
  545.     'FN-\121'            MSDOS
  546. forwline    GOAL|MOTION|FL
  547.     "forward-line"            !FEWNAMES
  548.     "next-line"            !FEWNAMES
  549.     "down-line"            !FEWNAMES
  550.     'j'
  551.     '^J'
  552.     '^N'
  553.     'FN-B'                ANSI_SPEC
  554.     'FN-\120'            MSDOS
  555. forwbline    MOTION|FL
  556.     "forward-line-at-bol"        !FEWNAMES
  557.     "next-line-at-bol"        !FEWNAMES
  558.     "down-line-at-bol"        !FEWNAMES
  559.     '+'
  560.     '^M'
  561. forwword    MOTION
  562.     "forward-word"            !FEWNAMES
  563.     "next-word"            !FEWNAMES
  564.     'W'
  565.     'FN-\164'            MSDOS
  566. forwviword    MOTION
  567.     "forward-punctuated-word"        !FEWNAMES
  568.     "next-punctuated-word"        !FEWNAMES
  569.     'w'
  570. forwendw    MOTION
  571.     "forward-word-end"            !FEWNAMES
  572.     "next-word-end"            !FEWNAMES
  573.     'E'
  574. forwviendw    MOTION
  575.     "forward-punctuated-word-end"        !FEWNAMES
  576.     "next-punctuated-word-end"        !FEWNAMES
  577.     'e'
  578. forwhunt    ABS|MOTION        !SMALLER
  579.     "hunt-forward"            !FEWNAMES
  580. forwsearch    ABS|MOTION
  581.     "search-forward"        !FEWNAMES
  582.     '/'
  583. matchfence    ABS|MOTION        CFENCE
  584.     "goto-matching-fence"        !FEWNAMES
  585.     '%'
  586. matchfenceback    ABS|MOTION        CFENCE
  587.     "goto-matching-fence-behind"    !FEWNAMES
  588.     '^X-%'
  589. globals        NONE            GLOBALS
  590.     "og"
  591. # this function is for internal use only, for the operator commands
  592. godotplus    MOTION|FL
  593.  
  594. # this function is for internal use only, for ex commands
  595. gomark        MOTION|FL|(RANGE|ZERO)
  596.  
  597. gotobop        ABS|MOTION        WORDPRO
  598.     "previous-paragraph"        !FEWNAMES
  599.     "back-paragraph"        !FEWNAMES
  600.     "up-paragraph"            !FEWNAMES
  601.     '{'
  602. #    'FN-\204'            MSDOS
  603. gotoeop        ABS|MOTION        WORDPRO
  604.     "forward-paragraph"        !FEWNAMES
  605.     "next-paragraph"        !FEWNAMES
  606.     "down-paragraph"        !FEWNAMES
  607.     '}'
  608.     'FN-\166'            MSDOS
  609. gotobob        ABS|MOTION        !SMALLER
  610.     "beginning-of-file"        !FEWNAMES
  611.     "goto-beginning-of-file"    !FEWNAMES
  612.     'FN-\107'            MSDOS
  613. gotoeob        ABS|MOTION        !SMALLER
  614.     "goto-end-of-file"        !FEWNAMES
  615.     "end-of-file"            !FEWNAMES
  616.     'FN-\117'            MSDOS
  617. gotobol        MOTION
  618.     "goto-bol"            !FEWNAMES
  619.     "beginning-of-line"        !FEWNAMES
  620.     "bol"                !FEWNAMES
  621.     '0'
  622. gotoeol        MOTION|GOAL
  623.     "goto-eol"            !FEWNAMES
  624.     "end-of-line"            !FEWNAMES
  625.     "eol"                !FEWNAMES
  626.     '$'
  627. gotobos        ABS|MOTION|FL
  628.     "goto-beginning-of-screen"    !FEWNAMES
  629.     "beginning-of-screen"        !FEWNAMES
  630.     'H'
  631. gotomos        ABS|MOTION|FL
  632.     "goto-middle-of-screen"        !FEWNAMES
  633.     "middle-of-screen"        !FEWNAMES
  634.     'M'
  635. gotoeos        ABS|MOTION|FL
  636.     "goto-end-of-screen"        !FEWNAMES
  637.     "end-of-screen"            !FEWNAMES
  638.     'L'
  639. gotobosec    ABS|MOTION        WORDPRO
  640.     "previous-section"        !FEWNAMES
  641.     "back-section"            !FEWNAMES
  642.     "up-section"            !FEWNAMES
  643.     '['
  644. gotoeosec    ABS|MOTION        WORDPRO
  645.     "forward-section"        !FEWNAMES
  646.     "next-section"            !FEWNAMES
  647.     "down-section"            !FEWNAMES
  648.     ']'
  649. gotobosent    ABS|MOTION        WORDPRO
  650.     "previous-sentence"        !FEWNAMES
  651.     "back-sentence"            !FEWNAMES
  652.     "up-sentence"            !FEWNAMES
  653.     '('
  654. gotoeosent    ABS|MOTION        WORDPRO
  655.     "forward-sentence"        !FEWNAMES
  656.     "next-sentence"            !FEWNAMES
  657.     "down-sentence"            !FEWNAMES
  658.     ')'
  659. gototag        NONE|(BANG|WORD1)        TAGS
  660.     "ta"
  661.     "tag"
  662.     "find-tag"            !FEWNAMES
  663.     '^]'
  664. gotocol        MOTION
  665.     "goto-column"            !FEWNAMES
  666.     '|'
  667. gotoline    ABS|MOTION|FL|(RANGE)
  668.     "goto-line"            !FEWNAMES
  669.     'G'
  670. # golinenmmark and goexactnmmark are special cases--    
  671. #     no ABS even though they are absolute, since these are the commands
  672. #    that maintain the last-dot-mark
  673. golinenmmark    MOTION|FL
  674.     "goto-named-mark"        !FEWNAMES
  675. #  single quote -- can't use '''
  676.     '\047'
  677. goexactnmmark    MOTION
  678.     "goto-named-mark-exact"        !FEWNAMES
  679.     '`'
  680. help        NONE
  681.     "h"
  682.     "help"
  683.     "list-help"
  684.     '^A-h'
  685.     '^X-h'
  686. histbuff    NONE
  687.     "historical-buffer"        !FEWNAMES
  688.     '_'
  689.     "_"
  690. insert        REDO|UNDO
  691.     "insert-chars"            !FEWNAMES
  692.     'i'
  693. insertbol    REDO|UNDO
  694.     "insert-chars-at-bol"    !FEWNAMES
  695.     'I'
  696. insfile        REDO|UNDO|GLOBOK|(FROM|ZERO|NAMEDF)
  697.     "r"
  698.     "insert-file"            !FEWNAMES
  699.     "read-file"            !FEWNAMES
  700.     '^R'
  701. insspace    REDO|UNDO        !SMALLER
  702.     "insert-space"            !FEWNAMES
  703. istring        REDO|UNDO        !SMALLER
  704.     "insert-string"
  705. join        REDO|UNDO
  706.     "join-lines"            !FEWNAMES
  707.     'J'
  708. killbuffer    NONE
  709.     "delete-buffer"            !FEWNAMES
  710.     "kill-buffer"            !FEWNAMES
  711.     "ki"
  712. showlength    NONE
  713.     "buffer-length"            !FEWNAMES
  714.     "="
  715. lastnonwhite    MOTION            !SMALLER
  716.     "last-nonwhite"            !FEWNAMES
  717. listbuffers    NONE
  718.     "list-buffers"            !FEWNAMES
  719.     "args"
  720.     '^A-*'
  721. lineputafter    REDO|UNDO|GLOBOK|(FROM|ZERO|WORD1)
  722.     "put-as-lines-after"        !FEWNAMES
  723.     "put"
  724.     '^X-p'
  725. lineputbefore    REDO|UNDO|GLOBOK|(FROM|WORD1)
  726.     "put-as-lines-before"        !FEWNAMES
  727.     "Put"
  728.     '^X-P'
  729. lineundo    NONE
  730.     "undo-line-changes"        !FEWNAMES
  731.     'U'
  732. loadkreg    NONE
  733.     "load-register"
  734. map        NONE|(EXRCOK|BANG|EXTRA)
  735.     "map"
  736. cntl_af        NONE
  737.     "cntl_a-prefix"
  738.     '^A'
  739. mvdnnxtwind    NONE
  740.     "move-next-window-down"        !FEWNAMES
  741.     '^A-^E'
  742. mvupnxtwind    NONE
  743.     "move-next-window-up"        !FEWNAMES
  744.     '^A-^Y'
  745. mvdnwind    GOAL
  746.     "move-window-down"        !FEWNAMES
  747.     '^E'
  748. mvupwind    GOAL
  749.     "move-window-up"        !FEWNAMES
  750.     '^Y'
  751. mvrightwind    GOAL
  752.     "move-window-right"        !FEWNAMES
  753.     '^X-^R'
  754. mvleftwind    GOAL
  755.     "move-window-left"        !FEWNAMES
  756.     '^X-^L'
  757. nextbuffer    NONE|(BANG|NAMEDFS)
  758.     "n"
  759.     "next-buffer"            !FEWNAMES
  760. namebuffer    NONE
  761.     "rename-buffer"
  762. newline        REDO|UNDO        !SMALLER
  763.     "newline"
  764. newlength    NONE
  765.     "screen-rows"
  766. newwidth    NONE
  767.     "screen-columns"
  768. nextwind    NONE
  769.     "next-window"            !FEWNAMES
  770.     '^X-o'
  771. #    '^N'
  772. nullproc    NONE
  773.     "nop"                !FEWNAMES
  774.     '^Q'
  775.     '^S'
  776. onamedcmd    NONE
  777.     "execute-named-command-old"    !FEWNAMES
  778.     '^A-:'
  779. namedcmd    NONE
  780.     "execute-named-command"        !FEWNAMES
  781.     ":"
  782.     ':'
  783. openup        REDO|UNDO|(FROM)
  784.     "open-line-above-and-insert-chars"    !FEWNAMES
  785.     "i"
  786.     'O'
  787. opendown    REDO|UNDO|(FROM|ZERO)
  788.     "open-line-below-and-append-chars"    !FEWNAMES
  789.     "a"
  790.     'o'
  791. operchg        OPER|REDO|UNDO
  792.     "change-til"            !FEWNAMES
  793.     "delete-and-insert-chars-til"            !FEWNAMES
  794.     'c'
  795. operdetab    OPER|REDO|UNDO|GLOBOK|(RANGE)    AEDIT
  796.     "detab-lines-til"        !FEWNAMES
  797.     '^A- '
  798. operentab    OPER|REDO|UNDO|GLOBOK|(RANGE)    AEDIT
  799.     "entab-lines-til"        !FEWNAMES
  800.     '^A-^I'
  801. opermove    OPER|(RANGE|EXTRA)
  802.     "move-til"
  803.     "m"
  804. operlinechg    OPER|REDO|UNDO|(RANGE)
  805.     "change-lines-til"        !FEWNAMES
  806.     "delete-lines-and-insert-chars-til"        !FEWNAMES
  807.     "ch"
  808.     '^X-c'
  809. operdel        OPER|REDO|UNDO
  810.     "delete-til"            !FEWNAMES
  811.     'd'
  812. operlinedel    OPER|REDO|UNDO|GLOBOK|(RANGE+WORD1)
  813.     "delete-lines-til"        !FEWNAMES
  814.     "d"
  815.     '^X-d'
  816. operfilter    OPER|REDO|UNDO|(EXRCOK|RANGE|NAMEDFS|DFLNONE|NL)
  817.     "filter-til"            !FEWNAMES
  818.     "!"
  819.     '!'
  820. operformat    OPER|REDO|UNDO|(RANGE)        WORDPRO
  821.     "format-til"            !FEWNAMES
  822.     '^A-f'
  823.     '^A-j'
  824. operflip    OPER|REDO|UNDO|GLOBOK|(RANGE)
  825.     "flip-til"            !FEWNAMES
  826.     "~"
  827.     '^A-~'
  828. # RANGE commented out, since it's not done.... 
  829. operglobals    (/*RANGE|*/BANG|EXTRA|DFLALL)    GLOBALS
  830.     "global"
  831.     "g"
  832. opervglobals    (RANGE|BANG|EXTRA|DFLALL)    GLOBALS
  833.     "vglobal"
  834.     "v"
  835. operlower    OPER|REDO|UNDO|GLOBOK|(RANGE)
  836.     "lower-til"            !FEWNAMES
  837.     "L"
  838.     '^A-l'
  839. operlist    OPER|GLOBOK|(RANGE)        GLOBALS
  840.     "list-lines-til"        !FEWNAMES
  841.     "l"
  842. operprint    OPER|GLOBOK|(RANGE)        GLOBALS
  843.     "print-lines-til"        !FEWNAMES
  844.     "p"
  845. operupper    OPER|REDO|UNDO|GLOBOK|(RANGE)
  846.     "upper-til"            !FEWNAMES
  847.     "U"
  848.     '^A-u'
  849. operlshift    OPER|REDO|UNDO|GLOBOK|(RANGE)
  850.     "shift-left-til"        !FEWNAMES
  851.     "<"
  852.     '<'
  853. operrshift    OPER|REDO|UNDO|GLOBOK|(RANGE)
  854.     "shift-right-til"        !FEWNAMES
  855.     ">"
  856.     '>'
  857. opersubst    OPER|REDO|UNDO|GLOBOK|(RANGE|EXTRA)
  858.     "substitute-til"        !FEWNAMES
  859.     "s"
  860.     '^X-s'
  861. opertrim    REDO|UNDO|GLOBOK|UNDO|(RANGE)    AEDIT
  862.     "trim-lines-til"        !FEWNAMES
  863.     "trim"
  864.     '^A-t'
  865. operyank    OPER
  866.     "yank-til"            !FEWNAMES
  867.     'y'
  868. operlineyank    OPER|(RANGE|WORD1)
  869.     "yank-lines-til"        !FEWNAMES
  870.     "y"
  871.     '^X-y'
  872. opersubstagain    OPER|REDO|UNDO|GLOBOK|(RANGE|EXTRA)
  873.     "substitute-again-til"        !FEWNAMES
  874.     "&"
  875.     '^A-&'
  876. opertransf    OPER|(RANGE+EXTRA)
  877.     "transfer-til"
  878.     "t"
  879. operwrite    OPER|(RANGE|BANG|FILE1|DFLALL)
  880.     "w"
  881.     "W"
  882.     "write-til"            !FEWNAMES
  883.     '^W'
  884. overwrite    REDO|UNDO
  885.     "overwrite-chars"        !FEWNAMES
  886.     'R'
  887. onlywind    NONE
  888.     "delete-other-windows"        !FEWNAMES
  889.     '^O'
  890.     '^X-1'
  891. poswind        NONE
  892.     "position-window"        !FEWNAMES
  893.     'z'
  894. prevwind    NONE
  895.     "previous-window"        !FEWNAMES
  896.     '^X-O'
  897. #    '^P'
  898. pipecmd        NONE
  899.     "pipe-command"            !FEWNAMES
  900.     '^X-!'
  901. putafter    REDO|UNDO
  902.     "put-after"            !FEWNAMES
  903.     'p'
  904. putbefore    REDO|UNDO
  905.     "put-before"            !FEWNAMES
  906.     'P'
  907. pwd        NONE
  908.     "pwd"
  909.     "print-directory"
  910. quit        NONE|(BANG)
  911.     "q"
  912.     "Q"
  913.     "exit"
  914.     "quit"
  915.     'Q'
  916.     '^X-^C'
  917. quithard    NONE
  918.     "quit-without-save"
  919.     "q!"
  920.     "Q!"
  921. quickexit    NONE|(BANG|NL)
  922.     "x"
  923.     "xit"
  924.     "wwq"
  925.     "write-changed-buffers-and-quit" !FEWNAMES
  926.     "quick-exit"            !FEWNAMES
  927. quote        REDO|UNDO
  928.     "quote-next-character"        !FEWNAMES
  929.     '^V'
  930. refresh        NONE
  931.     "clear-and-redraw"        !FEWNAMES
  932.     '^L'
  933. reposition    NONE            !SMALLER
  934.     "redraw-display"
  935. rep_csrch    MOTION
  936.     "repeat-char-scan"        !FEWNAMES
  937.     ';'
  938. replacechar    REDO|UNDO
  939.     "replace-character"        !FEWNAMES
  940.     'r'
  941. respawn        NONE
  942.     "!!"
  943.     "rerun-shell-command"        !FEWNAMES
  944. resize        NONE            !SMALLER
  945.     "resize-window"
  946. restwnd        NONE            !SMALLER
  947.     "restore-window"
  948. rev_csrch    MOTION
  949.     "reverse-char-scan"        !FEWNAMES
  950.     ','
  951. risearch    NONE            ISRCH
  952.     "reverse-incremental-search"    !FEWNAMES
  953.     '^X-R'
  954. revsearch    ABS|MOTION
  955.     "reverse-search"        !FEWNAMES
  956.     'N'
  957. scrforwsearch    ABS|MOTION
  958.     "screen-search-forward"        !FEWNAMES
  959.     '^X-/'
  960. scrbacksearch    ABS|MOTION
  961.     "screen-search-reverse"        !FEWNAMES
  962.     '^X-?'
  963. scrsearchpat    NONE
  964.     "screen-search-pattern-grab"    !FEWNAMES
  965.     '^A-/'
  966. settab        NONE
  967.     "handle-tab"            !FEWNAMES
  968.     "set-tab"
  969.     '^X-t'
  970. spawncli    NONE
  971.     "sh"
  972.     "shell"
  973.     "interactive-shell"        !FEWNAMES
  974. savewnd        NONE            !SMALLER
  975.     "save-window"
  976. scrnextup    NONE
  977.     "scroll-next-window-up"        !FEWNAMES
  978.     '^A-^U'
  979. scrnextdw    NONE
  980.     "scroll-next-window-down"    !FEWNAMES
  981.     '^A-^D'
  982. setfillcol    NONE
  983.     "set-fill-column"
  984.     '^X-f'
  985. setkey        NONE            CRYPT
  986.     "set-crypt-key"
  987.     '^X-X'
  988. setmode        NONE|(EXRCOK|EXTRA)
  989.     "setl"
  990.     "set-mode"            !FEWNAMES
  991. setgmode    NONE
  992.     "set"
  993.     "setg"
  994.     "set-global-mode"
  995. setnmmark    NONE|(FROM+WORD1)
  996.     "set-named-mark"        !FEWNAMES
  997.     "k"
  998.     'm'
  999. setvar        NONE            !SMALLER
  1000.     "setv"
  1001.     "set-variable"
  1002. setvmalloc    NONE            VMALLOC
  1003.     "vmalloc"
  1004.     '^X-v'
  1005. showcpos    NONE
  1006.     "position"            !FEWNAMES
  1007.     '^G'
  1008.     '^X-='
  1009. listmodes    NONE
  1010.     "modes"
  1011.     "show-modes"
  1012.     "list-modes"
  1013.     "setall"
  1014.     "setgall"
  1015.     "gmodes"
  1016.     "show-global-modes"
  1017.     "showmodes"
  1018.     "showgmodes"
  1019. showversion    NONE|(EXRCOK)
  1020.     "version"
  1021. shrinkwind    NONE
  1022.     "shrink-window"            !FEWNAMES
  1023.     'v'
  1024. source        NONE|(EXRCOK|NAMEDF)
  1025.     "exsource"
  1026. spawn        NONE
  1027. #    "!"
  1028.     "shell-command"            !FEWNAMES
  1029. speckey        NONE
  1030.     '#'
  1031. splitwind    NONE
  1032.     "split-current-window"        !FEWNAMES
  1033. #    '^T'
  1034.     '^X-2'
  1035. storemac    NONE
  1036.     "store-macro"
  1037. storeproc    NONE            PROC
  1038.     "store-procedure"
  1039. subst_again    REDO|UNDO|GLOBOK
  1040.     "substitute-again"        !FEWNAMES
  1041.     '&'
  1042. togglelistbuffers    NONE
  1043.     "*"
  1044.     "toggle-buffer-list"        !FEWNAMES
  1045.     '*'
  1046. twiddle        REDO|UNDO        !SMALLER
  1047.     "transpose-characters"        !FEWNAMES
  1048. unbindkey    NONE            REBIND
  1049.     "unbind-key"
  1050. undo        NONE
  1051.     "undo-change"            !FEWNAMES
  1052.     'u'
  1053. unarg        NONE
  1054.     "universal-argument"        !FEWNAMES
  1055.     'K'
  1056. unimpl        NONE
  1057.     "unimplemented-command"        !FEWNAMES
  1058. unmark        NONE
  1059.     "unmark-buffer"
  1060. unmap        NONE|(EXRCOK|BANG|EXTRA)
  1061.     "unmap"
  1062. untagpop    NONE            TAGS
  1063.     "pop"
  1064.     "untag-pop"            !FEWNAMES
  1065.     '^X-^]'
  1066.     '^T'
  1067. upscreen    NONE            !SMALLER
  1068.     "update-screen"
  1069. usebuffer    NONE
  1070.     "b"
  1071.     "buffer"
  1072.     "select-buffer"            !FEWNAMES
  1073. usekreg        REDO
  1074.     "use-register"        !FEWNAMES
  1075.     '"'
  1076. visual        NONE
  1077.     "visual"
  1078. vglobals    NONE            GLOBALS
  1079.     "ov"
  1080. viewfile    NONE
  1081.     "view-file"
  1082. writeall    NONE|(NL)
  1083.     "ww"
  1084.     "write-changed-buffers"        !FEWNAMES
  1085. writequit    NONE|(NL)
  1086.     "wq"
  1087.     "Wq"
  1088.     "WQ"
  1089.     "write-file-and-quit"        !FEWNAMES
  1090. wrapword    REDO|UNDO        !SMALLER
  1091.     "wrap-word"
  1092. writemsg    NONE            !SMALLER
  1093.     "write-message"
  1094. yankline    NONE
  1095.     "yank-line"            !FEWNAMES
  1096.     'Y'
  1097. zzquit        NONE|(BANG|NL)
  1098.     'Z'
  1099.     "stuttered-write-all-and-quit"
  1100.