Rate this post
 *version5.txt* For Vim version 5.4. Last change: 1999 Jul 25 VIM REFERENCE MANUAL by Bram Moolenaar Welcome to Vim Version 5.0! This document lists the differences between Vim 4.x and Vim 5.0.
Although 5.0 is mentioned here, this is also for version 5.1, 5.2, etc..
See |vi_diff.txt| for an overview of differences between Vi and Vim 5.0.
See |version4.txt| for differences between Vim 3.0 and Vim 4.0. INCOMPATIBLE:
Default value for 'compatible' changed      |cp-default|
Text formatting command "Q" changed      |Q-command-changed|
Command-line arguments changed |cmdline-changed|
Autocommands are kept |autocmds-kept|
Use of 'hidden' changed |hidden-changed|
Text object commands changed |text-objects-changed|
X-Windows Resources removed |x-resources|
Use of $VIM |$VIM-use|
Use of $HOME for MS-DOS and Win32     |$HOME-use|
Tags file format changed |tags-file-changed|
Options changed |options-changed|
CTRL-B in Insert mode gone |i_CTRL-B-gone| NEW FEATURES:
Syntax highlighting |new-highlighting|
Built-in script language |new-script|
Perl and Python support |new-perl-python|
Win32 GUI version |added-win32-GUI|
VMS version |added-VMS|
BeOS version |added-BeOS|
Macintosh GUI version |added-Mac|
More Vi compatible |more-compatible|
Read input from stdin |read-stdin|
Regular expression patterns |added-regexp|
Overloaded tags |tag-overloaded|
New commands |new-commands|
New options |added-options|
New command-line arguments |added-cmdline-args|
Various additions |added-various| IMPROVEMENTS |improvements| COMPILE TIME CHANGES |compile-changes| BUG FIXES |bug-fixes| VERSION 5.1 |version-5.1|
Changed |changed-5.1|
Added |added-5.1|
Fixed |fixed-5.1| VERSION 5.2 |version-5.2|
Long lines editable |long-lines|
File browser added |file-browser|
Dialogs added |dialogs-added|
Popup menu added |popup-menu-added|
Select mode added |new-Select-mode|
Session files added |new-session-files|
User defined functions and commands   |new-user-defined|
New interfaces |interfaces-5.2|
New ports |ports-5.2|
Multi-byte support |new-multi-byte|
New functions |new-functions-5.2|
New options |new-options-5.2|
New Ex commands |new-ex-commands-5.2|
Changed |changed-5.2|
Added |added-5.2|
Fixed |fixed-5.2| VERSION 5.3 |version-5.3|
Changed |changed-5.3|
Added |added-5.3|
Fixed |fixed-5.3| VERSION 5.4 |version-5.4|
Runtime directory introduced |new-runtime-dir|
Filetype introduced |new-filetype-5.4|
Vim script line continuation |new-line-continuation|
Improved session files |improved-sessions|
Autocommands improved |improved-autocmds-5.4|
Encryption |new-encryption|
GTK GUI port |new-GTK-GUI|
Menu changes |menu-changes-5.4|
Viminfo improved |improved-viminfo|
Various new commands |new-commands-5.4|
Various new options |new-options-5.4|
Vim scripts |new-script-5.4|
Avoid hit-return prompt |avoid-hit-return|
Improved quickfix |improved-quickfix|
Regular expressions |regexp-changes-5.4|
Changed |changed-5.4|
Added |added-5.4|
Fixed |fixed-5.4| ============================================================================== INCOMPATIBLE Default value for 'compatible' changed *cp-default* Vim version 5.0 tries to be more Vi compatible. This helps people who use Vim
as a drop-in replacement for Vi, but causes some things to be incompatible
with version 4.x. In version 4.x the default value for the 'compatible' option was off. Now the
default is on. The first thing you will notice is that the "u" command undoes
itself. Other side effects will be that mappings may work differently or not
work at all. Since a lot of people switching from Vim 4.x to 5.0 will find this annoying,
the 'compatible' option is switched off if Vim finds a vimrc file. This is a
bit of magic to make sure that 90% of the Vim users will not be bitten by
this change. What does this mean?
- If you prefer to run in 'compatible' mode and don't have a vimrc file, you don't have to do anything.
- If you prefer to run in 'nocompatible' mode and do have a vimrc file, you don't have to do anything.
- If you prefer to run in 'compatible' mode and do have a vimrc file, you should put this line first in your vimrc file:
     :set compatible
- If you prefer to run in 'nocompatible' mode and don't have a vimrc file, you can do one of the following: - Create an empty vimrc file (e.g.: "~/.vimrc" for Unix). - Put this command in your .exrc file or $EXINIT:
 :set nocompatible - Start Vim with the "-N" argument. If you are new to Vi and Vim, using 'nocompatible' is strongly recommended,
because Vi has a lot of unexpected side effects, which are avoided by this
setting. See 'compatible'. If you like some things from 'compatible' and some not, you can tune the
compatibility with 'cpoptions'. When you invoke Vim as "ex" or "gex", Vim always starts in compatible mode. Text formatting command "Q" changed *Q-command-changed* The "Q" command formerly formatted lines to the width the 'textwidth' option
specifies. The command for this is now "gq" (see |gq| for more info). The
reason for this change is that "Q" is the standard Vi command to enter "Ex"
mode, and Vim now does in fact have an "Ex" mode (see |Q| for more info). If you still want to use "Q" for formatting, use this mapping:
     :noremap Q gq
And if you also want to use the functionality of "Q":
     :noremap gQ Q Command-line arguments changed *cmdline-changed* Command-line file-arguments and option-arguments can now be mixed. You can
give options after the file names. Example:
 vim main.c -g This is not possible when editing a file that starts with a '-'. Use the "--"
argument then YXXY---|:
 vim -g -- -main.c "-v" now means to start Ex in Vi mode, use "-R" for read-only mode.
old: "vim -v file"    |-v|
new: "vim -R file"    |-R| "-e" now means to start Vi in Ex mode, use "-q" for quickfix.
old: "vim -e errorfile"       |-e|
new: "vim -q errorfile" |-q| "-s" in Ex mode now means to run in silent (batch) mode. |-s-ex| "-x" reserved for crypt, use "-f" to avoid starting a new CLI (Amiga).
old: "vim -x file"    |-x|
new: "vim -f file"    |-f| Vim allows up to ten "+cmd" and "-c cmd" arguments. Previously Vim executed
only the last one. "-n" now overrides any setting for 'updatecount' in a vimrc file, but not in
a gvimrc file. Autocommands are kept *autocmds-kept* Before version 5.0, autocommands with the same event, file name pattern, and
command could appear only once. This was fine for simple autocommands (like
setting option values), but for more complicated autocommands, where the same
command might appear twice, this restriction caused problems. Therefore
Vim stores all autocommands and keeps them in the order that they are defined. The most obvious side effect of this change is that when you source a vimrc
file twice, the autocommands in it will be defined twice. To avoid this, do
one of these: - Remove any autocommands that might potentially defined twice before defining them. Example:
     :au! * *.ext
     :au BufEnter *.ext ... - Put the autocommands inside an ":if" command. Example:
     if !exists("did_ext_autocmds")
 let did_ext_autocmds = 1
 autocmd BufEnter *.ext ...
     endif - Put your autocommands in a different autocommand group so you can remove them before defining them YXXY:augroup|:
     augroup uncompress
 au BufReadPost *.gz ...
     augroup END Use of 'hidden' changed *hidden-changed* In version 4.x, only some commands used the 'hidden' option. Now all commands
uses it whenever a buffer disappears from a window. Previously you could do ":buf xxx" in a changed buffer and that buffer would
then become hidden. Now you must set the 'hidden' option for this to work. The new behavior is simpler: whether Vim hides buffers no longer depends on
the specific command that you use.
- with 'hidden' not set, you never get hidden buffers. Exceptions are the ":hide" and ":close!" commands and, in rare cases, where you would otherwise lose changes to the buffer.
- With 'hidden' set, you almost never unload a buffer. Exceptions are the ":bunload" or ":bdel" commands. ":buffer" now supports a "!": abandon changes in current buffer. So do
":bnext", ":brewind", etc. Text object commands changed *text-objects-changed* Text object commands have new names. This allows more text objects and makes
characters available for other Visual mode commands. Since no more single
characters were available, text objects names now require two characters.
The first one is always 'i' or 'a'.
       OLD     NEW      a   aw      a word |v_aw| A   aW      a WORD |v_aW| s   as      a sentence |v_as| p   ap      a paragraph |v_ap| S     ab      a () block |v_ab| P  aB      a {} block |v_aB| There is another set of text objects that starts with "i", for "inner". These
select the same objects, but exclude white space. X-Windows Resources removed *x-resources* Vim no longer supports the following X resources:
- boldColor
- italicColor
- underlineColor
- cursorColor Vim now uses highlight groups to set colors. This avoids the confusion of
using a bold Font, which would imply a certain color. See |:highlight|. Use of $VIM *$VIM-use* Vim now uses the VIM environment variable to find all Vim system files. This
includes the global vimrc, gvimrc, and menu.vim files and all on-line help
and syntax files. See |$VIM|. Starting with version 5.4, |$VIMRUNTIME| can
also be used.
For Unix, Vim sets a default value for $VIM when doing "make install".
When $VIM is not set, its default value is the directory from 'helpfile',
excluding "/doc/help.txt". Use of $HOME for MS-DOS and Win32 *$HOME-use* The MS-DOS and Win32 versions of Vim now first check $HOME when searching for
a vimrc or exrc file and for reading/storing the viminfo file. Previously Vim
used $VIM for these systems, but this causes trouble on a system with several
users. Now Vim uses $VIM only when $HOME is not set or the file is not found
in $HOME. See |_vimrc|. Tags file format changed *tags-file-changed* Only Tabs are allowed to separate fields in a tags file. This allows for
spaces in a file name and is still Vi compatible. In previous versions of
Vim, any white space was allowed to separate the fields. If you have a file
which doesn't use a single Tab between fields, edit the tags file and execute
this command:
     :%s/\(\S*\)\s\+\(\S*\)\s\+\(.*\)/\1\t\2\t\3/ Options changed *options-changed* The default value of 'errorfile' has changed from "errors.vim" to "errors.err".
The reason is that only Vim scripts should have the ".vim" extensions. The ":make" command no longer uses the 'errorfile' option. This prevents the
output of the ":make" command from overwriting a manually saved error file.
":make" uses the 'makeef' option instead. This also allows for generating a
unique name, to prevent concurrently running ":make" commands from overwriting
each other's files. With 'insertmode' set, a few more things change:
-  in Normal mode goes to Insert mode.
-  in Insert mode doesn't leave Insert mode.
- When doing ":set im" go to Insert mode immediately. Vim considers a buffer to be changed when the 'fileformat' (formerly the
'textmode' option) is different from the buffer's initial format. CTRL-B in Insert mode gone *i_CTRL-B-gone* When Vim was compiled with the |+rightleft| feature, you could use CTRL-B to
toggle the 'revins' option. Unfortunately, some people hit the 'B' key
accidentally when trying to type CTRL-V or CTRL-N and then didn't know how to
undo this. Since toggling the 'revins' option can easily be done with the
mapping below, this use of the CTRL-B key is disabled. You can still use the
CTRL-_ key for this |i_CTRL-_|.
 :imap  :set revins! ============================================================================== NEW FEATURES Syntax highlighting *new-highlighting* Vim now has a very flexible way to highlighting just about any type of file.
