home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / HILFEN / 4DOS / 4MAP / MAPDEF < prev    next >
Text File  |  1993-12-01  |  2KB  |  80 lines

  1. /*
  2.     The follwing maps define a command line editor modeled after
  3.     the editor 'vi.' There are 3 maps: command, insert, and edit.
  4.     The command map is always the one invoked at the start of a
  5.     command line editing session.  For an explanation of the format
  6.     of a keymap and the functions of this editor, please consult
  7.     the file 4MAP.DOC.
  8. */
  9.     
  10. /* command mode */
  11. command = {
  12.     ctrl_b,        =>        f8;
  13.     ctrl_d,        =>        f9; 
  14.     ctrl_w,        =>        ctrl_l;    
  15.     ctrl_u,        =>        esc; 
  16.     ctrl_k,     =>        up;     /* history */
  17.     ctrl_j,     =>        down;      /* history */
  18.     esc,         =>        changemap edit, `c:\map\on.exe`;
  19.     ins,         =>        changemap insert, ins, `c:\map\ion.exe`;
  20. }
  21.     
  22.  
  23. /* insert mode */
  24. insert = {
  25.     ctrl_b,        =>        f8; 
  26.     ctrl_d,        =>        f9; 
  27.     ctrl_f,        =>        f9; 
  28.     ctrl_w,        =>        ctrl_l;    
  29.     ctrl_u,        =>        esc;
  30.     cr,         =>        changemap command, ins, cr;
  31.     ctrl_c,     =>        changemap command, ins, ctrl_c; 
  32.     esc,         =>        changemap edit, ins,
  33.                     `c:\map\on.exe`;
  34.     ins,         =>        changemap command, ins,
  35.                     `c:\map\ioff.exe`,;
  36. }
  37.     
  38.  
  39. /* edit mode */
  40. edit = {
  41.     d, d,         =>        esc; 
  42.     d, w,         =>        ctrl_r; 
  43.     f        =>        `c:\map\f.exe`;
  44.     h,         =>        left; 
  45.     l,         =>        right; 
  46.     sp,         =>        right; 
  47.     k,         =>        up;      /* history */
  48.     j,         =>        down;      /* history */
  49.     w,         =>        ctrl_right; 
  50.     b,         =>        ctrl_left; 
  51.     x,         =>        del; 
  52.     r        =>        `c:\map\r.exe`;
  53.     D,         =>        ctrl_end, left; 
  54.     \0,         =>        home; 
  55.     $,         =>        end, left; 
  56.     ctrl_b,        =>        f8; 
  57.     ctrl_d,        =>        f9; 
  58.     ctrl_f,        =>        f9; 
  59.     ctrl_h,     =>        left; 
  60.     ctrl_k,     =>        up; 
  61.     ctrl_j,     =>        down;      /* history */
  62.     ctrl_w,        =>        ctrl_l;    
  63.     ctrl_u,        =>        esc; 
  64.     up,         =>        up; 
  65.     down,         =>        down; 
  66.     right,         =>        right; 
  67.     left,         =>        left; 
  68.     del,         =>        del; 
  69.     home,         =>        home; 
  70.     end,         =>        end; 
  71.     cr,         =>        changemap command, cr,`c:\map\off.exe`;
  72.     ctrl_c,     =>        changemap command, ctrl_c; 
  73.     esc,         =>        changemap command, `c:\map\off.exe`;
  74.     i,         =>        changemap insert, ins, `c:\map\ion.exe`;
  75.     a,         =>        changemap insert, right, ins,
  76.                     `c:\map\ion.exe`;
  77.     ins,         =>        changemap insert, ins, `c:\map\ion.exe`;
  78.     *         =>        ;
  79. }
  80.