home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / util / vim-3.0.lha / Vim / doc / vim.hlp < prev    next >
Text File  |  1994-08-14  |  31KB  |  572 lines

  1.                      VIM help file index
  2.  
  3. RETURN quit help                VIM stands for Vi IMproved.
  4.  SPACE  one page forward        Most of VIM was made by Bram Moolenaar.
  5.      a  go to this index
  6.      b  one page backward
  7.  
  8. c   left-right and up-down motions   q   options i-n
  9. d   word and text object motions     r   options p-s
  10. e   pattern searches                 s   options s-t
  11. f   various motions; using tags      t   options t-y
  12. g   scrolling                        u   undo; shell; quickfix; various
  13. h   inserting text; digraphs         v   command line editing
  14. i   insert mode                      w   Ex ranges; Ex special characters
  15. j   changing text                    x   editing files
  16. k   complex changes                  y   using the file list
  17. l   deleting, copying, moving text   z   writing and quitting
  18. m   repeating commands               A   starting VIM
  19. n   key mapping; abbreviations       B   multi window functions
  20. o   option commands, options a-c     C   buffer list functions
  21. p   options d-h
  22.  
  23. Read "reference.doc" for a more complete explanation.
  24. Left-right motions
  25. N  h            left (same as CTRL-H, BS and cursor-left key)
  26. N  l            right (same as SPACE and cursor-right key)
  27.    0            to first character in the line
  28.    ^            to first non-blank character in the line
  29. N  $            to the last character in the line (N-1 lines lower)
  30. N  |            to column N
  31. N  f<char>      to the Nth occurrence of <char> to the right
  32. N  F<char>      to the Nth occurrence of <char> to the left
  33. N  t<char>      till before the Nth occurrence of <char> to the right
  34. N  T<char>      till before the Nth occurrence of <char> to the left
  35. N  ;            repeat the last f, F, t or T N times
  36. N  ,            repeat the last f, F, t or T N times in opposite direction
  37.  
  38. Up-down motions
  39. N  k            up (same as CTRL-P and cursor-up key)
  40. N  j            down (same as CTRL-J, CTRL-N, LF and cursor-down key)
  41. N  -            up, on the first non-blank character
  42. N  +            down, on the first non-blank char. (same as CTRL-M and CR)
  43. N  _            N - 1 lines down, on the first non-blank character
  44. N  G            goto line N (default last line), on the first non-blank char.
  45. N  %            goto line N percentage down in the file.
  46. Word motions
  47. N  w            N words forward
  48. N  W            N blank-separated words forward
  49. N  e            forward to the end of the Nth word
  50. N  E            forward to the end of the Nth blank-separated word
  51. N  b            N words backward
  52. N  B            N blank-separated words backward
  53.  
  54. Text object motions
  55. N  )            N sentences forward
  56. N  (            N sentences backward
  57. N  }            N paragraphs forward
  58. N  {            N paragraphs backward
  59. N  ]]           N sections forward
  60. N  [[           N sections backward
  61. N  ][           N sections (starting with a <}>) forward
  62. N  []           N sections (starting with a <}>) backward
  63. N  [(  [{       N times back to unclosed <(> or <{>
  64. N  ])  ]}       N times forward to unclosed <(> or <{>
  65. Pattern searches
  66. N  /{pattern}[/]        search forward for the Nth occurrence of {pattern}
  67. N  ?{pattern}[?]        search backward for the Nth occurrence of {pattern}
  68. N  /                    repeat last search, in the forward direction
  69. N  ?                    repeat last search, in the backward direction
  70. N  n                    repeat last search
  71. N  N                    repeat last search, in opposite direction
  72. N  *                    search forward for the ident under the cursor
  73. N  #                    search backward for the ident under the cursor
  74.  
  75. special characters in search patterns      magic      nomagic
  76.            matches any single character      .            \.
  77.                   matches start of line      ^            ^
  78.                     matches end of line      $            $
  79.                   matches start of word      \<           \<
  80.                     matches end of word      \>           \>
  81.    matches a single char from the range      [a-z]        \[a-z]
  82.  matches a single char not in the range      [^a-z]       \[^a-z]
  83. matches 0 or more of the preceding atom      *            \*
  84. matches 1 or more of the preceding atom      \+           \+
  85.    matches 0 or 1 of the preceding atom      \=           \=
  86.                  separates two branches      \|           \|
  87.            group a pattern into an atom      \(\)         \(\)
  88. Various motions
  89.    m<a-zA-Z>    mark current position with mark <a-zA-Z>
  90.    `<a-zA-Z>    go to mark <a-zA-Z>
  91.    ``           go to the position before the last jump
  92.    `[ or `]     go to the start or end of the previously operated or put text
  93.    '<a-zA-Z[]'> same as `, but on the first non-blank in the line
  94. :marks          print the active marks
  95. N  CTRL-O       go to N older position in jump list
  96. N  CTRL-I       go to N newer position in jump list
  97. :jumps          print the jump list
  98.    %            find the next brace, bracket, comment or #if/#else/#endif in
  99.                 this line and go to its match
  100. N  H            go to the Nth line in the window, on the first non-blank
  101.    M            go to the middle line in the window, on the first non-blank
  102. N  L            go to the Nth line from the bottom, on the first non-blank
  103.  
  104. Using tags
  105. :ta[g][!] {tag}         Jump to tag {tag}, unless changes have been made
  106.    CTRL-]               Jump to the tag under cursor, unless changes made
  107. N  CTRL-T               Jump to N older tag in tag list
  108. :[count]po[p][!]        Jump to [count] older tag in tag list
  109. :[count]ta[g][!]        Jump to [count] newer tag in tag list
  110. :tags                   Print tag list
  111. Scrolling
  112. N  CTRL-E       window N lines downwards (N lines Extra)
  113. N  CTRL-D       window N lines Downwards (default half a window)
  114. N  CTRL-F       window N pages Forwards (downwards)
  115. N  CTRL-Y       window N lines upwards
  116. N  CTRL-U       window N lines Upwards (default half a window)
  117. N  CTRL-B       window N pages Backwards (upwards)
  118.    z<CR> or zt  redraw, current line at top of window
  119.    z.    or zz  redraw, current line at center of window
  120.    z-    or zb  redraw, current line at bottom of window
  121. Inserting text
  122. N  a            append text after the cursor (N times)
  123. N  A            append text at the end of the line (N times)
  124. N  i            insert text before the cursor (N times)
  125. N  I            insert text before the first non-blank in the line (N times)
  126. N  o            open a new line below the current line, append text (N times)
  127. N  O            open a new line above the current line, append text (N times)
  128.  
  129. Special inserts
  130. :r [file]       insert the contents of [file] below the cursor
  131. :r!{command}    insert the standard output of {command} below the cursor
  132.  
  133. Digraphs
  134. :dig[raphs]     show current list of digraphs
  135. :dig[raphs] {char1}{char2} {number} ...
  136.                 add digraph(s) to the list
  137. char              action in insert mode
  138. CTRL-[ or <ESC>   end insert or replace mode, back to command mode
  139. CTRL-A            insert previously inserted text
  140. CTRL-@            insert previously inserted text and stop insert
  141. CTRL-R <0-9a-z%:> insert contents of register <0-9a-z%:>
  142. CTRL-J or <LF> or CTRL-M or <CR>   begin new line
  143. CTRL-K {char1} {char2}  enter digraph
  144. CTRL-E / CTRL-Y   insert the character which is below/above the cursor
  145. CTRL-V            insert character literally, or enter decimal byte value
  146. CTRL-N / CTRL-P   insert next/previous match of identifier before the cursor
  147. CTRL-H or <BS> or <DEL> delete the character before the cursor
  148. CTRL-W            delete word before the cursor
  149. CTRL-U            delete all entered characters in the current line
  150. CTRL-T            insert one shiftwidth of indent in the current line
  151. CTRL-D            delete one shiftwidth of indent in the current line
  152. 0 CTRL-D or ^ CTRL-D    delete all indent in the current line
  153. {char1} <BS> {char2}    enter digraph if 'dg' option set
  154. CTRL-B            toggle 'revins' (reverse insert) option
  155.         keys that stop insert, do something and get back to insert:
  156. cursor keys       move cursor left/right/up/down
  157. shift-up/down     one screenfull backward/forward
  158. shift-left/right  one word left/right
  159. CTRL-O {command}  execute {command}
  160. Chang