home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d591 / vim.lha / Vim / difference.doc < prev    next >
Text File  |  1992-01-31  |  4KB  |  81 lines

  1. differences between VIM and vi
  2.  
  3. (+ are features, - means that it should be modified in a next version of vim)
  4.  
  5. In command mode:
  6. + The command characters are shown in the last line of the screen.
  7. + multi level undo! Set option 'undolines' to the number of changes to be
  8.   remembered. 'u' goes backward in time, 'ctrl-R' goes forward again.
  9.   Set 'undolines' to 0 for old-style undo.
  10. + U still works after having moved off of the last changed line and after u.
  11. + Unlimited line length (although you cannot see lines larger than the screen).
  12. + Nulls in the file are replaced by newlines internally. This allows editing
  13.   of binary files. When searching for nulls, use a newline in the search pattern.
  14. + = is an operator to filter lines through indent (vi: lisp stuff).
  15. + ][ goes to the next ending of a C function ('}' in column 1).
  16. + [] goes to the previous ending of a C function ('}' in column 1).
  17. + * searches forward for the identifier under the cursor, # backward
  18. + CTRL-^ accepts a count for the alternate filename list
  19. + Search patterns include more wildcards ('\(', '\)', '\|', '\+', '\?').
  20. + searches can find the end of a match and have a character offset.
  21. + ~ accepts a count. If option "tildeop" has been set, ~ is an operator (must
  22.   be followed by a movement command).
  23. + cw can be used to change white space formed by several characters.
  24. + o and O accept a count for repeating the insert (vi: clear part of display).
  25. + v<c> starts recording typed characters into named buffer 'c' (append to the
  26.   buffer if upper case). A subsequent 'v' stops recording. The buffer can then be
  27.   executed with the '@<c>' command. This is very useful to repeat a complex
  28.   action.
  29.  
  30. In insert mode:
  31. + the backspace key can be used just like ^D to remove auto-indents
  32. + ^D can be used like backspace when not on an indent
  33. + ^T inserts a TAB when not on an indent
  34. + you can backspace and ^W over newlines!
  35. + when the smartindent (si) option is set, C programs will be
  36.   better auto-indented.
  37. + ^R and ^E can be used to copy a character from above/below the current
  38.   cursor position
  39. + wrapmargin replaced by the far more useful textwidth option
  40.  
  41. In Ex command line mode and when entering search patterns:
  42. + the right/left cursor keys can be used to move forward/backward one character
  43.   in the entered text.
  44. + the shifted right/left cursor keys can be used to move forward/backward one
  45.   word in the entered text.
  46. + the up/down cursor keys can be used to recall previous command lines.
  47. + <ESC> can be typed after a (incomplete) file name wildcard; the wildcard
  48.   will be expanded (requires arp.library).
  49. + ^D can be typed after a (incomplete) file name wildcard; all matching files
  50.   will be listed (requires arp.library).
  51.  
  52. Ex commands:
  53. + :dis command shows the contents of the yank buffers
  54. + :files command shows the list of alternate filenames
  55. + #N means Nth alternate filename in the list
  56. - some Ex commands not supported yet
  57. - flags after command not supported (no plans to include it)
  58. + QuickFix commands included, almost the same as with Manx's Z editor.
  59.  
  60. general:
  61. + If vim is started without an interactive window for output, a window is
  62.   opened (and :sh still works).
  63. + The version number of vim and the current file name are shown in the
  64.   title bar of the window.
  65. + When vim is started with "-v" (View) then readonly mode is used
  66. + When vim is started with "-s scriptfile", the characters read from
  67.   "scriptfile" are treated as if you typed them. If end of file is reached
  68.   before the editor exits, further characters are read from the console.
  69. + The -w option can be used to record all typed characters in a script file.
  70.   This file can then be used to redo the editing, possibly on another file or
  71.   after changing some commands in the script file.
  72. + Wildcards in file names are expanded (requires arp.library).
  73. + If the "backup" option is set before a file is overwritten, a backup file
  74.   (.bak) is left behind.
  75. + Option settings are read from the first and last few lines of the file. Option
  76.   'modelines' determines how many lines are tried (default is 5).
  77. - All text is kept in memory. Available memory limits the file size (and other
  78.   things such as undo).
  79. - Recovery after a crash has a smaller change for success, because there is no
  80.   temporary file.
  81.