home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / z / zsh220.zip / zsh2.2 / src / zle_bindings.c < prev    next >
C/C++ Source or Header  |  1992-05-11  |  17KB  |  601 lines

  1. /*
  2.  *
  3.  * zle_bindings.c - commands and keymaps
  4.  *
  5.  * This file is part of zsh, the Z shell.
  6.  *
  7.  * This software is Copyright 1992 by Paul Falstad
  8.  *
  9.  * Permission is hereby granted to copy, reproduce, redistribute or otherwise
  10.  * use this software as long as: there is no monetary profit gained
  11.  * specifically from the use or reproduction of this software, it is not
  12.  * sold, rented, traded or otherwise marketed, and this copyright notice is
  13.  * included prominently in any copy made. 
  14.  *
  15.  * The author make no claims as to the fitness or correctness of this software
  16.  * for any use whatsoever, and it is provided as is. Any use of this software
  17.  * is at the user's own risk. 
  18.  *
  19.  */
  20.  
  21. #define ZLE
  22. #include "zsh.h"
  23.  
  24.  
  25. struct zlecmd zlecmds[] = {
  26. "accept-and-hold",acceptandhold,0,
  27. "accept-and-infer-next-history",acceptandinfernexthistory,0,
  28. "accept-and-menu-complete", acceptandmenucomplete, ZLE_MENUCMP,
  29. "accept-line",acceptline,0,
  30. "accept-line-and-down-history",acceptlineanddownhistory,0,
  31. "backward-char",backwardchar,ZLE_MOVEMENT,
  32. "backward-delete-char",backwarddeletechar,0,
  33. "backward-delete-word",backwarddeleteword,0,
  34. "backward-kill-line",backwardkillline,ZLE_KILL,
  35. "backward-kill-word",backwardkillword,ZLE_KILL,
  36. "backward-word",backwardword,ZLE_MOVEMENT,
  37. "beginning-of-buffer-or-history",beginningofbufferorhistory,ZLE_MOVEMENT,
  38. "beginning-of-history",beginningofhistory,0,
  39. "beginning-of-line",beginningofline,ZLE_MOVEMENT,
  40. "beginning-of-line-hist",beginningoflinehist,ZLE_MOVEMENT,
  41. "capitalize-word",capitalizeword,0,
  42. "clear-screen",clearscreen,0,
  43. "complete-word",completeword,ZLE_MENUCMP,
  44. "copy-prev-word",copyprevword,0,
  45. "copy-region-as-kill",copyregionaskill,ZLE_KILL,
  46. "delete-char",deletechar,0,
  47. "delete-char-or-list",deletecharorlist,ZLE_MENUCMP,
  48. "delete-word",deleteword,0,
  49. "digit-argument",digitargument,ZLE_ARG,
  50. "down-case-word",downcaseword,0,
  51. "down-history",downhistory,0,
  52. "down-line-or-history",downlineorhistory,ZLE_MOVEMENT|ZLE_LINEMOVE,
  53. "end-of-buffer-or-history",endofbufferorhistory,ZLE_MOVEMENT,
  54. "end-of-history",endofhistory,0,
  55. "end-of-line",endofline,ZLE_MOVEMENT,
  56. "end-of-line-hist",endoflinehist,ZLE_MOVEMENT,
  57. "exchange-point-and-mark",exchangepointandmark,ZLE_MOVEMENT,
  58. "execute-last-named-cmd",NULL,0,
  59. "execute-named-cmd",NULL,0,
  60. "expand-history",expandhistory,0,
  61. "expand-or-complete",expandorcomplete,ZLE_MENUCMP,
  62. "expand-word",expandword,0,
  63. "forward-char",forwardchar,ZLE_MOVEMENT,
  64. "forward-word",forwardword,ZLE_MOVEMENT,
  65. "get-line",getline,0,
  66. "gosmacs-transpose-chars",gosmacstransposechars,0,
  67. "history-incremental-search-backward",historyincrementalsearchbackward,0,
  68. "history-incremental-search-forward",historyincrementalsearchforward,0,
  69. "history-search-backward",historysearchbackward,ZLE_HISTSEARCH,
  70. "history-search-forward",historysearchforward,ZLE_HISTSEARCH,
  71. "infer-next-history",infernexthistory,0,
  72. "insert-last-word",insertlastword,ZLE_INSERT,
  73. "kill-buffer",killbuffer,ZLE_KILL,
  74. "kill-line",killline,ZLE_KILL,
  75. "kill-region",killregion,ZLE_KILL,
  76. "kill-whole-line",killwholeline,ZLE_KILL,
  77. "list-choices",listchoices,0,
  78. "list-expand",listexpand,ZLE_MENUCMP,
  79. "magic-space",magicspace,0,
  80. "menu-complete",menucompleteword,ZLE_MENUCMP,
  81. "menu-expand-or-complete",menuexpandorcomplete,ZLE_MENUCMP,
  82. "overwrite-mode",overwritemode,0,
  83. "push-line",pushline,0,
  84. "quoted-insert",quotedinsert,ZLE_INSERT,
  85. "quote-line",quoteline,0,
  86. "quote-region",quoteregion,0,
  87. "redisplay",redisplay,0,
  88. "reverse-menu-complete",reversemenucomplete,ZLE_MENUCMP,
  89. "run-help",processcmd,0,
  90. "self-insert",selfinsert,ZLE_INSERT,
  91. "self-insert-unmeta",selfinsertunmeta,ZLE_INSERT,
  92. "send-break",sendbreak,0,
  93. "send-string",sendstring,0,
  94. "",NULL,0,
  95. "set-mark-command",setmarkcommand,0,
  96. "spell-word",spellword,0,
  97. "toggle-literal-history",toggleliteralhistory,0,
  98. "transpose-chars",transposechars,0,
  99. "transpose-words",transposewords,0,
  100. "undefined-key",undefinedkey,0,
  101. "undo",undo,ZLE_UNDO,
  102. "universal-argument",universalargument,ZLE_ARG,
  103. "up-case-word",upcaseword,0,
  104. "up-history",uphistory,0,
  105. "up-line-or-history",uplineorhistory,ZLE_LINEMOVE|ZLE_MOVEMENT,
  106. "vi-add-eol",viaddeol,0,
  107. "vi-add-next",viaddnext,0,
  108. "vi-backward-blank-word",vibackwardblankword,ZLE_MOVEMENT,
  109. "vi-backward-char",vibackwardchar,ZLE_MOVEMENT,
  110. "vi-backward-delete-char",vibackwarddeletechar,ZLE_KILL,
  111. "vi-beginning-of-line",vibeginningofline,ZLE_MOVEMENT,
  112. "vi-caps-lock-panic",vicapslockpanic,0,
  113. "vi-change",vichange,0,
  114. "vi-change-eol",vichangeeol,0,
  115. "vi-change-whole-line",vichangewholeline,0,
  116. "vi-cmd-mode",vicmdmode,0,
  117. "vi-delete",videlete,ZLE_KILL,
  118. "vi-delete-char",videletechar,ZLE_KILL,
  119. "vi-digit-or-beginning-of-line",NULL,0,
  120. "vi-end-of-line",viendofline,ZLE_MOVEMENT,
  121. "vi-fetch-history",vifetchhistory,0,
  122. "vi-find-next-char",vifindnextchar,ZLE_MOVEMENT,
  123. "vi-find-next-char-skip",vifindnextcharskip,ZLE_MOVEMENT,
  124. "vi-find-prev-char",vifindprevchar,ZLE_MOVEMENT,
  125. "vi-find-prev-char-skip",vifindprevcharskip,ZLE_MOVEMENT,
  126. "vi-first-non-blank",vifirstnonblank,ZLE_MOVEMENT,
  127. "vi-forward-blank-word",viforwardblankword,ZLE_MOVEMENT,
  128. "vi-forward-blank-word-end",viforwardblankwordend,ZLE_MOVEMENT,
  129. "vi-forward-char",viforwardchar,ZLE_MOVEMENT,
  130. "vi-forward-word-end",viforwardwordend,ZLE_MOVEMENT,
  131. "vi-goto-column",vigotocolumn,ZLE_MOVEMENT,
  132. "vi-goto-mark",vigotomark,ZLE_MOVEMENT,
  133. "vi-goto-mark-line",vigotomarkline,ZLE_MOVEMENT,
  134. "vi-history-search-backward",vihistorysearchbackward,0,
  135. "vi-history-search-forward",vihistorysearchforward,0,
  136. "vi-indent",viindent,0,
  137. "vi-insert",viinsert,0,
  138. "vi-insert-bol",viinsertbol,0,
  139. "vi-join",vijoin,0,
  140. "vi-match-bracket",vimatchbracket,ZLE_MOVEMENT,
  141. "vi-open-line-above",viopenlineabove,0,
  142. "vi-open-line-below",viopenlinebelow,0,
  143. "vi-oper-swap-case",vioperswapcase,0,
  144. "vi-put-after",viputafter,ZLE_YANK,
  145. "vi-repeat-change",virepeatchange,0,
  146. "vi-repeat-find",virepeatfind,ZLE_MOVEMENT,
  147. "vi-repeat-search",virepeatsearch,ZLE_MOVEMENT,
  148. "vi-replace",vireplace,0,
  149. "vi-replace-chars",vireplacechars,0,
  150. "vi-rev-repeat-find",virevrepeatfind,ZLE_MOVEMENT,
  151. "vi-rev-repeat-search",virevrepeatsearch,ZLE_MOVEMENT,
  152. "vi-set-buffer",visetbuffer,0,
  153. "vi-set-mark",visetmark,0,
  154. "vi-substitute",visubstitute,0,
  155. "vi-swap-case",viswapcase,0,
  156. "vi-undo-change",undo,0,
  157. "vi-unindent",viunindent,0,
  158. "vi-yank",viyank,0,
  159. "vi-yank-eol",viyankeol,0,
  160. "which-command",processcmd,0,
  161. "yank",yank,ZLE_YANK|ZLE_NAMEDBUFFER,
  162. "yank-pop",yankpop,ZLE_YANK,
  163. "emacs-forward-word",emacsforwardword,ZLE_MOVEMENT,
  164. "emacs-backward-word",emacsbackwardword,ZLE_MOVEMENT,
  165. "kill-word",killword,ZLE_KILL,
  166. "vi-kill-line",vikillline,0,
  167. "vi-backward-kill-word",vibackwardkillword,0,
  168. "expand-cmd-path",expandcmdpath,0,
  169. "neg-argument",negargument,ZLE_NEGARG,
  170. "pound-insert",poundinsert,0,
  171. "vi-forward-word",viforwardword,ZLE_MOVEMENT,
  172. "vi-backward-word",vibackwardword,ZLE_MOVEMENT,
  173. "",NULL,0
  174. };
  175.  
  176. int emacsbind[256] = {
  177. /* ^@ */ z_setmarkcommand,
  178. /* ^A */ z_beginningofline,
  179. /* ^B */ z_backwardchar,
  180. /* ^C */ z_sendbreak,
  181. /* ^D */ z_deletecharorlist,
  182. /* ^E */ z_endofline,
  183. /* ^F */ z_forwardchar,
  184. /* ^G */ z_undefinedkey,
  185. /* ^H */ z_backwarddeletechar,
  186. /* ^I */ z_expandorcomplete,
  187. /* ^J */ z_acceptline,
  188. /* ^K */ z_killline,
  189. /* ^L */ z_clearscreen,
  190. /* ^M */ z_acceptline,
  191. /* ^N */ z_downlineorhistory,
  192. /* ^O */ z_acceptlineanddownhistory,
  193. /* ^P */ z_uplineorhistory,
  194. /* ^Q */ z_pushline,
  195. /* ^R */ z_historyincrementalsearchbackward,
  196. /* ^S */ z_historyincrementalsearchforward,
  197. /* ^T */ z_transposechars,
  198. /* ^U */ z_killwholeline,
  199. /* ^V */ z_quotedinsert,
  200. /* ^W */ z_backwardkillword,
  201. /* ^X */ z_sequenceleadin,
  202. /* ^Y */ z_yank,
  203. /* ^Z */ z_undefinedkey,
  204. /* ^[ */ z_sequenceleadin,
  205. /* ^\ */ z_undefinedkey,
  206. /* ^] */ z_undefinedkey,
  207. /* ^^ */ z_undefinedkey,
  208. /* ^_ */ z_undo,
  209. /*   */ z_selfinsert,
  210. /* ! */ z_selfinsert,
  211. /* " */ z_selfinsert,
  212. /* # */ z_selfinsert,
  213. /* $ */ z_selfinsert,
  214. /* % */ z_selfinsert,
  215. /* & */ z_selfinsert,
  216. /* ' */ z_selfinsert,
  217. /* ( */ z_selfinsert,
  218. /* ) */ z_selfinsert,
  219. /* * */ z_selfinsert,
  220. /* + */ z_selfinsert,
  221. /* , */ z_selfinsert,
  222. /* - */ z_selfinsert,
  223. /* . */ z_selfinsert,
  224. /* / */ z_selfinsert,
  225. /* 0 */ z_selfinsert,
  226. /* 1 */ z_selfinsert,
  227. /* 2 */ z_selfinsert,
  228. /* 3 */ z_selfinsert,
  229. /* 4 */ z_selfinsert,
  230. /* 5 */ z_selfinsert,
  231. /* 6 */ z_selfinsert,
  232. /* 7 */ z_selfinsert,
  233. /* 8 */ z_selfinsert,
  234. /* 9 */ z_selfinsert,
  235. /* : */ z_selfinsert,
  236. /* ; */ z_selfinsert,
  237. /* < */ z_selfinsert,
  238. /* = */ z_selfinsert,
  239. /* > */ z_selfinsert,
  240. /* ? */ z_selfinsert,
  241. /* @ */ z_selfinsert,
  242. /* A */ z_selfinsert,
  243. /* B */ z_selfinsert,
  244. /* C */ z_selfinsert,
  245. /* D */ z_selfinsert,
  246. /* E */ z_selfinsert,
  247. /* F */ z_selfinsert,
  248. /* G */ z_selfinsert,
  249. /* H */ z_selfinsert,
  250. /* I */ z_selfinsert,
  251. /* J */ z_selfinsert,
  252. /* K */ z_selfinsert,
  253. /* L */ z_selfinsert,
  254. /* M */ z_selfinsert,
  255. /* N */ z_selfinsert,
  256. /* O */ z_selfinsert,
  257. /* P */ z_selfinsert,
  258. /* Q */ z_selfinsert,
  259. /* R */ z_selfinsert,
  260. /* S */ z_selfinsert,
  261. /* T */ z_selfinsert,
  262. /* U */ z_selfinsert,
  263. /* V */ z_selfinsert,
  264. /* W */ z_selfinsert,
  265. /* X */ z_selfinsert,
  266. /* Y */ z_selfinsert,
  267. /* Z */ z_selfinsert,
  268. /* [ */ z_selfinsert,
  269. /* \ */ z_selfinsert,
  270. /* ] */ z_selfinsert,
  271. /* ^ */ z_selfinsert,
  272. /* _ */ z_selfinsert,
  273. /* ` */ z_selfinsert,
  274. /* a */ z_selfinsert,
  275. /* b */ z_selfinsert,
  276. /* c */ z_selfinsert,
  277. /* d */ z_selfinsert,
  278. /* e */ z_selfinsert,
  279. /* f */ z_selfinsert,
  280. /* g */ z_selfinsert,
  281. /* h */ z_selfinsert,
  282. /* i */ z_selfinsert,
  283. /* j */ z_selfinsert,
  284. /* k */ z_selfinsert,
  285. /* l */ z_selfinsert,
  286. /* m */ z_selfinsert,
  287. /* n */ z_selfinsert,
  288. /* o */ z_selfinsert,
  289. /* p */ z_selfinsert,
  290. /* q */ z_selfinsert,
  291. /* r */ z_selfinsert,
  292. /* s */ z_selfinsert,
  293. /* t */ z_selfinsert,
  294. /* u */ z_selfinsert,
  295. /* v */ z_selfinsert,
  296. /* w */ z_selfinsert,
  297. /* x */ z_selfinsert,
  298. /* y */ z_selfinsert,
  299. /* z */ z_selfinsert,
  300. /* { */ z_selfinsert,
  301. /* | */ z_selfinsert,
  302. /* } */ z_selfinsert,
  303. /* ~ */ z_selfinsert,
  304. /* ^? */ z_backwarddeletechar,
  305. /* M-^@ */ z_undefinedkey,
  306. /* M-^A */ z_undefinedkey,
  307. /* M-^B */ z_undefinedkey,
  308. /* M-^C */ z_undefinedkey,
  309. /* M-^D */ z_listchoices,
  310. /* M-^E */ z_undefinedkey,
  311. /* M-^F */ z_undefinedkey,
  312. /* M-^G */ z_undefinedkey,
  313. /* M-^H */ z_backwardkillword,
  314. /* M-^I */ z_selfinsertunmeta,
  315. /* M-^J */ z_selfinsertunmeta,
  316. /* M-^K */ z_undefinedkey,
  317. /* M-^L */ z_clearscreen,
  318. /* M-^M */ z_selfinsertunmeta,
  319. /* M-^N */ z_undefinedkey,
  320. /* M-^O */ z_undefinedkey,
  321. /* M-^P */ z_undefinedkey,
  322. /* M-^Q */ z_undefinedkey,
  323. /* M-^R */ z_undefinedkey,
  324. /* M-^S */ z_undefinedkey,
  325. /* M-^T */ z_undefinedkey,
  326. /* M-^U */ z_undefinedkey,
  327. /* M-^V */ z_undefinedkey,
  328. /* M-^W */ z_undefinedkey,
  329. /* M-^X */ z_undefinedkey,
  330. /* M-^Y */ z_undefinedkey,
  331. /* M-^Z */ z_undefinedkey,
  332. /* M-^[ */ z_undefinedkey,
  333. /* M-^\ */ z_undefinedkey,
  334. /* M-^] */ z_undefinedkey,
  335. /* M-^^ */ z_undefinedkey,
  336. /* M-^_ */ z_copyprevword,
  337. /* M-  */ z_expandhistory,
  338. /* M-! */ z_expandhistory,
  339. /* M-" */ z_quoteregion,
  340. /* M-# */ z_undefinedkey,
  341. /* M-$ */ z_spellword,
  342. /* M-% */ z_undefinedkey,
  343. /* M-& */ z_undefinedkey,
  344. /* M-' */ z_quoteline,
  345. /* M-( */ z_undefinedkey,
  346. /* M-) */ z_undefinedkey,
  347. /* M-* */ z_undefinedkey,
  348. /* M-+ */ z_undefinedkey,
  349. /* M-, */ z_undefinedkey,
  350. /* M-- */ z_negargument,
  351. /* M-. */ z_insertlastword,
  352. /* M-/ */ z_undefinedkey,
  353. /* M-0 */ z_digitargument,
  354. /* M-1 */ z_digitargument,
  355. /* M-2 */ z_digitargument,
  356. /* M-3 */ z_digitargument,
  357. /* M-4 */ z_digitargument,
  358. /* M-5 */ z_digitargument,
  359. /* M-6 */ z_digitargument,
  360. /* M-7 */ z_digitargument,
  361. /* M-8 */ z_digitargument,
  362. /* M-9 */ z_digitargument,
  363. /* M-: */ z_undefinedkey,
  364. /* M-; */ z_undefinedkey,
  365. /* M-< */ z_beginningofbufferorhistory,
  366. /* M-= */ z_undefinedkey,
  367. /* M-> */ z_endofbufferorhistory,
  368. /* M-? */ z_whichcommand,
  369. /* M-@ */ z_undefinedkey,
  370. /* M-A */ z_acceptandhold,
  371. /* M-B */ z_backwardword,
  372. /* M-C */ z_capitalizeword,
  373. /* M-D */ z_deleteword,
  374. /* M-E */ z_undefinedkey,
  375. /* M-F */ z_forwardword,
  376. /* M-G */ z_getline,
  377. /* M-H */ z_runhelp,
  378. /* M-I */ z_undefinedkey,
  379. /* M-J */ z_undefinedkey,
  380. /* M-K */ z_undefinedkey,
  381. /* M-L */ z_downcaseword,
  382. /* M-M */ z_undefinedkey,
  383. /* M-N */ z_historysearchforward,
  384. /* M-O */ z_undefinedkey,
  385. /* M-P */ z_historysearchbackward,
  386. /* M-Q */ z_pushline,
  387. /* M-R */ z_toggleliteralhistory,
  388. /* M-S */ z_spellword,
  389. /* M-T */ z_transposewords,
  390. /* M-U */ z_upcaseword,
  391. /* M-V */ z_undefinedkey,
  392. /* M-W */ z_copyregionaskill,
  393. /* M-X */ z_undefinedkey,
  394. /* M-Y */ z_undefinedkey,
  395. /* M-Z */ z_undefinedkey,
  396. /* M-[ */ z_sequenceleadin,
  397. /* M-\ */ z_undefinedkey,
  398. /* M-] */ z_undefinedkey,
  399. /* M-^ */ z_undefinedkey,
  400. /* M-_ */ z_insertlastword,
  401. /* M-` */ z_undefinedkey,
  402. /* M-a */ z_acceptandhold,
  403. /* M-b */ z_backwardword,
  404. /* M-c */ z_capitalizeword,
  405. /* M-d */ z_deleteword,
  406. /* M-e */ z_undefinedkey,
  407. /* M-f */ z_forwardword,
  408. /* M-g */ z_getline,
  409. /* M-h */ z_runhelp,
  410. /* M-i */ z_undefinedkey,
  411. /* M-j */ z_undefinedkey,
  412. /* M-k */ z_undefinedkey,
  413. /* M-l */ z_downcaseword,
  414. /* M-m */ z_undefinedkey,
  415. /* M-n */ z_historysearchforward,
  416. /* M-o */ z_undefinedkey,
  417. /* M-p */ z_historysearchbackward,
  418. /* M-q */ z_pushline,
  419. /* M-r */ z_toggleliteralhistory,
  420. /* M-s */ z_spellword,
  421. /* M-t */ z_transposewords,
  422. /* M-u */ z_upcaseword,
  423. /* M-v */ z_undefinedkey,
  424. /* M-w */ z_copyregionaskill,
  425. /* M-x */ z_executenamedcmd,
  426. /* M-y */ z_yankpop,
  427. /* M-z */ z_executelastnamedcmd,
  428. /* M-{ */ z_undefinedkey,
  429. /* M-| */ z_vigotocolumn,
  430. /* M-} */ z_undefinedkey,
  431. /* M-~ */ z_undefinedkey,
  432. /* M-^? */ z_backwardkillword,
  433. };
  434.  
  435. int viinsbind[32] = {
  436. /* ^@ */ z_undefinedkey,
  437. /* ^A */ z_selfinsert,
  438. /* ^B */ z_selfinsert,
  439. /* ^C */ z_sendbreak,
  440. /* ^D */ z_listchoices,
  441. /* ^E */ z_selfinsert,
  442. /* ^F */ z_selfinsert,
  443. /* ^G */ z_selfinsert,
  444. /* ^H */ z_vibackwarddeletechar,
  445. /* ^I */ z_expandorcomplete,
  446. /* ^J */ z_acceptline,
  447. /* ^K */ z_killline,
  448. /* ^L */ z_clearscreen,
  449. /* ^M */ z_acceptline,
  450. /* ^N */ z_selfinsert,
  451. /* ^O */ z_selfinsert,
  452. /* ^P */ z_selfinsert,
  453. /* ^Q */ z_selfinsert,
  454. /* ^R */ z_redisplay,
  455. /* ^S */ z_selfinsert,
  456. /* ^T */ z_selfinsert,
  457. /* ^U */ z_vikillline,
  458. /* ^V */ z_quotedinsert,
  459. /* ^W */ z_vibackwardkillword,
  460. /* ^X */ z_selfinsert,
  461. /* ^Y */ z_selfinsert,
  462. /* ^Z */ z_selfinsert,
  463. /* ^[ */ z_vicmdmode,
  464. /* ^\ */ z_selfinsert,
  465. /* ^] */ z_selfinsert,
  466. /* ^^ */ z_selfinsert,
  467. /* ^_ */ z_selfinsert,
  468. };
  469.  
  470. int vicmdbind[128] = {
  471. /* ^@ */ z_undefinedkey,
  472. /* ^A */ z_beginningofline,
  473. /* ^B */ z_undefinedkey,
  474. /* ^C */ z_sendbreak,
  475. /* ^D */ z_listchoices,
  476. /* ^E */ z_endofline,
  477. /* ^F */ z_undefinedkey,
  478. /* ^G */ z_listexpand,
  479. /* ^H */ z_backwarddeletechar,
  480. /* ^I */ z_completeword,
  481. /* ^J */ z_acceptline,
  482. /* ^K */ z_killline,
  483. /* ^L */ z_clearscreen,
  484. /* ^M */ z_acceptline,
  485. /* ^N */ z_downhistory,
  486. /* ^O */ z_undefinedkey,
  487. /* ^P */ z_uphistory,
  488. /* ^Q */ z_undefinedkey,
  489. /* ^R */ z_redisplay,
  490. /* ^S */ z_undefinedkey,
  491. /* ^T */ z_undefinedkey,
  492. /* ^U */ z_killbuffer,
  493. /* ^V */ z_undefinedkey,
  494. /* ^W */ z_backwardkillword,
  495. /* ^X */ z_expandorcomplete,
  496. /* ^Y */ z_undefinedkey,
  497. /* ^Z */ z_undefinedkey,
  498. /* ^[ */ z_sequenceleadin,
  499. /* ^\ */ z_undefinedkey,
  500. /* ^] */ z_undefinedkey,
  501. /* ^^ */ z_undefinedkey,
  502. /* ^_ */ z_undefinedkey,
  503. /*   */ z_viforwardchar,
  504. /* ! */ z_undefinedkey,
  505. /* " */ z_visetbuffer,
  506. /* # */ z_poundinsert,
  507. /* $ */ z_viendofline,
  508. /* % */ z_vimatchbracket,
  509. /* & */ z_undefinedkey,
  510. /* ' */ z_vigotomarkline,
  511. /* ( */ z_undefinedkey,
  512. /* ) */ z_undefinedkey,
  513. /* * */ z_undefinedkey,
  514. /* + */ z_downlineorhistory,
  515. /* , */ z_virevrepeatfind,
  516. /* - */ z_uplineorhistory,
  517. /* . */ z_virepeatchange,
  518. /* / */ z_vihistorysearchbackward,
  519. /* 0 */ z_vidigitorbeginningofline,
  520. /* 1 */ z_digitargument,
  521. /* 2 */ z_digitargument,
  522. /* 3 */ z_digitargument,
  523. /* 4 */ z_digitargument,
  524. /* 5 */ z_digitargument,
  525. /* 6 */ z_digitargument,
  526. /* 7 */ z_digitargument,
  527. /* 8 */ z_digitargument,
  528. /* 9 */ z_digitargument,
  529. /* : */ z_undefinedkey,
  530. /* ; */ z_virepeatfind,
  531. /* < */ z_viunindent,
  532. /* = */ z_listchoices,
  533. /* > */ z_viindent,
  534. /* ? */ z_vihistorysearchforward,
  535. /* @ */ z_undefinedkey,
  536. /* A */ z_viaddeol,
  537. /* B */ z_vibackwardblankword,
  538. /* C */ z_vichangeeol,
  539. /* D */ z_killline,
  540. /* E */ z_viforwardblankwordend,
  541. /* F */ z_vifindprevchar,
  542. /* G */ z_vifetchhistory,
  543. /* H */ z_vicapslockpanic,
  544. /* I */ z_viinsertbol,
  545. /* J */ z_historysearchforward,
  546. /* K */ z_historysearchbackward,
  547. /* L */ z_undefinedkey,
  548. /* M */ z_undefinedkey,
  549. /* N */ z_virevrepeatsearch,
  550. /* O */ z_viopenlineabove,
  551. /* P */ z_yank,
  552. /* Q */ z_undefinedkey,
  553. /* R */ z_vireplace,
  554. /* S */ z_vichangewholeline,
  555. /* T */ z_vifindprevcharskip,
  556. /* U */ z_undefinedkey,
  557. /* V */ z_undefinedkey,
  558. /* W */ z_viforwardblankword,
  559. /* X */ z_vibackwarddeletechar,
  560. /* Y */ z_viyankeol,
  561. /* Z */ z_undefinedkey,
  562. /* [ */ z_undefinedkey,
  563. /* \ */ z_completeword,
  564. /* ] */ z_undefinedkey,
  565. /* ^ */ z_vifirstnonblank,
  566. /* _ */ z_undefinedkey,
  567. /* ` */ z_vigotomark,
  568. /* a */ z_viaddnext,
  569. /* b */ z_vibackwardword,
  570. /* c */ z_vichange,
  571. /* d */ z_videlete,
  572. /* e */ z_viforwardwordend,
  573. /* f */ z_vifindnextchar,
  574. /* g */ z_undefinedkey,
  575. /* h */ z_vibackwardchar,
  576. /* i */ z_viinsert,
  577. /* j */ z_downlineorhistory,
  578. /* k */ z_uplineorhistory,
  579. /* l */ z_viforwardchar,
  580. /* m */ z_visetmark,
  581. /* n */ z_virepeatsearch,
  582. /* o */ z_viopenlinebelow,
  583. /* p */ z_viputafter,
  584. /* q */ z_undefinedkey,
  585. /* r */ z_vireplacechars,
  586. /* s */ z_visubstitute,
  587. /* t */ z_vifindnextcharskip,
  588. /* u */ z_viundochange,
  589. /* v */ z_undefinedkey,
  590. /* w */ z_viforwardword,
  591. /* x */ z_videletechar,
  592. /* y */ z_viyank,
  593. /* z */ z_undefinedkey,
  594. /* { */ z_undefinedkey,
  595. /* | */ z_vigotocolumn,
  596. /* } */ z_undefinedkey,
  597. /* ~ */ z_viswapcase,
  598. /* ^? */ z_backwarddeletechar,
  599. };
  600.  
  601.