See |syntax|. Summary:
 :syntax on Colors and attributes can be set for the syntax highlighting, and also for
other highlighted items with the ':' flag in the 'highlight' option. All
highlighted items are assigned a highlight group which specifies their
highlighting. See |:highlight|. The default colors have been improved. You can use the "Normal" group to set the default fore/background colors for a
color terminal. For the GUI, you can use this group to specify the font, too. The "2html.vim" script can be used to convert any file that has syntax
highlighting to HTML. The colors will be exactly the same as how you see them
in Vim. With a HTML viewer you can also print the file with colors. Built-in script language *new-script* A few extra commands and an expression evaluator enable you to write simple
but powerful scripts. Commands include ":if" and ":while". Expressions can
manipulate numbers and strings. You can use the '=' register to insert
directly the result of an expression. See |expression|. Perl and Python support *new-perl-python* Vim can call Perl commands with ":perldo", ":perl", etc. See |perl|.
Patches made by Sven Verdoolaege and Matt Gerassimoff. Vim can call Python commands with ":python" and ":pyfile". See |python|. Both of these are only available when enabled at compile time. Win32 GUI version *added-win32-GUI* The GUI has been ported to MS Windows 95 and NT. All the features of the X11
GUI are available to Windows users now. |gui-w32|
This also fixes problems with running the Win32 console version under Windows
95, where console support has always been bad.
There is also a version that supports OLE automation interface. |if_ole.txt|
Vim can be integrated with Microsoft Developer Studio using the VisVim DLL.
It is possible to produce a DLL version of gvim with Borland C++ (Aaron). VMS version *added-VMS* Vim can now also be used on VMS systems. Port done by Henk Elbers.
This has not been tested much, but it should work.
Sorry, no documentation! BeOS version *added-BeOS* Vim can be used on BeOS systems (including the BeBox). (Olaf Seibert)
See |os_beos.txt|. Macintosh GUI version *added-Mac* Vim can now be used on the Macintosh. (Dany St-Amant)
It has not been tested much yet, be careful!
See |os_mac.txt|. More Vi compatible *more-compatible* There is now a real Ex mode. Started with the "Q" command, or by calling the
executable "ex" or "gex". |Ex-mode| Always allow multi-level undo, also in Vi compatible mode. When the 'u' flag
in 'cpoptions' is included, CTRL-R is used for repeating the undo or redo
(like "." in Nvi). Read input from stdin *read-stdin* When using the "-" command-line argument, Vim reads its text input from stdin.
This can be used for putting Vim at the end of a pipe:
 grep "^a.*" *.c | vim -
