home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 224b.lha / vi.doc < prev   
Text File  |  1989-04-08  |  2KB  |  95 lines

  1. Forth block-oriented vi-like editor
  2. -----------------------------------
  3.  
  4. 1 vi    enter vi on screen 1
  5.  
  6. v        reenter vi on whatever screen you were last in
  7.  
  8. vw        after an error when loading, enter vi with the cursor ON the
  9.         word that caused the problem
  10.  
  11.  
  12. commands in command mode:
  13.  
  14. space    move forward a char in current line
  15. z        zap - delete current screen
  16. ^e        go to end of line
  17. ^x        
  18. w        move back a word
  19. 0-9        enter an additional digit for number of times to execute
  20.             many of the commands
  21. b        move back a word
  22. c        change one character at current position
  23. d        first character of a delete sequence, see below
  24. e        move to the last line of the current screen
  25. f        find the next occurence in the current screen of the
  26.             next character typed (wraps)
  27. g        go to 'm'arked (alternate) screen
  28. i        enter insert mode
  29. m        mark the current screen at the alternate screen
  30. n        move forward one (n) screens   (next)
  31. o        make current line a blank line, scrolling the rest down (open)
  32. p        move backwards one (n) screens  (previous)
  33. q        exit vi, saving changes (quit)
  34. r        enter replace mode
  35. s        go to screen one (n)  (screen)
  36. t        go to top line of current screen
  37. u        empty-buffers, undoing all since last flush (undo)
  38. w        move forward a word
  39. x        delete character at cursor
  40. h        cursor back a character
  41. j        cursor down a line
  42. k        cursor up a line
  43. l        cursor forward a character
  44. \        switch to alternate screen, making this one alternate
  45. :        enter other editor
  46. ^h        cursor back a char
  47. ^j        cursor down a line
  48. ^k        cursor up a line
  49. ^l        cursor forward a char
  50. ^m        newline
  51. ^u        forward a char
  52. ^r        redraw screen
  53. $        go to end of line
  54. ^        go to front of line
  55. @        load current screen
  56.  
  57.  
  58. In replace mode,
  59.  
  60. ^a        upper-case lock
  61. ^b        lower-case enable
  62. ^e        go to end of line
  63. ^h        cursor back a char
  64. ^j        cursor down a char
  65. ^[        escape out of replace mode
  66. ^r        redraw screen
  67. ^x        delete character at cursor
  68. ^v        quote next character (useful if it's an escape, etc)
  69. ^u        cursor forward a char
  70.  
  71. In delete mode,
  72.  
  73. d        delete line
  74. c        delete character
  75. w        delete word
  76. f
  77. t
  78. e
  79. g
  80. b
  81. w
  82. h
  83. j
  84. k
  85.  
  86. ^h
  87. j
  88. k
  89. l
  90. m
  91. $
  92. ^
  93.  
  94.  
  95.