home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
useful
/
util
/
edit
/
vim
/
readme3.0
< prev
next >
Wrap
Text File
|
1994-08-14
|
34KB
|
968 lines
This file contains an overview of changes from Vim version 2.0 to 3.0
The changes new in version 2.x are marked with (2.x).
Some changes from Robert Webb are marked with (Webb 2.5).
Big improvements
================
Added multiple windows and multiple buffers! See doc/windows.doc for an
overview of the new and changed commands.
Added hidden buffers. 'hidden' option can be set to create a hidden buffer
instead of abandoning a buffer. Added ":bnext", ":bprev", ":bNext" and
"brewind" commands to go to other buffer. Added ":buffers" command to show all
buffers. Added ":bmod" command: go to next modified buffer. Added ":bdelete"
command: delete buffer from list. (2.4)
Added a lot of commands to manipulate buffers:
- Added commands to open a window for all arguments, all active buffers, all
buffers: ":all", ":sall", ":unhide", ":sunhide", ":ball", ":sball". (2.5)
- Added ":bunload" command: Unload buffer from memory. The ":bdelete" command
does the same plus deletes the buffer from the buffer list. (2.5)
- Arguments from command line are always put in buffer list. (2.5)
- Added ":sbuffer", ":sbnext", ":sbNext", ":sbprevious", ":sbmodified",
":sbrewind", ":sblast": split window and go to specified buffer. (2.5)
- Added ":wNext" and ":wprevious": write file and go back in argument list.
(2.5)
- Added ":wqall" and ":xall", write all change buffers and exit. (2.5)
When all changes have been undone the buffer is not considered to be changed.
Vim can then be exit with ":q" instead of ":q!".
Added simple "more" facility to listings. Can be switched on/off with the
'more' option.
Added Webb's code for command line completion, with "#ifdef WEBB_COMPLETE".
(Webb 2.5)
Changes incompatible with previous versions
===========================================
Command lines starting with '#' are no longer considered to be comments. '#'
is a synonym for :number.
Embedded newline characters in command lines are considered to be the end of a
command line. To use newline characters in a command, precede it with CTRL-V
(you have to type CTRL-V two times to get one).
The ":files" command is now the same as the ":buffers" command. The file list
and the buffer list have been integrated into one list. The buffer number and
the file number are equal and will not change during an editing session. (2.5)
":buffer" does not accept a file name but a buffer number. Use ":set hid" and
":e file". (2.5)
Made 'laststatus' a numeric option. It says when to use a status line for last
window: 0 is never, 1 if more than one window, 2 is always. (2.5)
Replaced CTRL-P in insert mode by CTRL-B (for Backwards). CTRL-P can now be
used for keyword completion. (2.5)
The search pattern for the :tag command does not replace the search pattern
that is remembered for the next search command. (Webb 2.5)
Use CTRL-X instead of CTRL-S (subtract). Do not switch off xon/xoff in unix.c.
Fixes problems with CTRL-S on some terminals. (2.4)
Using >> will not shift lines that start with '#' when 'si' is set. (Webb 2.5)
"\?" in expressions (match exactly one time) replaced by "\=", makes "?\?\?"
work.
The commands "*" and "#" only search for whole words, using "\<ident\>". (Webb
2.5)
When doing a ":ta" command after CTRL-T, the tag stack is truncated, rather
than keeping old tags at the top. Now repeating CTRL-T will get you back to
the first ":ta" and stop there. (Webb 2.5)
Made argument list global, not local to each window. ":quit" works when there
are more files to edit, except when there is only one window. (2.4)
The ".vim" file is not used for recovery with the "-r" argument. Use
"Vim -s file.vim file" instead.
First page of swap file has changed, cannot recover files from older versions.
The swap file can now be recognized by its start: "b0VIM 3.0", where 3.0 is
the version number. (3.0)
New commands and functionality
==============================
Added insert-mode keyword completion commands CTRL-P and CTRL-N inside #ifdef
WEBB_KEYWORD_COMPL. (Webb 2.5)
Updated error messages for keyword completion in insert mode. (2.7)
Added "]f" command: Edit file whose name is under the cursor. Added CTRL-W
CTRL-F and CTRL-W f: split window and edit file whose name is
under the cursor. (Webb 2.5)
Changed "]f" into "gf". Mnemonic: goto file. (2.7)
Put "]f" and "[f" back in, they do the same as "gf". For people that have the
'g' key remapped. (2.9)
Added CTRL-W CTRL-R, CTRL-W r, CTRL-W R: rotate windows upwards/downwards
(2.5)
Added CTRL-W CTRL-X and CTRL-W x: exchange current window with next one. (Webb
2.5)
Added window title for xterm.
Added termcap options 't_so' (standout) and 't_se' (standout end). Use 't_so'
and 't_se' if inversion is not possible and for highlighting directories.
At some places standout mode is used instead of inversion. (Webb 2.5)
Do wait_return() message and the message used when asked for 'y' or 'n' is now
in standout mode. (Webb 2.5)
Added termcap option 't_ms' (save to move cursor in reverse mode). Makes
inversion work on some terminals.
Added ":mode" command. Under Amiga and Unix this only re-sets the screen
size. With MSDOS it is possible to switch screen mode.
Now also "%<", "#31<", alternate file name without extension.
Added ':' register. Contains last command line. "@:" repeats last command
line.
Added ":exit" as synonym for ":xit". More logical, isn't it?
Added ":swapname". Show swap file name for current buffer.
":args" can have arguments for redefining the argument list, just like
":next". (2.5)
When the command for the tag is a search and it fails, try searching for the
tag itself with pattern "^tag(" and "^[#a-zA-Z_].*tag(". (Webb 2.5)
"%" will now go to matching comment delimiters (/ *, * /) and find matches for
the preprocessing lines #ifdef, #else, #elif and #endif. (Webb 2.5)
Using '%' on #if/#else/#endif makes the movement linewise. (2.7)
"[p", "[P", "]p" and "]P" work like "p" and "P" but adjust the indent of the
putted lines to match the context. (Webb 2.5)
Changed put indented: "[p" and "]p" is "]p" (put forward), "[P" and "]P" is
"[p" (put backward). (2.7)
"[(" and "[{" may be used to go to the (count'th) last unclosed ( or {.
"])" and "]}" may be used to jump to the (count'th) next unopen) or }. Can be
used to jump to the start/end of the innermost c-code block (Webb 2.5)
Added count to ":", "count:" translates into ":.,.+(count - 1)". (Webb 2.5)
Added ":sleep" command. (2.4)
"g" is to be used for a new series of commands. First one: "gs" sleeps for a
moment (Mnemonic: Go to Sleep). Give count for that many seconds. Can be
interrupted with CTRL-C. (2.5)
Added ":last" and ":slast", go to last argument. (2.5)
Added ":argument [N]" and ":sargument [N]", go to Nth argument. (2.5)
Added ":blast" and ":sblast", go to last buffer. (2.5)
Added "-o[N]" command line argument: Open N windows on startup. (2.5)
Added ":only", CTRL-W CTRL-O, CTRL-O o: Close all but current window. (2.5)
Added default digraph: <space> <char> is meta-char. (2.4)
Digraphs with CTRL-H do not make meta characters. Use CTRL-K <space>
<char>. Fixes problem with abbreviations when 'digraph' set. (2.5)
Don't allow digraphs with ESC. Hitting ESC in digraph exits insert mode. (2.5)
Added ":snext", ":sNext", ":sprev" and ":srewind" commands, split window and
go to next/previous file in argument list. (2.4)
Added CTRL-W CTRL-P and CTRL-W p, jump to previous window. (2.4)
Added "zz", "zt" and "zb", same as "z.", "zCR" and "z-" but without moving the
cursor to the start of the line. (2.4)
":bdelete" and ":bunload" accept a range of buffers and a list of buffer
numbers. (2.7)
Improvements
============
Cursor up/down in insert mode keep the same column. Also for "CTRL-O j" and
the like.
Added column number to :file.
Improved listing of ":set" command. The columns are now sorted top to bottom.
Long string options are listed at the end (idea comes from nvi).
Renamed directory "macros" to "tools". Moved doc/vim132 to tools/vim132.
"ref" program added for "K" command (in the tools directory. Does simple
spelling check.
Vim arguments "-c command" and "+command" are now options that can be given
anywhere on the command line before the f