See |--|. Regular expression patterns *added-regexp* Added specifying a range for the number of matches of a atom: "\{a,b}". |/\{|
Added the "shortest match" regexp "\{-}" (Webb).
Added "\s", matches a white character. Can replace "[ \t]". |/\s|
Added "\S", matches a non-white character. Can replace "[^ \t]".    |/\S| Overloaded tags *tag-overloaded* When using a language like C++, there can be several tags for the same
tagname. Commands have been added to be able to jump to any of these
overloaded tags:
|:tselect|        List matching tags, and jump to one of them.
|:stselect|      Idem, and split window.
|g_CTRL-]|        Do ":tselect" with the word under the cursor. After ":ta {tagname}" with multiple matches:
|:tnext|    Go to next matching tag.
|:tprevious|    Go to previous matching tag.
|:trewind|        Go to first matching tag.
|:tlast|    Go to last matching tag. The ":tag" command now also accepts wildcards. When doing command-line
completion on tags, case-insensitive matching is also available (at the end). New commands *new-commands* |:amenu|        Define menus for all modes, inserting a CTRL-O for Insert mode, ESC for Visual and CTRL-C for Cmdline mode. "amenu" is used for the default menus and the Syntax menu. |:augroup|      Set group to be used for following autocommands. Allows the grouping of autocommands to enable deletion of a specific group. |:crewind|    Go to first error.
|:clast|     Go to last error. |:doautoall|    Execute autocommands for all loaded buffers. |:echo| Echo its argument, which is an expression. Can be used to display messages which include variables. |:execute|  Execute its argument, which is an expression. Can be used to built up an Ex command with anything. |:hide| Works like ":close". |:if| Conditional execution, for built-in script language. |:intro|      Show introductory message. This is always executed when Vim is started without file arguments. |:let| Assign a value to an internal variable. |:omap| Map only in operator-pending mode. Makes it possible to map text-object commands. |:redir|    Redirect output of messages to a file. |:update| Write when buffer has changed. |:while|  While-loop for built-in script language. Visual mode:
|v_O| "O" in Visual block mode, moves the cursor to the other corner horizontally.
|v_D| "D" in Visual block mode deletes till end of line. Insert mode:
|i_CTRL-]|   Triggers abbreviation, without inserting any character. New options *added-options* 'background'       Used for selecting highlight color defaults. Also used in "syntax.vim" for selecting the syntax colors. Often set automatically, depending on the terminal used. 'complete'        Specifies how Insert mode completion works. 'eventignore'  Makes it possible to ignore autocommands temporarily. 'fileformat'  Current file format. Replaces 'textmode'.
'fileformats'      Possible file formats. Replaces 'textauto'. New is that this also supports Macintosh format: A single  separates lines. The default for 'fileformats' for MS-DOS, Win32 and OS/2 is "dos,unix", also when 'compatible' set. Unix type files didn't work anyway when 'fileformats' was empty. 'guicursor'     Set the cursor shape and blinking in various modes. Default is to adjust the cursor for Insert and Replace mode, and when an operator is pending. Blinking is default on. 'fkmap' Farsi key mapping. 'hlsearch'     Highlight all matches with the last used search pattern. 'hkmapp'    Phonetic Hebrew mapping (Ilya Dogolazky). 'iconstring'      Define the name of the icon, when not empty. (version 5.2: the string is used literally, a newline can be used to make two lines). 'lazyredraw'     Don't redraw the screen while executing macros, registers or other not typed commands. 'makeef'        Errorfile to be used for ":make". "##" is replaced with a unique number. Avoids that two Vim sessions overwrite each others errorfile. The Unix default is "/tmp/vim##.err"; for Amiga "t:vim##.Err, for others "vim##.err". 'matchtime'      1/10s of a second to show a matching paren, when 'showmatch' is set. Like Nvi. 'mousehide'   Hide mouse pointer in GUI when typing text. 'nrformats'   Defines what bases Vim will consider for numbers when using the CTRL-A and CTRL-X commands. Default: "hex,octal". 'shellxquote'        Add extra quotes around the whole shell command, including redirection. 'softtabstop'     Make typing behave like tabstop is set at this value, without changing the value of 'tabstop'. Makes it more easy to keep 'ts' at 8, while still getting four spaces for a . 'titlestring'        String for the window title, when not empty. (version 5.2: this string is used literally, a newline can be used to make two lines). 'verbose'  Level of verbosity. Makes it possible to show which .vimrc, .exrc, .viminfo files etc. are used for initializing. Also to show autocommands that are being executed. Can also be set by using the "-V" command-line argument. New command-line arguments *added-cmdline-args* |-U| Set the gvimrc file to be used. Like "-u" for the vimrc. |-V| Set the 'verbose' option. E.g. "vim -V10". |-N| Start in non-compatible mode. |-C| Start in compatible mode. |-Z| Start in restricted mode, disallow shell commands. Can also be done by calling the executable "rvim". |-h| Show usage information and exit. Various additions *added-various* Added support for SNiFF+ connection (submitted by Toni Leherbauer). Vim can
be used as an editor for SNiFF. No documentation available... For producing a bug report, the bugreport.vim script has been included.
Can be used with ":so $VIMRUNTIME/bugreport.vim", which creates the file
"bugreport.txt" in the current directory. |bugs| Added range to ":normal" command. Now you can repeat the same command for
each line in the range. |:normal-range| Included support for the Farsi language (Shiran). Only when enabled at
compile time. See |farsi|. ============================================================================== IMPROVEMENTS *improvements* Performance:
- When 'showcmd' was set, mappings would execute much more slowly because the output would be flushed very often. Helps a lot when executing the "life" macros with 'showcmd' set.
- Included patches for binary searching in tags file (David O'Neill). Can be disabled by resetting the 'tagbsearch' option.
- Don't update the ruler when repeating insert (slowed it down a lot).
- For Unix, file name expansion is now done internally instead of starting a shell for it.
- Expand environment variables with expand_env(), instead of calling the shell. Makes ":so $VIMRUNTIME/syntax/syntax.vim" a LOT faster.
- Reduced output for cursor positioning: Use CR-LF for moving to first few columns in next few lines; Don't output CR twice when using termios.
- Optimized cursor positioning. Use CR, BS and NL when it's shorter than absolute cursor positioning.
- Disable redrawing while repeating insert "1000ii".
- Made "d$" or "D" for long lines a lot faster (delete all characters at once, instead of one by one).
- Access option table by first letter, instead of searching from start.
- Made setting special highlighting attributes a lot faster by using highlight_attr[], instead of searching in the 'highlight' string.
- Don't show the mode when redrawing is disabled.
- When setting an option, only redraw the screen when required.
- Improved performance of Ex commands by using a lookup table for the first character. Options:
'cinoptions'        Added 'g' flag, for C++ scope declarations.
'cpoptions'  Added 'E' flag: Disallow yanking, deleting, etc. empty text area. Default is to allow empty yanks. When 'E' is included, "y$" in an empty line now is handled as an error (Vi compatible). Added 'j' flag: Only add two spaces for a join after a '.', not after a '?' or '!'. Added 'A' flag: don't give ATTENTION message. Added 'L' flag: When not included, and 'list' is set, 'textwidth' formatting works like 'list' is not set. Added 'W' flag: Let ":w!" behave like Vi: don't overwrite readonly files, or a file owned by someone else.
'highlight'  Added '@' flag, for '@' characters after the last line on the screen, and '$' at the end of the line when 'list' is set. Added 'i' flag: Set highlighting for 'incsearch'. Default uses "IncSearch" highlight group, which is linked to "Visual". Disallow 'h' flag in 'highlight' (wasn't used anymore since 3.0).
'guifont'      Win32 GUI only: When set to "*" brings up a font requester.
'guipty'        Default on, because so many people need it.
'path' Can contain wildcards, and "**" for searching a whole tree.
'shortmess'  Added 'I' flag to avoid the intro message.
'viminfo'      Added '%' flag: Store buffer list in viminfo file. - Increased defaults for 'maxmem' and 'maxmemtot' for Unix and Win32. Most machines have much more RAM now that prices have dropped.
- Implemented ":set all&", set all options to their default value. |:set| Swap file:
- Don't create a swap file for a readonly file. Then create one on the first change. Also create a swapfile when the amount of memory used is getting too high. |swap-file|
- Make swap file "hidden", if possible. On Unix this is done by prepending a dot to the swap file name. When long file names are used, the DJGPP and Win32 versions also prepend a dot, in case a file on a mounted Unix file system is edited. |:swapname| On MSDOS the hidden file attribute is NOT set, because this causes problems with share.exe.
- 'updatecount' always defaults to non-zero, also for Vi compatible mode. This means there is a swap file, which can be used for recovery. Tags:
- Included ctags 2.0 (Darren Hiebert). The syntax for static tags changed from {tag}:{fname}      {fname} {command} to {tag}      {fname} {command};"        file: Which is both faster to parse, shorter and Vi compatible. The old format is also still accepted, unless disabled in src/feature.h (see OLD_STATIC_TAGS). |tags-file-format|
- Completion of tags now also includes static tags for other files, at the end.
- Included "shtags" from Stephen Riehm.
- When finding a matching tag, but the file doesn't exist, continue searching for another match. Helps when using the same tags file (with links) for different versions of source code.
- Give a tag with a global match in the current file a higher priority than a global match in another file. Included xxd version V1.8 (Juergen Weigert). Autocommands:
- VimLeave autocommands are executed after writing the viminfo file, instead of before. |VimLeave|
- Allow changing autocommands while executing them. This allows for self-modifying autocommands. (idea from Goldberg)
- When using autocommands with two or more patterns, could not split ":if/:endif" over two lines. Now all matching autocommands are executed in one do_cmdline().
- Autocommands no longer change the command repeated with ".".
- Search patterns are restored after executing autocommands. This avoids that the 'hlsearch' highlighting is messed up by autocommands.
- When trying to execute an autocommand, also try matching the pattern with the short file name. Helps when short file name is different from full file name (expanded symbolic links). |autocmd-patterns|
- Made the output of ":autocmd" shorter and look better.
- Expand  in an ":autocmd" when it is defined. ||
- Added "nested" flag to ":autocmd", allows nesting. |autocmd-nested|
- Added [group] argument to ":autocmd". Overrides the currently set group. |autocmd-groups|
- new events: |BufUnload| before a buffer is unloaded |BufDelete| before a buffer is deleted from the buffer list |FileChangedShell|      when a file's modification time has changed after executing a shell command |User| user-defined autocommand
- When 'modified' was set by a BufRead* autocommand, it was reset again afterwards. Now the ":set modified" is remembered. GUI:
- Improved GUI scrollbar handling when redrawing is slower than the scrollbar events are generated.
- "vim -u NONE" now also stops loading the .gvimrc and other GUI inits. |-u| Use "-U" to use another gvimrc file. |-U|
- Handle CTRL-C for external command, also for systems where "setsid()" is supported.
- When starting the GUI, restrict the window size to the screen size.
- The default menus are read from $VIMRUNTIME/menu.vim. This allows for a customized default menu. |menu.vim|
- Improved the default menus. Added File/Print, a Window menu, Syntax menu, etc.
- Added priority to the ":menu" command. Now each menu can be put in a place where you want it, independent of the order in which the menus are defined. |menu-priority| Give a warning in the intro screen when running the Win32 console version on
Windows 95 because there are problems using this version under Windows 95.
|win32-problems| Added 'e' flag for ":substitute" command: Don't complain when not finding a
match (Campbell). |:s| When using search commands in a mapping, only the last one is kept in the
history. Avoids that the history is trashed by long mappings. Ignore characters after "ex", "view" and "gvim" when checking startup mode.
Allows the use of "gvim5" et. al. |gvim| "gview" starts the GUI in readonly
mode. |gview| When resizing windows, the cursor is kept in the same relative position, if
possible. (Webb) ":all" and ":ball" no longer close and then open a window for the same buffer.
Avoids losing options, jumplist, and other info. "-f" command-line argument is now ignored if Vim was compiled without GUI.
|-f| In Visual block mode, the right mouse button picks up the nearest corner. Changed default mappings for DOS et al. Removed the DOS-specific mappings,
only use the Windows ones. Added Shift-Insert, Ctrl-Insert, Ctrl-Del and
Shift-Del. Changed the numbers in the output of ":jumps", so you can see where {count}
CTRL-O takes you. |:jumps| Using "~" for $HOME now works for all systems. |$HOME| Unix: Besides using CTRL-C, also use the INTR character from the tty settings.
Somebody has INTR set to DEL. Allow a  in a ":help" command argument to end the help command, so another
command can follow. Doing "%" on a line that starts with " #if" didn't jump to matching "#else".
Don't recognize "#if", "#else" etc. for '%' when 'cpo' contains the '%' flag.
|%| Insert mode expansion with "CTRL-N", "CTRL-P" and "CTRL-X" improved
- 'complete' option added.
- When 'nowrapscan' is set, and no match found, report the searched direction in the error message.
- Repeating CTRL-X commands adds following words/lines after the match.
- When adding-expansions, accept single character matches.
- Made repeated CTRL-X CTRL-N not break undo, and "." repeats the whole insertion. Also fixes not being able to backspace over a word that has been inserted with CTRL-N. When copying characters in Insert mode from previous/next line, with CTRL-E or
CTRL-Y, 'textwidth' is no longer used. |i_CTRL-E| Commands that move in the arglist, like ":n" and ":rew", keep the old cursor
position of the file (this is mostly Vi compatible). Vim now remembers the '< and '> marks for each buffer. This fixes a problem
that a line-delete in one buffer invalidated the '< and '> marks in another
buffer. |' 255, get_number() caused
a crash when moving the mouse during the prompt for recovery. In Insert mode, "CTRL-O P" left the cursor on the last inserted character.
Now the cursor is left after the last putted character. When quickfix found an error type other than 'e' or 'w', it was never printed. A setting for 'errorfile' in a .vimrc overruled the "-q errorfile" argument. Some systems create a file when generating a temp file name. Filtering would
then create a backup file for this, which was never deleted. Now no backup
file is made when filtering. simplify_filename() could remove a ".." after a link, resulting in the wrong
file name. Made simplify_filename also work for MSDOS. Don't use it for
Amiga, since it doesn't have "../". otherfile() was unreliable when using links. Could think that reading/writing
was for a different file, when it was the same. Pasting with mouse in Replace mode didn't replace anything. Window height computed wrong when resizing a window with an autocommand (could
cause a crash). ":s!foo!bar!" wasn't possible (Vi compatible). do_bang() freed memory twice when called recursively, because of autocommands
(test11). Thanks to Electric Fence! "v$d" on an empty line didn't remove the "-- VISUAL --" mode message from the
command-line, and inverted the cursor. ":mkexrc" didn't check for failure to open the file, causing a crash.
(Felderhoff). Win32 mch_write() wrote past fixed buffer, causing terminal keys no longer to
be recognized. Both console and GUI version. Athena GUI: Crash when removing a menu item. Now Vim doesn't crash, but the
reversing of the menu item is still wrong. Always reset 'list' option for the help window. When 'scrolloff' is non-zero, a 'showmatch' could cause the shown match to be
in the wrong line and the window to be scrolled (Acevedo). After ":set all&", 'lines' and 'ttytype' were still non-default, because the
defaults never got set. Now the defaults for 'lines' and 'columns' are set
after detecting the window size. 'term' and 'ttytype' defaults are set when
detecting the terminal type. For (most) non-Unix systems, don't add file names with illegal characters when
expanding. Fixes "cannot open swapfile" error when doing ":e *.burp", when
there is no match. In X11 GUI, drawing part of the cursor obscured the text. Now the text is
drawn over the cursor, like when it fills the block. (Seibert) when started with "-c cmd -q errfile", the cursor would be left in line 1.
Now a ":cc" is done after executing "cmd". ":ilist" never ignored case, even when 'ignorecase' set. "vim -r file" for a readonly file, then making a change, got ATTENTION message
in insert mode, display mixed up until  typed. Also don't give ATTENTION
message after recovering a file. The abbreviation ":ab #i #include" could not be removed. CTRL-L completion (longest common match) on command-line didn't work properly
for case-insensitive systems (MS-DOS, Windows, etc.). (suggested by Richard
Kilgore). For terminals that can hide the cursor ("vi" termcap entry), resizing the
window caused the cursor to disappear. Using an invalid mark in an Ex address didn't abort the command. When 'smarttab' set, would use 'shiftround' when inserting a TAB after a
space. Now it always rounds to a tabstop. Set '[ and '] marks for ":copy", ":move", ":append", ":insert", ":substitute"
and ":change". (Acevedo). "d$" in an empty line still caused an error, even when 'E' is not in
'cpoptions'. Help files were stored in the viminfo buffer list without a path. GUI: Displaying cursor was not synchronized with other displaying. Caused
several display errors. For example, when the last two lines in the file
start with spaces, "dd" on the last line copied text to the (then) last line. Win32: Needed to type CTRL-SHIFT-- to get CTRL-_. GUI: Moving the cursor forwards over bold text would remove one column of bold
pixels. X11 GUI: When a bold character in the last column was scrolled up or down, one
column of pixels would not be copied. Using  to move the cursor left can sometimes erase a character. Now use
"le" termcap entry for this. Keyword completion with regexp didn't work. e.g., for "b.*crat". Fixed: With CTRL-O that jumps to another file, cursor could end up just after
the line. Amiga: '$' was missing from character recognized as wildcards, causing $VIM
sometimes not to be expanded. ":change" didn't adjust marks for deleted lines. ":help [range]" didn't work. Also for [pattern], [count] and [quotex]. For 'cindent'ing, typing "class::method" doesn't align like a label when the
second ':' is typed.
When inserting a CR with 'cindent' set (and a bunch of other conditions) the
cursor went to a wrong location.
'cindent' was wrong for a line that ends in '}'.
'cindent' was wrong after "else {". While editing the cmdline in the GUI, could not use the mouse to select text
from the command-line itself. When deleting lines, marks in tag stack were only adjusted for the current
window, not for other windows on the same buffer. Tag guessing could find a function "some_func" instead of the "func" we were
looking for. Tags file name relative to the current file didn't work. ":g/pat2/s//pat2/g", causing the number of subs to be reported, used to cause
a scroll up. Now you no longer have to hit . X11 GUI: Selecting text could cause a crash. 32 bit DOS version: CTRL-C in external command killed Vim. When SHELL is set
to "sh.exe", external commands didn't work. Removed using of, no
longer need to set 'shellquote'. Fixed crash when using ":g/pat/i". Fixed (potential) crash for X11 GUI, when using an X selection. Was giving a
pointer on the stack to a callback function, now it's static. Using "#" and "*" with an operator didn't work. E.g. "c#". Command-line expansion didn't work properly after ":*". (Acevedo) Setting 'weirdinvert' caused highlighting to be wrong in the GUI. ":e +4 #" didn't work, because the "4" was in unallocated memory (could cause
a crash). Cursor position was wrong for ":e #", after ":e #" failed, because of changes
to the buffer. When doing ":buf N", going to a buffer that was edited with ":view", the
readonly flag was reset. Now make a difference between ":e file" and ":buf
file": Only set/reset 'ro' for the first one. Avoid |hit-return| prompt when not able to write viminfo on exit. When giving error messages in the terminal where the GUI was started, GUI
escape codes would be written to the terminal. In an xterm this could be seen
as a '$' after the message. Mouse would not work directly after ":gui", because full_screen isn't set,
which causes starttermcap() not to do its work. 'incsearch' did not scroll the window in the same way as the actual search.
When 'nowrap' set, incsearch didn't show a match when it was off the side of
the screen. Now it also shows the whole match, instead of just the cursor
position (if possible). ":unmap", ":unab" and ":unmenu" did not accept a double quote, it was seen as
the start of a comment. Now it's Vi compatible. Using  in the command-line, when there is no previous
cmdline in the history, inserted a NUL on the command-line. "i" when on a  in column 0 left the cursor in the wrong place. GUI Motif: When adding a lot of menu items, the menu bar goes into two rows.
Deleting menu items, reducing the number of rows, now also works. With ":g/pat/s//foo/c", a match in the first line was scrolled off of the
screen, so you could not see it.
When using ":s//c", with 'nowrap' set, a match could be off the side of the
screen, so you could not see it. When 'helpfile' was set to a fixed, non-absolute path in feature.h, Vim would
crash. mch_Fullname can now handle file names in read-only memory. (Lottem) When using CTRL-A or CTRL-@ in Insert mode, there could be strange effects
when using CTRL-D next. Also, when repeating inserted text that included "0
CTRL-D" or "^ CTRL-D" this didn't work. (Acevedo)
Using CTRL-D after using CTRL-E or CTRL-Y in Insert mode that inserted a '0'
or '^', removed the '0' or '^' and more indent. The command "2".p" caused the last inserted text to be executed as commands.
(Acevedo) Repeating the insert of "CTRL-V 048" resulted in "^@" to be inserted. Repeating Insert completion could fail if there are special characters in the
text. (Acevedo) ":normal /string" caused the window to scroll. Now all ":normal" commands
are executed without scrolling messages. Redo of CTRL-E or CTRL-Y in Insert mode interpreted special characters as
commands. Line wrapping for 'tw' was done one character off for insert expansion
inserts. buffer_exists() function didn't work properly for buffer names with a symbolic
link in them (e.g. when using buffer_exists(#)). Removed the "MOTIF_COMMENT" construction from Makefile. It now works with
FreeBSD make, and probably with NeXT make too. Matching the 'define' and 'include' arguments now honor the settings for
'ignorecase'. (Acevedo) When one file shown in two windows, Visual selection mixed up cursor position
in current window and other window. When doing ":e file" from a help file, the 'isk' option wasn't reset properly,
because of a modeline in the help file. When doing ":e!", a cursor in another window on the same buffer could become
invalid, leading to "ml_get: invalid lnum" errors. Matching buffer name for when expanded name has a different path from not
expanded name (Brugnara). Normal mappings didn't work after an operator. For example, with ":map Q gq",
"QQ" didn't work. When ":make" resulted in zero errors, a "No Errors" error message was given
(which breaks mappings). When ":sourcing" a file, line length was limited to 1024 characters. CTRL-V
before  was not handled Vi compatible. (Acevedo) Unexpected exit for X11 GUI, caused by SAVE_YOURSELF event. (Heimann) CTRL-X CTRL-I only found one match per line. (Acevedo)
When using an illegal CTRL-X key in Insert mode, the CTRL-X mode message
was stuck. Finally managed to ignore the "Quit" menu entry of the Window manager! Now
Vim only exists when there are no changed buffers. Trying to start the GUI when $DISPLAY is not set resulted in a crash.
When $DISPLAY is not set and gvim starts vim, title was restored to "Thanks
for flying Vim".
When $DISPLAY not set, starting "gvim" (dropping back to vim) and then
selecting text with the mouse caused a crash. "J", with 'joinspaces' set, on a line ending in ". ", caused one space too
many to be added. (Acevedo) In insert mode, a CTRL-R {regname} which didn't insert anything left the '"''
on the screen. ":z10" didn't work. (Clapp) "Help "*" didn't work. Renamed a lot of functions, to avoid clashes with POSIX name space. When adding characters to a line, making it wrap, the following lines were
sometimes not shifted down (e.g. after a tag jump). CTRL-E, with 'so' set and cursor on last line, now does not move cursor as
long as the last line is on the screen. When there are two windows, doing "^W+^W-" in the bottom window could cause
the status line to be doubled (not redrawn correctly). This command would hang: ":n `cat`". Now connect stdin of the external
command to /dev/null, when expanding. Fixed lalloc(0,) error for ":echo %:e:r". (Acevedo) The "+command" argument to ":split" didn't work when there was no file name. When selecting text in the GUI, which is the output of a command-line command
or an external command, the inversion would sometimes remain. GUI: "-mh 70" argument was broken. Now, when menuheight is specified, it is
not changed anymore. GUI: When using the scrollbar or mouse while executing an external command,
this caused garbage characters. Showmatch sometimes jumped to the wrong position. Was caused by a call to
findmatch() when redrawing the display (when syntax highlighting is on). Search pattern "\(a *\)\{3} did not work correctly, also matched "a a".
Problem with brace_count not being decremented. Wildcard expansion added too many non-matching file names. When 'iskeyword' contains characters like '~', "*" and "#" didn't work
properly. (Acevedo) On Linux, on a FAT file system, modification time can change by one second.
Avoid a "file has changed" warning for a one second difference. When using the page-switching in an xterm, Vim would position the cursor on
the last line of the window on exit. Also removed the cursor positioning for
":!" commands. ":g/pat/p" command (partly) overwrote the command. Now the output is on a
separate line. With 'ic' and 'scs' set, a search for "Keyword", ignore-case matches were
highlighted too. "^" on a line with only white space, put cursor beyond the end of the line. When deleting characters before where insertion started ('bs' == 2), could not
use abbreviations. CTRL-E at end of file puts cursor below the file, in Visual mode, when 'so' is
non-zero. CTRL-E didn't work when 'so' is big and the line below the window
wraps. CTRL-E, when 'so' is non-zero, at end of the file, caused jumping
up-down. ":retab" didn't work well when 'list' is set. Amiga: When inserting characters at the last line on on the screen, causing it
to wrap, messed up the display. It appears that a '\n' on the last line
doesn't always cause a scroll up. In Insert mode "0" deleted an extra character, because Vim thought
that the "0" was still there. (Acevedo) "z{count}l" ignored the count. Also for "zh" et. al. (Acevedo) "S" when 'autoindent' is off didn't delete leading white space. "/" landed on the wrong character when 'incsearch' is set. Asking a yes/no question could cause a |hit-return| prompt. When the file consists of one long line (>4100 characters), making changes
caused various errors and a crash. DJGPP version could not save long lines (>64000) for undo. "yw" on the last char in the file didn't work. Also fixed "6x" at the end of
the line. "6X" at the start of a line fails, but does not break a mapping. In
general, a movement for an operator doesn't beep or flush a mapping, but when
there is nothing to operate on it beeps (this is Vi compatible). "m'"' and "m`" now set the '' mark at the cursor position. Unix: Resetting of signals for external program didn't work, because SIG_DFL
and NULL are the same! For "!!yes|dd count=1|, the yes command kept on
running. Partly fixed: Unix GUI: Typeahead while executing an external command was lost.
Now it's not lost while the command is producing output. Typing  in Insert mode, when it isn't mapped, inserted "". Now
it works like a normal , just like  and . Redrawing ruler didn't check for old value correctly (caused UMR warnings in
Purify). Negative array index in finish_viminfo_history(). ":g/^/d|mo $" deleted all the lines. The ":move" command now removes the
:global mark from the moved lines. Using "vG" while the last line in the window is a "@" line, didn't update
correctly. Just the "v" showed "~" lines. "daw" on the last char of the file, when it's a space, moved the cursor beyond
the end of the line. When 'hlsearch' was set or reset, only the current buffer was redrawn, while
this affects all windows. CTRL-^, positioning the cursor somewhere from 1/2 to 1 1/2 screen down the
file, put the cursor at the bottom of the window, instead of halfway. When scrolling up for ":append" command, not all windows were updated
correctly. When 'hlsearch' is set, and an auto-indent is highlighted, pressing 
didn't remove the highlighting, although the indent was deleted. When 'ru' set and 'nosc', using "$j" showed a wrong ruler. Under Xfree 3.2, Shift-Tab didn't work (wrong keysym is used). Mapping  didn't work. Changed the key translations to use the shortest
key code possible. This makes the termcode translations and mappings more
consistent. Now all modifiers work in all combinations, not only with ,
but also with , , etc. For Unix, restore three more signals. And Vim catches SIGINT now, so CTRL-C
in Ex mode doesn't make Vim exit. ""a5Y" yanked 25 lines instead of 5. "vrxxx" in an empty line could not be undone. A CTRL-C that breaks ":make" caused the errorfile not to be read (annoying
when you want to handle what ":make" produced so far). ":0;/pat" didn't find "pat" in line 1. Search for "/test/s+1" at first char of file gave bottom-top message, or
didn't work at all with 'nowrapscan'. Bug in viminfo history. Could cause a crash on exit. ":print" didn't put cursor on first non-blank in line. ":0r !cat >" shifted 5 lines 5 times, instead of 1 time. CTRL-C when getting a prompt in ":global" didn't interrupt. When 'so' is non-zero, and moving the scrollbar completely to the bottom,
there was a lot of flashing. GUI: Scrollbar ident must be long for DEC Alpha. Some functions called vim_regcomp() without setting reg_magic, which could
lead to unpredictable magicness. Crash when clicking around the status line, could get a selection with a
backwards range. When deleting more than one line characterwise, the last character wasn't
deleted. GUI: Status line could be overwritten when moving the scrollbar quickly (or
when 'wd' is non-zero). An ESC at the end of a ":normal" command caused a wait for a terminal code to
finish. Now, a terminal code is not recognized when its start comes from a
mapping or ":normal" command. Included patches from Robert Webb for GUI. Layout of the windows is now done
inside Vim, instead of letting the layout manager do this. Makes Vim work
with Lesstif! UMR warning in set_expand_context(). Memory leak: b_winlnum list was never freed. Removed TIOCLSET/TIOCLGET code from os_unix.c. Was changing some of the
terminal settings, and looked like it wasn't doing anything good. (suggested
by Juergen Weigert). Ruler overwrote "is a directory" message. When starting up, and 'cmdheight'
set to > 1, first message could still be in the last line. Removed prototype for putenv() from proto.h, it's already in In replace mode, when moving the cursor and then backspacing, wrong characters
were inserted. Win32 GUI was checking for a CTRL-C too often, making it slow. Removed mappings for MS-DOS that were already covered by commands. When visually selecting all lines in a file, cursor at last line, then "J".
Gave ml_get errors. Was a problem with scrolling down during redrawing. When doing a linewise operator, and then an operator with a mouse click, it
was also linewise, instead of characterwise. When 'list' is set, the column of the ruler was wrong. Spurious error message for "/\(b\+\)*". When visually selected many lines, message from ":w file" disappeared when
redrawing the screen. ":set =^[b", then insert "^[b", waited for another character. And then
inserted "" instead of the real  character. Was trying to insert
K_SPECIAL x NUL. CTRL-W ] didn't use count to set window height. GUI: "-font" command-line argument didn't override 'guifont' setting from
.gvimrc. (Acevedo) GUI: clipboard wasn't used for "*y". And some more Win32/X11 differences
fixed for the clipboard (Webb). Jumping from one help file to another help file, with 'compatible' set,
removed the 'help' flag from the buffer. File-writable bit could be reset when using ":w!" for a readonly file. There was a wait for CTRL-O n in Insert mode, because the search pattern was
Reduced wait, to allow reading a message, from 10 to 3 seconds. It seemed
nothing was happening. ":recover" found same swap file twice. GUI: "*yy only worked the second time (when pasting to an xterm)." DJGPP version (dos32): The system flags were cleared. Dos32 version: Underscores were sometimes replaced with y-umlaut (Levin). Version 4.1 of ncurses can't handle tputs("", ..). Avoid calling tputs() with
an empty string.  in the command-line worked like CTRL-P when no completion started yet.
Now it does completion, last match first. Unix: Could get annoying "can't write viminfo" message after doing "su". Now
the viminfo file is overwritten, and the user set back to the original one. ":set term=builtin_gui" started the GUI in a wrong way. Now it's not
allowed anymore. But "vim -T gui" does start the GUI correctly now. GUI: Triple click after a line only put last char in selection, when it is a
single character word. When the window is bigger than the screen, the scrolling up of messages was
wrong (e.g. ":vers", ":hi"). Also when the bottom part of the window was
obscured by another window. When using a wrong option only an error message is printed, to avoid that the
usage information makes it scroll off the screen. When exiting because of not being able to read from stdin, didn't preserve the
swap files properly. Visual selecting all chars in more than one line, then hit "x" didn't leave an
empty line. For one line it did leave an empty line. Message for which autocommand is executing messed up file write message (for
FileWritePost event). "vim -h" included "-U" even when GUI is not available, and "-l" when lisp is
not available. Crash for ":he " (command-line longer than screen). ":s/this/that/gc", type "y" two times, then undo, did reset the modified
option, even though the file is still modified. Empty lines in a tags file caused a ":tag" to be aborted. When hitting 'q' at the more prompt for ":menu", still scrolled a few lines. In an xterm that uses the bold trick a single row of characters could remain
after an erased bold character. Now erase one extra char after the bold char,
like for the GUI. ":pop!" didn't work. When the reading a buffer was interrupted, ":w" should not be able to
overwrite the file, ":w!" is required. ":cf%" caused a crash. ":gui longfilename", when forking is enabled, could leave part of the
longfilename at the shell prompt. ============================================================================== VERSION 5.1 *version-5.1* Improvements made between version 5.0 and 5.1. This was mostly a bug-fix release, not many new features. Changed *changed-5.1* The expand() function now separates file names with  instead of a space.
This avoids problems for file names with embedded spaces. To get the old
result, use substitute(expand(foo), "\n", " ", "g"). For Insert-expanding dictionaries allow a backslash to be used for
wildchars. Allows expanding "ze\kra", when 'isk' includes a backslash. New icon for the Win32 GUI. ":tag", ":tselect" etc. only use the argument as a regexp when it starts
with '/'. Avoids that ":tag xx~" gives an error message: "No previous sub.
regexp". Also, when the :tag argument contained wildcard characters, it was
not Vi compatible.
When using '/', the argument is taken literally too, with a higher priority,
so it's found before wildcard matches.
Only when the '/' is used are matches with different case found, even though
'ignorecase' isn't set.
Changed "g^]" to only do ":tselect" when there is more than on matching tag. Changed some of the default colors, because they were not very readable on a
dark background. A character offset to a search pattern can move the cursor to the next or
previous line. Also fixes that "/pattern/e+2" got stuck on "pattern" at the
end of a line. Double-clicks in the status line do no longer start Visual mode. Dragging a
status line no longer stops Visual mode. Perl interface: Buffers() and Windows() now use more logical arguments, like
they are used in the rest of Vim (Moore). Init '"' mark to the first character of the first line. Makes it possible to
use '"' in an autocommand without getting an error message. Added *added-5.1* "shell_error" internal variable: result of last shell command. ":echohl" command: Set highlighting for ":echo". 'S' flag in 'highlight' and StatusLineNC highlight group: highlighting for
status line of not-current window. Default is to use bold for current
window. Added buffer_name() and buffer_number() functions (Aaron).
Added flags argument "g" to substitute() function (Aaron).
Added winheight() function. Win32: When an external command starts with "start ", no console is opened
for it (Aaron). Win32 console: Use termcap codes for bold/reverse based on the current
console attributes. Configure check for "strip". (Napier) CTRL-R CTRL-R x in Insert mode: Insert the contents of a register literally,
instead of as typed. Made a few "No match" error messages more informative by adding the pattern
that didn't match. "make install" now also copies the macro files. tools/tcltags, a shell script to generate a tags file from a TCL file. "--with-tlib" setting for configure. Easy way to use termlib: "./configure
--with-tlib=termlib". 'u' flag in 'cino' for setting the indent for contained () parts. When Win32 OLE version can't load the registered type library, ask the user
if he wants to register Vim now. (Erhardt)
Win32 with OLE: When registered automatically, exit Vim.
Included VisVim 1.1b, with a few enhancements and the new icon (Heiko
Erhardt). Added patch from Vince Negri for Win32s support. Needs to be compiled with
VC 4.1! Perl interface: Added $curbuf. Rationalized Buffers() and Windows().
(Moore) Added "group" argument to Msg(). Included Perl files in DOS source archive. Changed Makefile.bor and
Makefile.w32 to support building a Win32 version with Perl included. Included new Makefile.w32 from Ken Scott. Now it's able to make all Win32
versions, including OLE, Perl and Python. Added CTRL-W g ] and CTRL-W g ^]: split window and do g] or g^]. Added "g]" to always do ":tselect" for the ident under the cursor.
Added ":tjump" and ":stjump" commands.
Improved listing of ":tselect" when tag names are a bit long. Included patches for the Macintosh version. Also for Python interface.
(St-Amant) ":buf foo" now also restores cursor column, when the buffer was used before. Adjusted the Makefile for different final destinations for the syntax files
and scripts (for Debian Linux). Amiga: $VIM can be used everywhere. When $VIM is not defined, "VIM:" is
used. This fixes that "VIM:" had to be assigned for the help files, and
$VIM set for the syntax files. Now either of these work. Some xterms send vt100 compatible function keys F1-F4. Since it's not
possible to detect this, recognize both type of keys and translate them to
 - . Added "VimEnter" autocommand. Executed after loading all the startup stuff. BeOS version now also runs on Intel CPUs (Seibert). Fixed *fixed-5.1* ":ts" changed position in the tag stack when cancelled with .
":ts" changed the cursor position for CTRL-T when cancelled with .
":tn" would always jump to the second match. Was using the wrong entry in
the tag stack.
Doing "tag foo", then ":tselect", overwrote the original cursor position in
the tag stack. "make install" changed the vim.1 manpage in a wrong way, causing "doc/doc"
to appear for the documentation files. When compiled with MAX_FEAT, xterm mouse handling failed. Was caused by DEC
mouse handling interfering. Was leaking memory when using selection in X11. CTRL-D halfway a command-line left some characters behind the first line(s)
of the listing. When expanding directories for ":set path=", put two extra backslashes
before a space in a directory name. When 'lisp' set, first line of a function would be indented. Now its indent
is set to zero. And use the indent of the first previous line that is at
the same () level. Added test33. "sou" in an empty file didn't work. DOS: "seek error in swap file write" errors, when using DOS 6.2 share.exe,
because the swap file was made hidden. It's no longer hidden. ":global" command would sometimes not execute on a matching line. Happened
when a data block is full in ml_replace(). For AIX use a tgetent buffer of 2048 bytes, instead of 1024. Win32 gvim now only sets the console size for external commands to 25x80
on Windows 95, not on NT. Win32 console: Dead key could cause a crash, because of a missing "WINAPI"
(Deshpande). The right mouse button started Visual mode, even when 'mouse' is empty, and
in the command-line, a left click moved the cursor when 'mouse' is empty.
In Visual mode, 'n' in 'mouse' would be used instead of 'v'. A blinking cursor or focus change cleared a non-Visual selection. CTRL-Home and CTRL-End didn't work for MS-DOS versions. Could include NUL in 'iskeyword', causing a crash when doing insert mode
completion. Use _dos_commit() to flush the swap file to disk for MSDOS 16 bit version. In mappings, CTRL-H was replaced by the backspace key code. This caused
problems when it was used as text, e.g. ":map _U :%s/.^H//g". ":set t_Co=0" was not handled like a normal term. Now it's translated into
":set t_Co=", which works. For ":syntax keyword" the "transparent" option did work, although not
mentioned in the help. But synID() returned wrong name. "gqG" in a file with one-word-per-line (e.g. a dictionary) was very slow and
not interruptable. "gq" operator inserted screen lines in the wrong situation. Now screen
lines are inserted or deleted when this speeds up displaying. cindent was wrong when an "if" contained "((". 'r' flag in 'viminfo' was not used for '%'. Could get files in the buffer
list from removable media. Win32 GUI with OLE: if_ole_vc.mak could not be converted into a project.
Hand-edited to fix this... With 'nosol' set, doing "$kdw" below an empty line positioned the cursor at
the end of the line. Dos32 version changed "\dir\file" into "/dir/file", to work around a DJGPP
bug. That bug appears to have been fixed, therefore this translation has
been removed. "/^*" didn't work (find '*' in first column). "" was not always set for autocommands. E.g., for ":au BufEnter *
let &tags = expand(":p:h") . "/tags". In an xterm, the window may be a child of the outer xterm window. Use the
parent window when getting the title and icon names. (Smith) When starting with "gvim -bg black -fg white", the value of 'background' is
only set after reading the .gvimrc file. This causes a ":syntax on" to use
the wrong colors. Now allow using ":gui" to open the GUI window and set the
colors. Previously ":gui" in a gvimrc crashed Vim. tempname() returned the same name all the time, unless the file was actually
created. Now there are at least 26 different names. File name used for  was sometimes full path, sometimes file name
relative to current directory. When 'background' was set after the GUI window was opened, it could change
colors that were set by the user in the .gvimrc file. Now it only changes
colors that have not been set by the user. Ignore special characters after a CSI in the GUI version. These could be
interpreted as special characters in a wrong way. (St-Amant) Memory leak in farsi code, when using search or ":s" command.
Farsi string reversing for a mapping was only done for new mappings. Now it
also works for replacing a mapping. Crash in Win32 when using a file name longer than _MAX_PATH. (Aaron) When BufDelete autocommands were executed, some things for the buffer were
already deleted (esp. Perl stuff). Perl interface: Buffer specific items were deleted too soon; fixes "screen
no longer exists" messages. (Moore) The Perl functions didn't set the 'modified' flag. did not return an error on exit, which may cause Vim to start
installing, even though there is no executable to install. (Riehm) Vi incompatibility: In Vi "." redoes the "y" command. Added the 'y' flag to
'cpoptions'. Only for 'compatible' mode. ":echohl" defined a new group, when the argument was not an existing group. "syn on" and ":syn off" could move the cursor, if there is a hidden buffer
that is shorter that the current cursor position. The " mark was not set when doing ":b file". When a "nextgroup" is used with "skipwhite" in syntax highlighting, space at
the end of the line made the nextgroup also be found in the next line. ":he g", then ":" and backspace to the start didn't redraw. X11 GUI: "gvim -rv" reversed the colors twice on Sun. Now Vim checks if the
result is really reverse video (background darker than foreground). "cat | vim -" didn't set syntax highlighting. Win32: Expanding "file.sw?" matched ".file.swp". This is an error of
FindnextFile() that we need to work around. (Kilgore) "gqgq" gave an "Invalid lnum" error on the last line.
Formatting with "gq" didn't format the first line after a change of comment
leader. There was no check for out-of-memory in win_alloc(). "vim -h" didn't mention "-register" and "-unregister" for the OLE version. Could not increase 'cmdheight' when the last window is only one line. Now
other windows are also made smaller, when necessary. Added a few {} to avoid "suggest braces around" warnings from gcc 2.8.x.
Changed return type of main() from void to int. (Nam) Using '~' twice in a substitute pattern caused a crash. "syn on" and ":syn off" could scroll the window, if there is a hidden buffer
that is shorter that the current cursor position. ":if 0 | if 1 | endif | endif" didn't work. Same for ":while" and "elseif". With two windows on modified files, with 'autowrite' set, cursor in second
window, ":qa" gave a warning for the file in the first window, but then
auto-wrote the file in the second window. (Webb) Win32 GUI scrollbar could only handle 32767 lines. Also makes the
intellimouse wheel use the configurable number of scrolls. (Robinson) When using 'patchmode', and the backup file is on another partition, the file
copying messed up the write-file message. GUI X11: Alt-Backspace and Alt-Delete didn't work. "`0" could put the cursor after the last character in the line, causing
trouble for other commands, like "i". When completing tags in insert mode with ^X^], some matches were skipped,
because the compare with other tags was wrong. E.g., when "mnuFileSave" was
already there, "mnuFile" would be skipped. (Negri) When scrolling up/down, a syntax item with "keepend" didn't work properly.
Now the flags are also stored for the syntax state a the start of each line. When 'ic' was changed while 'hlsearch' is on, there was no redraw to show the
effect. Win32 GUI: Don't display "No write since last chance" in a message box, but in
the Vim window. ============================================================================== VERSION 5.2 *version-5.2* Improvements made between version 5.1 and 5.2. Long lines editable *long-lines* A single long line that doesn't fit in the window doesn't show a line of @@@
anymore. Redrawing starts at a character further on in the line, such that
the text around the cursor can be seen. This makes it possible to edit these
long lines when wrapping is on. File browser added *file-browser* The Win32, Athena and Motif GUI bring up a file requester if the user asks to
":browse" for the ":e", ":w", ":r", ":so", ":redirect" and
":mkexrc/vimrc/vsess" commands. ::browse e /foo/bar" opens the requester in
the /foo/bar directory, so you can have nice mapping rhs's like ":browse so
$vim/macros". If no initial dir specified for ":browse e", can be compiled to
either begin in the current directory, or that of the current buffer. (Negri
and Kahn)
Added the 'browsedir' option, with value "current", "last" or "buffer". Tells
wether a browse dialog starts in last used dir, dir of current buffer, or
current dir. ":browse w" is unaffected.
The default menus have been changed to use the ":browse" command. Dialogs added *dialogs-added* Added the ":confirm" command. Works on ":e", ":q", ":w", ":cl". Win32,
Athena and Motif GUI uses a window-dialog. All other platforms can use
prompt in command-line. ":confirm qa" offers a choice to save all modified
files. confirm() function: allows user access to the confirm engine. Added 'v' flag to 'guioptions'. When included, a vertical button layout is
always used for the Win32 GUI dialog. Otherwise, a horizontal layout is
preferred. Win32 GUI: ":promptfind" and ":promptrepl" pop up a dialog to find/replace.
To be used from a menu entry. (Negri) Popup menu added *popup-menu-added* When the 'mousemodel' option is set to "popup", the right mouse button
displays the top level menu headed with "PopUp" as pop-up context menu. The
"PopUp" menu is not displayed in the normal menu bar. This currently only
works for Win32 and Athena GUI. Select mode added *new-Select-mode* A new mode has been added: "Select mode". It is like Visual mode, but typing
a printable character replaces the selection.
- CTRL-G can be used to toggle between Visual mode and Select mode.
- CTRL-O can be used to switch from Select mode to Visual mode for one command.
- Added 'selectmode' option: tells when to start Select mode instead of Visual mode.
- Added 'mousemodel' option: Change use of mouse buttons.
- Added 'keymodel' option: tells to use shifted special keys to start a Visual or Select mode selection.
- Added ":behave". Can be used to quickly set 'selectmode', 'mousemodel' and 'keymodel' for MS-Windows and xterm behavior.
- The xterm-like selection is now called modeless selection.
- Visual mode mappings and menus are used in Select mode. They automatically switch to Visual mode first. Afterwards, reselect the area, unless it was deleted. The "gV" command can be used in a mapping to skip the reselection.
- Added the "gh", "gH" and "g^H" commands: start Select (highlight) mode.
- Backspace in Select mode deletes the selected area. "mswin.vim" script. Sets behavior mostly like MS-Windows. Session files added *new-session-files* ":mks[ession]" acts like "mkvimrc", but also writes the full filenames of the
currently loaded buffers and current directory, so that :so'ing the file
re-loads those files and cd's to that directory. Also stores and restores
windows. File names are made relative to session file.
The 'sessionoptions' option sets behavior of ":mksession". (Negri) User defined functions and commands *new-user-defined* Added user defined functions. Defined with ":function" until ":endfunction".
Called with "Func()". Allows the use of a variable number of arguments.
Included support for local variables "l:name". Return a value with ":return".
See |:function|.
Call a function with ":call". When using a range, the function is called for
each line in the range. |:call|
"macros/justify.vim" is an example of using user defined functions.
User functions do not change the last used search pattern or the command to be
redone with ".".
'maxfuncdepth' option. Restricts the depth of function calls. Avoids trouble
(crash because of out-of-memory) when a function uses endless recursion. User defineable Ex commands: ":command", ":delcommand" and ":comclear".
(Moore) See |user-commands|. New interfaces *interfaces-5.2* Tcl interface. (Wilken) See |tcl|.
Uses the ":tcl", ":tcldo" and "tclfile" commands. Cscope support. (Kahn) (Sekera) See |cscope|.
Uses the ":cscope" and ":cstag" commands. Uses the options 'cscopeprg',
'cscopetag', 'cscopetagorder' and 'cscopeverbose'. New ports *ports-5.2* Amiga GUI port. (Nielsen) Not tested much yet! RISC OS version. (Thomas Leonard) See |riscos|.
This version can run either with a GUI or in text mode, depending upon where
it is invoked.
Deleted the "os_archie" files, they were not working anyway. Multi-byte support *new-multi-byte* MultiByte support for Win32 GUI. (Baek)
The 'fileencoding' option decides how the text in the file is encoded.
":ascii" works for multi-byte characters. Multi-byte characters work on
Windows 95, even when using the US version. (Aaron)
Needs to be enabled in feature.h.
This has not been tested much yet! New functions *new-functions-5.2* |browse()|        puts up a file requester when available. (Negri)
|escape()|     escapes characters in a string with a backslash.
|fnamemodify()|   modifies a file name.
|input()|       asks the user to enter a line. (Aaron) There is a separate history for lines typed for the input() function.
|argv()| can be used to access the argument list.
|winbufnr()| buffer number of a window. (Aaron)
|winnr()|       window number. (Aaron)
|matchstr()| Return matched string.
|setline()|   Set a line to a string value. New options *new-options-5.2* 'allowrevins' Enable the CTRL-_ command in Insert and Command-line mode.
'browsedir'  Tells in which directory a browse dialog starts.
'confirm'      when set, :q :w and :e commands always act as if ":confirm" is used. (Negri)
'cscopeverbose'  Set the |cscope| behavior.
'filetype'    RISC-OS specific type of file.
'grepprg'      For the |:grep| command.
'keymodel'    Tells to use shifted special keys to start a Visual or Select mode selection.
'listchars'  Set character to show in 'list' mode for end-of-line, tabs and trailing spaces. (partly by Smith) Also sets character to display if a line doesn't fit when 'nowrap' is set.
'matchpairs'        Allows matching '', and other single character pairs.
'mousefocus'        Window focus follows mouse (partly by Terhaar). Changing the focus with a keyboard command moves the pointer to that window. Also move the pointer when changing the window layout (split window, change window height, etc.).
'mousemodel'        Change use of mouse buttons.
'selection'  When set to "inclusive" or "exclusive", the cursor can go one character past the end of the line in Visual or Select mode. When set to "old" the old behavior is used. When "inclusive", the character under the cursor is included in the operation. When using "exclusive", the new "ve" entry of 'guicursor' is used. The default is a vertical bar.
'selectmode'        Tells when to start Select mode instead of Visual mode.
'sessionoptions' Sets behavior of ":mksession". (Negri)
'showfulltag'      When completing a tag in Insert mode, show the tag search pattern (tidied up) as a choice as well (if there is one).
'swapfile'    Whether to use a swap file for a buffer.
'syntax'        When it is set, the syntax by that name is loaded. Allows for setting a specific syntax from a modeline.
'ttymouse'    Allows using xterm mouse codes for terminals which name doesn't start with "xterm".
'wildignore'        List of patterns for files that should not be completed at all.
'wildmode'    Can be used to set the type of expansion for 'wildchar'. Replaces the CTRL-T command for command line completion. Don't beep when listing all matches.
'winaltkeys'        Win32 and Motif GUI. When "yes", ALT keys are handled entirely by the window system. When "no", ALT keys are never used by the window system. When "menu" it depends on whether a key is a menu shortcut.
'winminheight'    Minimal height for each window. Default is 1. Set to 0 if you want zero-line windows. Scrollbar is removed for zero-height windows. (Negri) New Ex commands *new-ex-commands-5.2* |:badd| Add file name to buffer list without side effects. (Negri)
|:behave|        Quickly set MS-Windows or xterm behavior.
|:browse|    Use file selection dialog.
|:call| Call a function, optionally with a range.
|:colder|   To access a stack of quickfix error lists.
|:comclear|    Clear all user-defined commands.
|:command|      Define a user command.
|:continue|   Go back to ":while".
|:confirm|  Ask confirmation if something unexpected happens.
|:cscope|  Execute cscope command.
|:cstag|    Use cscope to jump to a tag.
|:delcommand|        Delete a user-defined command.
|:delfunction|     Delete a user-defined function.
|:endfunction|     End of user-defined function.
|:function|   Define a user function.
|:grep| Works similar to ":make". (Negri)
|:mksession|      Create a session file.
|:nohlsearch|    Stop 'hlsearch' highlighting for a moment.
|:Print|      This is Vi compatible. Does the same as ":print".
|:promptfind|     Search dialog (Win32 GUI).
|:promptrepl|     Search/replace dialog (Win32 GUI).
|:return|       Return from a user-defined function.
|:simalt|    Win32 GUI: Simulate alt-key pressed. (Negri)
|:smagic|     Like ":substitute", but always use 'magic'.
|:snomagic| Like ":substitute", but always use 'nomagic'.
|:tcl| Execute TCL command.
|:tcldo|       Execute TCL command for a range of lines.
|:tclfile|   Execute a TCL script file.
|:tearoff|  Tear-off a menu (Win32 GUI).
|:tunmenu|      Win32 GUI: menu tooltips. (Negri)
|:star| :*      Execute a register. Changed *changed-5.2* Renamed functions: buffer_exists() -> bufexists() buffer_name() -> bufname() buffer_number() -> bufnr() file_readable() -> filereadable() highlight_exists() -> hlexists() highlightID() -> hlID() last_buffer_nr() -> bufnr("$")
The old ones are still there, for backwards compatibility. The CTRL-_ command in Insert and Command-line mode is only available when the
new 'allowrevins' option is set. Avoids that people who want to type SHIFT-_
accidentally enter reverse Insert mode, and don't know how to get out. When a file name path in ":tselect" listing is too long, remove a part in the
middle and put "..." there. Win32 GUI: Made font selector appear inside Vim window, not just any odd
place. (Negri) ":bn" skips help buffers, unless currently in a help buffer. (Negri) When there is a status line and only one window, don't show '^' in the status
line of the current window. ":*" used to be used for "' 95). Uses the new 't_RV' termcap option. Set 'ttymouse' to "xterm2" when a correct response is recognized. Will make xterm mouse dragging work better.
- Support for shifted function keys on xterm. Changed codes for shifted cursor keys to what the xterm actually produces. Added codes for shifted  and .
- Added 't_WP' to set the window position in pixels and 't_WS' to set the window size in characters. Xterm can now move (used for ":winpos") and resize (use for ":set lines=" and ":set columns="). X11:
- When in Visual mode but not owning the selection, display the Visual area with the VisualNOS group to show this. (Madsen)
- Support for requesting the type of clipboard support. Used for AIX and dtterm. (Wittig)
- Support compound_text selection (even when compiled without multi-byte). Swap file:
- New variation for naming swap files: Replace path separators into %, place all swap files in one directory. Used when a name in 'dir' ends in two path separators. (Madsen)
- When a swap file is found, show whether it contains modifications or not in the informative message. (Madsen)
- When dialogs are supported, use a dialog to ask the user what to do when a swapfile already exists. "popup_setpos" in 'mousemodel' option. Allows for moving the cursor when
using the right mouse button. When a buffer is deleted, the selection for which buffer to display instead
now uses the most recent entry from the jump list. (Madsen) When using CTRL-O/CTRL-I, skip deleted buffers. A percentage is shown in the ruler, when there is room. Used autoconf 1.13 to generate configure. Included get_lisp_indent() from Dirk van Deun. Does better Lisp indenting
when 'p' flag in 'cpoptions' is not included. Made the 2html.vim script quite a bit faster. (based on ideas from Geddes) Unix:
- Included the name of the user that compiled Vim and the system name it was compiled on in the version message.
- "make install" now also installs the "tools" directory. Makes them available for everybody.
- "make check" now does the same as "make test". "make test" checks for Visual block mode shift, insert, replace and change.
- Speed up comparing a file name with existing buffers by storing the device/inode number with the buffer.
- Added configure arguments "--disable-gtk", "--disable-motif" and "--disable-athena", to be able to disable a specific GUI (when it doesn't work).
- Renamed the configure arguments for disabling the check for specific GUIs. Should be clearer now. (Kahn)
- On a Digital Unix system ("OSF1") check for the curses library before termlib and termcap. (Schild)
- "make uninstall_runtime" will only delete the version-specific files. Can be used to delete the runtime files of a previous version. Macintosh: (St-Amant)
- Dragging the scrollbar, like it's done for the Win32 GUI. Moved common code from gui_w32.c to gui.c
- Added dialogs and file browsing.
- Resource fork preserved, warning when it will be lost.
- Copy original file attributes to newly written file.
- Set title/notitle bug solved.
- Filename completion improved.
- Grow box limit resize to a char by char size.
- Use of rgb.txt for more colors (but give back bad color).
- Apple menu works (beside the about...).
- Internal border now vim compliant.
- Removing a menu doesn't crash anymore.
- Weak-linking of Python 1.5.1 (only on PPC). Python is supported when the library is available.
- If an error is encountered when sourcing the users .vimrc, the alert box now shows right away with the OK button defaulted. There's no more "Delete"-key sign at the start of each line
- Better management of environement variables. Now $VIM is calculated only once, not regenerated every time it is used.
- No more CPU hog when in background.
- In a sourced Vim script the Mac file format can be recognized, just like DOS file format is. When both "unix" and "mac" are present in 'fileformats', prefer "mac" format
when there are more CR than NL characters.
When using "mac" fileformat, use CR instead of a NL, because NL is used for
NUL. Will preserve all characters in a file. (Madsen) The DOS install.exe now contains checks for an existing installation. It
avoids setting $VIM and $PATH again.
The install program for Dos/Windows can now install Vim in the popup menu, by
adding two registry keys. Port to EGCS/mingw32. New Makefile.ming. (Aaron) DOS 16 bit: Don't include cursor shape stuff. Save some bytes. TCL support to Makefile.w32. (Duperval) OS/2: Use argv[0] to find runtime files. When using "gf" to go to a buffer that has already been used, jump to the
line where the cursor last was. Colored the output of ":tselect" a bit more. Different highlighting between
tag name and file name. Highlight field name ("struct:") separately from
argument. Backtick expansion for non-Unix systems. Based on a patch from Aaron.
Allows the use of things like ":n `grep -l test *.c`" and
"echo expand('`ls m*`')". Check for the 'complete' option when it is set. (Acevedo)
'd' flag in 'complete' searches for defined names or macros.
While searching for Insert mode completions in include files and tags files,
check for typeahead, so that you can use matches early. (Webb)
The '.' flag in 'complete' now scans the current buffer completely, ignoring
'nowrapscan'. (Webb) Added '~' flag to 'whichwrap'. (Acevedo) When ending the Visual mode (e.g., with ESC) don't grab ownership of the
selection. In a color terminal, "fg" and "bg" can be used as color names. They stand for
the "Normal" colors. A few cscope cleanups. (Kahn) Included changed from Schemenauer. Concatenation of strings in an expression with "." is a bit faster. (Roemer) The ":redir" command can now redirect to a register: ":redir @r". (Roemer) Made the output of ":marks" and ":jumps" look similar. When the mark is in
the current file, show the text at the mark. Also for ":tags". When configure finds ftello() and fseeko(), they are used in tag.c (for when
you have extremely big tags files). Configure check for "-FOlimit,2000" argument for the compiler. (Borsenkow) GUI:
- When using ":gui" in a non-GUI Vim, give a clear error message.
- "gvim -v" doesn't start the GUI (if console support is present).
- When in Ex mode, use non-Visual selection for the whole screen.
- When starting with "gvim -f" and using ":gui" in the .gvimrc file, Vim forked anyway. Now the "-f" flag is remembered for ":gui". Added "gui -b" to run gvim in the background anyway. Motif GUI:
- Check for "-lXp" library in configure (but it doesn't work yet...).
- Let configure check for Lesstif in "/usr/local/Lesstif/Motif*". Changed the order to let a local Motif version override a system standard version. Win32 GUI:
- When using "-register" or "-unregister" in the non-OLE version, give an error message.
- Use GTK toolbar icons. Make window border look better. Use sizing handles on the lower left&right corners of the window. (Negri)
- When starting an external command with ":!start" and the command can not be executed, give an error message. (Webb)
- Use sizing handles for the grey rectangles below the scrollbars. Can draw toolbar in flat mode now, looks better. (Negri)
- Preparations for MS-Windows 3.1 addition. Mostly changing WIN32 to MSWIN and USE_GUI_WIN32 to USE_GUI_MSWIN. (Negri) Avoid allocating the same string four times in buflist_findpat(). (Williams) Set title and icon text with termcap options 't_ts', 't_fs', 't_IS' and
't_IE'. Allows doing this on any terminal that supports setting the title
and/or icon text. (Schild) New 'x' flag in 'comments': Automatically insert the end part when its last
character is typed. Helps to close a /* */ comment in C. (Webb) When expand() has a second argument which is non-zero, don't use 'suffixes'
and 'wildignore', return all matches. 'O' flag in 'cpoptions: When not included, Vim will not overwrite a file, if
it didn't exist when editing started but it does exist when the buffer is
written to the file. The file must have been created outside of Vim, possibly
without the user knowing it. When this is detected after a shell command,
give a warning message. When editing a new file, CTRL-G will show [New file]. When there were errors
while reading the file, CTRL-G will show [Read errors]. ":wall" can now use a dialog and file-browsing when needed. Grouped functionality into new features, mainly to reduce the size of the
minimal version:
+linebreak:       'showbreak', 'breakat' and 'linebreak'
+visualextra:   "I"nsert and "A"ppend in Visual block mode, "c"hange all lines in a block, ">" and " in Insert mode
caused the "recording" message to be doubled. Spurious "file changed" messages could happen on Windows. Now tolerate a one
second difference, like for Linux. GUI: When returning from Ex mode, scrollbars were not updated. Win32: Copying text to the clipboard containing a , pasting it would
replace it with a  and drop the next character. Entering a double byte character didn't work if the second byte is in [xXoO].
(Eric Lee) vim_realloc was both defined and had a prototype in proto/ Caused
conflicts on Solaris. A pattern in an autocommand was treated differently on DOS et al. than on
Unix. Now it's the same, also when using backslashes. When using  twice for command line completion, without a match, the 
would be inserted. (Negri) Bug in MS-Visual C++ 6.0 when compiling ex_docmd.c with optimization. (Negri) Testing the result of mktemp() for failure was wrong. Could cause a crash.
(Peters) GUI: When checking for a ".gvimrc" file in the current directory, didn't check
for a "_gvimrc" file too. Motif GUI: When using the popup menu and then adding an item to the menu bar,
the menu bar would get very high. Mouse clicks and special keys (e.g. cursor keys) quit the more prompt and
dialogs. Now they are ignored. When at the more-prompt, xterm selection didn't work. Now use the 'r' flag in
'mouse' also for the more-prompt. When selecting a Visual area of more than 1023 lines, with 'guioptions' set to
"a", could mess up the display because of a message in free_yank(). Removed
that message, except for the Amiga. Moved auto-selection from ui_write() to the screen update functions. Avoids
unexpected behavior from a low-level function. Also makes the different
feedback of owning the selection possible. Vi incompatibility: Using "i" in an indent, with 'ai' set, used the
original indent instead of truncating it at the cursor. (Webb) ":echo x" didn't stop at "q" for the more prompt. Various fixes for Macintosh. (St-Amant) When using 'selectmode' set to "exclusive", selecting a word and then using
CTRL-] included the character under the cursor. Using ":let a:name" in a function caused a crash. (Webb) When using ":append", an empty line didn't scroll up. DOS etc.: A file name starting with '!' didn't work. Added '!' to default for
'isfname'. BeOS: Compilation problem with prototype of skip_class_name(). (Price) When deleting more than one line, e.g., with "de", could still use "U"
command, which didn't work properly then. Amiga: Could not compile ex_docmd.c, it was getting too big. Moved some
functions to ex_cmds.c. The expand() function would add a trailing slash for directories. Didn't give an error message when trying to assign a value to an argument of a
function. (Webb) Moved including sys/ptem.h to after termios.h. Needed for Sinix. OLE interface: Don't delete the object in CVimCF::Release() when the reference
count becomes zero. (Cordell)
VisVim could still crash on exit. (Erhardt) "case a: case b:" (two case statements in one line) aligned with the second
case. Now it uses one 'sw' for indent. (Webb) Font intialisation wasn't right for Athena/Motif GUI. Moved the call to
highlight_gui_started() gui_mch_init() to gui_mch_open(). (Nam) In Replace mode, backspacing over a TAB before where the replace mode started
while 'sts' is different from 'ts', would delete the TAB. Win32 console: When executing external commands and switching between the two
console screens, Vim would copy the text between the buffers. That caused the
screen to be messed up for backtick expansion. ":winpos -1" then ":winpos" gave wrong error message. Windows commander creates files called c:\tmp\$wc\abc.txt. Don't remove the
backslash before the $. Environment variables were not expanded anyway,
because of the backslash before the dollar. Using "-=" with ":set" could remove half a part when it contains a "\,".
E.g., ":set path+=a\\,b" and then "set path-=b" removed ",b". When Visually selecting lines, with 'selection' set to "inclusive", including
the last char of the line, "
Solution: Call check_winsize() from gui_set_winsize() to resize the windows.
Files: src/gui.c Patch 5.4n.16
Problem: Win32 GUI: The  key both selected the menu and was handled as a key hit.
Solution: Apply 'winaltkeys' to , like it is used for Alt keys.
Files: src/gui_w32.c Patch 5.4n.17
Problem: Local buffer variables were freed when the buffer is unloaded. That's not logical, since options are not freed. (Ron Aaron)
Solution: Free local buffer variables only when deleting the buffer.
Files: src/buffer.c Patch 5.4n.19
Problem: Doing ":e" (without argument) in an option-window causes trouble. The mappings for  and  are not removed. When there is another buffer loaded, the swap file for it gets mixed up. (Steve Mueller)
Solution: Also remove the mappings at the BufUnload event, if they are still present. When re-editing the same file causes the current buffer to be deleted, don't try editing it. Also added a test for this situation.
Files: runtime/optwin.vim, src/ex_cmds.c, src/testdir/, src/testdir/test13.ok Patch 5.4n.24
Problem: BeOS: configure never enabled the GUI, because $with_x was "no". Unix prototypes caused problems, because Display and Widget are undefined. Freeing fonts on exit caused a crash.
Solution: Only disable the GUI when $with_x is "no" and $BEOS is not "yes". Add dummy defines for Display and Widget in proto.h. Don't free the fonts in gui_exit() for BeOS.
Files: src/, src/configure, src/proto.h, src/gui.c. The runtime/vim48x48.xpm icon didn't have a transparent background. (Schild) Some versions of the mingw32/egcs compiler didn't have WINBASEAPI defined.
(Aaron) VMS:
- mch_setenv() had two arguments instead of three.
- The system vimrc and gvimrc files were called ".vimrc" and ".gvimrc". Removed the dot.
- call to RealWaitForChar() had one argument too many. (Campbell)
- WaitForChar() is static, removed the prototype from proto/
- Many file accesses failed, because Unix style file names were used. Translate file names to VMS style by using vim_fopen().
- Filtering didn't work, because the temporary file name was generated wrong.
- There was an extra newline every 9192 characters when writing a file. Work around it by writing line by line. (Campbell)
- os_vms.c contained "# typedef int DESC". Should be "typedef int DESC;". Only mattered for generating prototypes.
- Added file name translation to many places. Made easy by defining macros mch_access(), mch_fopen(), mch_fstat(), mch_lstat() and mch_stat().
- Set default for 'tagbsearch' to off, because binary tag searching apparently doesn't work for VMS.
- make mch_get_host_name() work with /dec and /standard=vaxc. (Campbell) Patch 5.4o.2
Problem: Crash when using "gf" on "file.c://comment here". (Scott Graham)
Solution: Fix wrong use of pointers in get_file_name_in_path().
Files: src/window.c Patch 5.4o.3
Problem: The horizontal scrollbar was not sized correctly when 'number' is set and 'wrap' not set. Athena: Horizontal scrollbar wasn't updated when the cursor was positioned with a mouse click just after dragging.
Solution: Subtract 8 from the size when 'number' set and 'wrap' not set. Reset gui.dragged_sb when a mouse click is received.
Files: src/gui.c Patch 5.4o.4
Problem: When running in an xterm and $WINDOWID is set to an illegal value, Vim would exit with "Vim: Got X error".
Solution: When using the display which was opened for the xterm clipboard, check if x11_window is valid by trying to obtain the window title. Also add a check in setup_xterm_clip(), for when using X calls to get the pointer position in an xterm.
Files: src/os_unix.c Patch 5.4o.5
Problem: Motif version with Lesstif: When removing the menubar and then using a menu shortcut key, Vim would crash. (raf)
Solution: Disable the menu mnemonics when the menu bar is removed.
Files: src/gui_motif.c Patch 5.4o.9
Problem: The DOS install.exe program used the "move" program. That doesn't work on Windows NT, where "move" is internal to cmd.exe.
Solution: Don't use an external program for moving the executables. Use C functions to copy the file and delete the original.
Files: src/dosinst.c Motif and Athena obtained the status area height differently from GTK. Moved
status_area_enabled from global.h to gui_x11.c and call
xim_get_status_area_height() to get the status area height. Patch 5.4p.1
Problem: When using auto-select, and the "gv" command is used, would not always obtain ownership of the selection. Caused by the Visual area still being the same, but ownership taken away by another program.
Solution: Reset the clipboard Visual mode to force updating the selection.
Files: src/normal.c Patch 5.4p.2
Problem: Motif and Athena with XIM: Typing 3-byte  doesn't work correctly with Ami XIM.
Solution: Avoid using key_sym XK_VoidSymbol. (Nam)
Files: src/multbyte.c, src/gui_x11.c Patch 5.4p.4
Problem: Win32 GUI: The scrollbar values were reduced for a file with more than 32767 lines. But this info was kept global for all scrollbars, causing a mixup between the windows. Using the down arrow of a scrollbar in a large file didn't work. Because of round-off errors there is no scroll at all.
Solution: Give each scrollbar its own scroll_shift field. When the down arrow is used, scroll several lines.
Files: src/gui.h, src/gui_w32.c Patch 5.4p.5
Problem: When changing buffers in a BufDelete autocommand, there could be ml_line errors and/or a crash. (Schandl) Was caused by deleting the current buffer.
Solution: When the buffer to be deleted unexpectedly becomes the current buffer, don't delete it. Also added a check for this in test13.
Files: src/buffer.c, src/testdir/, src/testdir/test13.ok Patch 5.4p.7
Problem: Win32 GUI: When using 'mousemodel' set to "popup_setpos" and clicking the right mouse button outside of the selected area, the selected area wasn't removed until the popup menu has gone. (Aaron)
Solution: Set the cursor and update the display before showing the popup menu.
Files: src/normal.c Patch 5.4p.8
Problem: The generated bugreport didn't contain information about $VIMRUNTIME and whether runtime files actually exist.
Solution: Added a few checks to the bugreport script.
Files: runtime/bugreport.vim Patch 5.4p.9
Problem: The windows install.exe created a wrong entry in the popup menu. The "%1" was "". The full directory was included, even when the executable had been moved elsewhere. (Ott)
Solution: Double the '%' to get one from printf. Only include the path to gvim.exe when it wasn't moved and it's not in $PATH.
Files: src/dosinst.c Patch 5.4p.10
Problem: Win32: On top of 5.4p.9: The "Edit with Vim" entry sometimes used a short file name for a directory.
Solution: Change the "%1" to "%L" in the registry entry.
Files: src/dosinst.c Patch 5.4p.11
Problem: Motif, Athena and GTK: When closing the GUI window when there is a changed buffer, there was only an error message and Vim would not exit.
Solution: Put up a dialog, like for ":confirm qa". Uses the code that was already used for MS-Windows.
Files: src/gui.c, src/gui_w32.c Patch 5.4p.12
Problem: Win32: Trying to expand a string that is longer than 256 characters could cause a crash. (Steed)
Solution: For the buffer in win32_expandpath() don't use a fixed size array, allocate it.
Files: src/os_win32.c MSDOS: Added "-Wall" to Makefile.djg compile flags. Function prototypes for
fname_case() and mch_update_cursor() were missing. "fd" was unused in
mf_sync(). "puiLocation" was unused in myputch(). "newcmd" unused in
mch_call_shell() for DJGPP version. top - back to help