vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

version5.txt (308526B)


      1 *version5.txt*	For Vim version 9.2.  Last change: 2026 Aug 23
      2 
      3 
      4 		  VIM REFERENCE MANUAL	  by Bram Moolenaar
      5 
      6 
      7 Welcome to Vim Version 5.0!
      8 
      9 This document lists the differences between Vim 4.x and Vim 5.0.
     10 Although 5.0 is mentioned here, this is also for version 5.1, 5.2, etc.
     11 See |vi_diff.txt| for an overview of differences between Vi and Vim 5.0.
     12 See |version4.txt| for differences between Vim 3.0 and Vim 4.0.
     13 
     14 INCOMPATIBLE:				|incompatible-5|
     15 
     16 Default value for 'compatible' changed	|cp-default|
     17 Text formatting command "Q" changed	|Q-command-changed|
     18 Command-line arguments changed		|cmdline-changed|
     19 Autocommands are kept			|autocmds-kept|
     20 Use of 'hidden' changed			|hidden-changed|
     21 Text object commands changed		|text-objects-changed|
     22 X-Windows Resources removed		|x-resources|
     23 Use of $VIM				|$VIM-use|
     24 Use of $HOME for MS-DOS and Win32	|$HOME-use|
     25 Tags file format changed		|tags-file-changed|
     26 Options changed				|options-changed|
     27 CTRL-B in Insert mode gone		|i_CTRL-B-gone|
     28 
     29 NEW FEATURES:				|new-5|
     30 
     31 Syntax highlighting			|new-highlighting|
     32 Built-in script language		|new-script|
     33 Perl and Python support			|new-perl-python|
     34 Win32 GUI version			|added-win32-GUI|
     35 VMS version				|added-VMS|
     36 BeOS version				|added-BeOS|
     37 Macintosh GUI version			|added-Mac|
     38 More Vi compatible			|more-compatible|
     39 Read input from stdin			|read-stdin|
     40 Regular expression patterns		|added-regexp|
     41 Overloaded tags				|tag-overloaded|
     42 New commands				|new-commands|
     43 New options				|added-options|
     44 New command-line arguments		|added-cmdline-args|
     45 Various additions			|added-various|
     46 
     47 IMPROVEMENTS				|improvements-5|
     48 
     49 COMPILE TIME CHANGES			|compile-changes-5|
     50 
     51 BUG FIXES				|bug-fixes-5|
     52 
     53 VERSION 5.1			|version-5.1|
     54 Changed					|changed-5.1|
     55 Added					|added-5.1|
     56 Fixed					|fixed-5.1|
     57 
     58 VERSION 5.2			|version-5.2|
     59 Long lines editable			|long-lines|
     60 File browser added			|file-browser-5.2|
     61 Dialogs added				|dialogs-added|
     62 Popup menu added			|popup-menu-added|
     63 Select mode added			|new-Select-mode|
     64 Session files added			|new-session-files|
     65 User defined functions and commands	|new-user-defined|
     66 New interfaces				|interfaces-5.2|
     67 New ports				|ports-5.2|
     68 Multi-byte support			|new-multi-byte|
     69 New functions				|new-functions-5.2|
     70 New options				|new-options-5.2|
     71 New Ex commands				|new-ex-commands-5.2|
     72 Changed					|changed-5.2|
     73 Added					|added-5.2|
     74 Fixed					|fixed-5.2|
     75 
     76 VERSION 5.3			|version-5.3|
     77 Changed					|changed-5.3|
     78 Added					|added-5.3|
     79 Fixed					|fixed-5.3|
     80 
     81 VERSION 5.4			|version-5.4|
     82 Runtime directory introduced		|new-runtime-dir|
     83 Filetype introduced			|new-filetype-5.4|
     84 Vim script line continuation		|new-line-continuation|
     85 Improved session files			|improved-sessions|
     86 Autocommands improved			|improved-autocmds-5.4|
     87 Encryption				|new-encryption|
     88 GTK GUI port				|new-GTK-GUI|
     89 Menu changes				|menu-changes-5.4|
     90 Viminfo improved			|improved-viminfo|
     91 Various new commands			|new-commands-5.4|
     92 Various new options			|new-options-5.4|
     93 Vim scripts				|new-script-5.4|
     94 Avoid hit-enter prompt			|avoid-hit-enter|
     95 Improved quickfix			|improved-quickfix|
     96 Regular expressions			|regexp-changes-5.4|
     97 Changed					|changed-5.4|
     98 Added					|added-5.4|
     99 Fixed					|fixed-5.4|
    100 
    101 VERSION 5.5			|version-5.5|
    102 Changed					|changed-5.5|
    103 Added					|added-5.5|
    104 Fixed					|fixed-5.5|
    105 
    106 VERSION 5.6			|version-5.6|
    107 Changed					|changed-5.6|
    108 Added					|added-5.6|
    109 Fixed					|fixed-5.6|
    110 
    111 VERSION 5.7			|version-5.7|
    112 Changed					|changed-5.7|
    113 Added					|added-5.7|
    114 Fixed					|fixed-5.7|
    115 
    116 VERSION 5.8			|version-5.8|
    117 Changed					|changed-5.8|
    118 Added					|added-5.8|
    119 Fixed					|fixed-5.8|
    120 
    121 ==============================================================================
    122 INCOMPATIBLE						*incompatible-5*
    123 
    124 Default value for 'compatible' changed			*cp-default*
    125 --------------------------------------
    126 
    127 Vim version 5.0 tries to be more Vi compatible.  This helps people who use Vim
    128 as a drop-in replacement for Vi, but causes some things to be incompatible
    129 with version 4.x.
    130 
    131 In version 4.x the default value for the 'compatible' option was off.  Now the
    132 default is on.  The first thing you will notice is that the "u" command undoes
    133 itself.  Other side effects will be that mappings may work differently or not
    134 work at all.
    135 
    136 Since a lot of people switching from Vim 4.x to 5.0 will find this annoying,
    137 the 'compatible' option is switched off if Vim finds a vimrc file.  This is a
    138 bit of magic to make sure that 90% of the Vim users will not be bitten by
    139 this change.
    140 
    141 What does this mean?
    142 - If you prefer to run in 'compatible' mode and don't have a vimrc file, you
    143   don't have to do anything.
    144 - If you prefer to run in 'nocompatible' mode and do have a vimrc file, you
    145   don't have to do anything.
    146 - If you prefer to run in 'compatible' mode and do have a vimrc file, you
    147   should put this line first in your vimrc file: >
    148 	:set compatible
    149 - If you prefer to run in 'nocompatible' mode and don't have a vimrc file,
    150   you can do one of the following:
    151     - Create an empty vimrc file (e.g.: "~/.vimrc" for Unix).
    152     - Put this command in your .exrc file or $EXINIT: >
    153 		:set nocompatible
    154 <   - Start Vim with the "-N" argument.
    155 
    156 If you are new to Vi and Vim, using 'nocompatible' is strongly recommended,
    157 because Vi has a lot of unexpected side effects, which are avoided by this
    158 setting.  See 'compatible'.
    159 
    160 If you like some things from 'compatible' and some not, you can tune the
    161 compatibility with 'cpoptions'.
    162 
    163 When you invoke Vim as "ex" or "gex", Vim always starts in compatible mode.
    164 
    165 
    166 Text formatting command "Q" changed			*Q-command-changed*
    167 -----------------------------------
    168 
    169 The "Q" command formerly formatted lines to the width the 'textwidth' option
    170 specifies.  The command for this is now "gq" (see |gq| for more info).  The
    171 reason for this change is that "Q" is the standard Vi command to enter "Ex"
    172 mode, and Vim now does in fact have an "Ex" mode (see |Q| for more info).
    173 
    174 If you still want to use "Q" for formatting, use this mapping: >
    175 	:noremap Q gq
    176 And if you also want to use the functionality of "Q": >
    177 	:noremap gQ Q
    178 
    179 
    180 Command-line arguments changed				*cmdline-changed*
    181 ------------------------------
    182 
    183 Command-line file-arguments and option-arguments can now be mixed.  You can
    184 give options after the file names.  Example: >
    185    vim main.c -g
    186 
    187 This is not possible when editing a file that starts with a '-'.  Use the "--"
    188 argument then |---|: >
    189    vim -g -- -main.c
    190 
    191 "-v" now means to start Ex in Vi mode, use "-R" for read-only mode.
    192 old: "vim -v file"	|-v|
    193 new: "vim -R file"	|-R|
    194 
    195 "-e" now means to start Vi in Ex mode, use "-q" for quickfix.
    196 old: "vim -e errorfile"	|-e|
    197 new: "vim -q errorfile" |-q|
    198 
    199 "-s" in Ex mode now means to run in silent (batch) mode. |-s-ex|
    200 
    201 "-x" reserved for crypt, use "-f" to avoid starting a new CLI (Amiga).
    202 old: "vim -x file"	|-x|
    203 new: "vim -f file"	|-f|
    204 
    205 Vim allows up to ten "+cmd" and "-c cmd" arguments.  Previously Vim executed
    206 only the last one.
    207 
    208 "-n" now overrides any setting for 'updatecount' in a vimrc file, but not in
    209 a gvimrc file.
    210 
    211 
    212 Autocommands are kept					*autocmds-kept*
    213 ---------------------
    214 
    215 Before version 5.0, autocommands with the same event, file name pattern, and
    216 command could appear only once.  This was fine for simple autocommands (like
    217 setting option values), but for more complicated autocommands, where the same
    218 command might appear twice, this restriction caused problems.  Therefore
    219 Vim stores all autocommands and keeps them in the order that they are defined.
    220 
    221 The most obvious side effect of this change is that when you source a vimrc
    222 file twice, the autocommands in it will be defined twice.  To avoid this, do
    223 one of these:
    224 
    225 - Remove any autocommands that might already be defined before defining
    226   them.  Example: >
    227 	:au! * *.ext
    228 	:au BufEnter *.ext ...
    229 
    230 - Put the autocommands inside an ":if" command.  Example: >
    231 	if !exists("did_ext_autocmds")
    232 	  let did_ext_autocmds = 1
    233 	  autocmd BufEnter *.ext ...
    234 	endif
    235 
    236 - Put your autocommands in a different autocommand group so you can remove
    237   them before defining them |:augroup|: >
    238 	augroup uncompress
    239 	  au!
    240 	  au BufReadPost *.gz ...
    241 	augroup END
    242 
    243 
    244 Use of 'hidden' changed					*hidden-changed*
    245 -----------------------
    246 
    247 In version 4.x, only some commands used the 'hidden' option.  Now all commands
    248 uses it whenever a buffer disappears from a window.
    249 
    250 Previously you could do ":buf xxx" in a changed buffer and that buffer would
    251 then become hidden.  Now you must set the 'hidden' option for this to work.
    252 
    253 The new behavior is simpler: whether Vim hides buffers no longer depends on
    254 the specific command that you use.
    255 - with 'hidden' not set, you never get hidden buffers.  Exceptions are the
    256   ":hide" and ":close!" commands and, in rare cases, where you would otherwise
    257   lose changes to the buffer.
    258 - With 'hidden' set, you almost never unload a buffer.  Exceptions are the
    259   ":bunload" or ":bdel" commands.
    260 
    261 ":buffer" now supports a "!": abandon changes in current buffer.  So do
    262 ":bnext", ":brewind", etc.
    263 
    264 
    265 Text object commands changed				*text-objects-changed*
    266 ----------------------------
    267 
    268 Text object commands have new names.  This allows more text objects and makes
    269 characters available for other Visual mode commands.  Since no more single
    270 characters were available, text objects names now require two characters.
    271 The first one is always 'i' or 'a'.
    272 	OLD	NEW	~
    273 	a	aw	a word			|v_aw|
    274 	A	aW	a WORD			|v_aW|
    275 	s	as	a sentence		|v_as|
    276 	p	ap	a paragraph		|v_ap|
    277 	S	ab	a () block		|v_ab|
    278 	P	aB	a {} block		|v_aB|
    279 
    280 There is another set of text objects that starts with "i", for "inner".  These
    281 select the same objects, but exclude white space.
    282 
    283 
    284 X-Windows Resources removed				*x-resources*
    285 --------------------------
    286 
    287 Vim no longer supports the following X resources:
    288 - boldColor
    289 - italicColor
    290 - underlineColor
    291 - cursorColor
    292 
    293 Vim now uses highlight groups to set colors.  This avoids the confusion of
    294 using a bold Font, which would imply a certain color.  See |:highlight| and
    295 |gui-resources|.
    296 
    297 
    298 Use of $VIM						*$VIM-use*
    299 -----------
    300 
    301 Vim now uses the VIM environment variable to find all Vim system files.  This
    302 includes the global vimrc, gvimrc, and menu.vim files and all on-line help
    303 and syntax files.  See |$VIM|.  Starting with version 5.4, |$VIMRUNTIME| can
    304 also be used.
    305 For Unix, Vim sets a default value for $VIM when doing "make install".
    306 When $VIM is not set, its default value is the directory from 'helpfile',
    307 excluding "/doc/help.txt".
    308 
    309 
    310 Use of $HOME for MS-DOS and Win32			*$HOME-use*
    311 ---------------------------------
    312 
    313 The MS-DOS and Win32 versions of Vim now first check $HOME when searching for
    314 a vimrc or exrc file and for reading/storing the viminfo file.  Previously Vim
    315 used $VIM for these systems, but this causes trouble on a system with several
    316 users.  Now Vim uses $VIM only when $HOME is not set or the file is not found
    317 in $HOME.  See |_vimrc|.
    318 
    319 
    320 Tags file format changed				*tags-file-changed*
    321 ------------------------
    322 
    323 Only tabs are allowed to separate fields in a tags file.  This allows for
    324 spaces in a file name and is still Vi compatible.  In previous versions of
    325 Vim, any white space was allowed to separate the fields.  If you have a file
    326 which doesn't use a single tab between fields, edit the tags file and execute
    327 this command: >
    328 	:%s/\(\S*\)\s\+\(\S*\)\s\+\(.*\)/\1\t\2\t\3/
    329 
    330 
    331 Options changed						*options-changed*
    332 ---------------
    333 
    334 The default value of 'errorfile' has changed from "errors.vim" to "errors.err".
    335 The reason is that only Vim scripts should have the ".vim" extensions.
    336 
    337 The ":make" command no longer uses the 'errorfile' option.  This prevents the
    338 output of the ":make" command from overwriting a manually saved error file.
    339 ":make" uses the 'makeef' option instead.  This also allows for generating a
    340 unique name, to prevent concurrently running ":make" commands from overwriting
    341 each other's files.
    342 
    343 With 'insertmode' set, a few more things change:
    344 - <Esc> in Normal mode goes to Insert mode.
    345 - <Esc> in Insert mode doesn't leave Insert mode.
    346 - When doing ":set im", go to Insert mode immediately.
    347 
    348 Vim considers a buffer to be changed when the 'fileformat' (formerly the
    349 'textmode' option) is different from the buffer's initial format.
    350 
    351 
    352 CTRL-B in Insert mode gone				*i_CTRL-B-gone*
    353 --------------------------
    354 
    355 When Vim was compiled with the |+rightleft| feature, you could use CTRL-B to
    356 toggle the 'revins' option.  Unfortunately, some people hit the 'B' key
    357 accidentally when trying to type CTRL-V or CTRL-N and then didn't know how to
    358 undo this.  Since toggling the 'revins' option can easily be done with the
    359 mapping below, this use of the CTRL-B key is disabled.  You can still use the
    360 CTRL-_ key for this |i_CTRL-_|. >
    361    :imap <C-B> <C-O>:set revins!<CR>
    362 
    363 ==============================================================================
    364 NEW FEATURES						*new-5*
    365 
    366 Syntax highlighting					*new-highlighting*
    367 -------------------
    368 
    369 Vim now has a very flexible way to highlighting just about any type of file.
    370 See |syntax|.  Summary: >
    371    :syntax on
    372 
    373 Colors and attributes can be set for the syntax highlighting, and also for
    374 other highlighted items with the ':' flag in the 'highlight' option.  All
    375 highlighted items are assigned a highlight group which specifies their
    376 highlighting.  See |:highlight|.  The default colors have been improved.
    377 
    378 You can use the "Normal" group to set the default fore/background colors for a
    379 color terminal.  For the GUI, you can use this group to specify the font, too.
    380 
    381 The "2html.vim" script can be used to convert any file that has syntax
    382 highlighting to HTML.  The colors will be exactly the same as how you see them
    383 in Vim.  With a HTML viewer you can also print the file with colors.
    384 
    385 
    386 Built-in script language				*new-script*
    387 ------------------------
    388 
    389 A few extra commands and an expression evaluator enable you to write simple
    390 but powerful scripts.  Commands include ":if" and ":while".  Expressions can
    391 manipulate numbers and strings.  You can use the '=' register to insert
    392 directly the result of an expression.  See |expression|.
    393 
    394 
    395 Perl and Python support					*new-perl-python*
    396 -----------------------
    397 
    398 Vim can call Perl commands with ":perldo", ":perl", etc.  See |perl|.
    399 Patches made by Sven Verdoolaege and Matt Gerassimoff.
    400 
    401 Vim can call Python commands with ":python" and ":pyfile".  See |python|.
    402 
    403 Both of these are only available when enabled at compile time.
    404 
    405 
    406 Win32 GUI version					*added-win32-GUI*
    407 -----------------
    408 
    409 The GUI has been ported to MS-Windows 95 and NT.  All the features of the X11
    410 GUI are available to Windows users now.  |gui-w32|
    411 This also fixes problems with running the Win32 console version under Windows
    412 95, where console support has always been bad.
    413 There is also a version that supports OLE automation interface.  |if_ole.txt|
    414 Vim can be integrated with Microsoft Developer Studio using the VisVim DLL.
    415 It is possible to produce a DLL version of gvim with Borland C++ (Aaron).
    416 
    417 
    418 VMS version						*added-VMS*
    419 -----------
    420 
    421 Vim can now also be used on VMS systems.  Port done by Henk Elbers.
    422 This has not been tested much, but it should work.
    423 Sorry, no documentation!
    424 
    425 
    426 BeOS version						*added-BeOS*
    427 ------------
    428 
    429 Vim can be used on BeOS systems (including the BeBox).  (Olaf Seibert)
    430 See |os_beos.txt|.
    431 
    432 
    433 Macintosh GUI version					*added-Mac*
    434 ---------------------
    435 
    436 Vim can now be used on the Macintosh.  (Dany St-Amant)
    437 It has not been tested much yet, be careful!
    438 See |os_mac.txt|.
    439 
    440 
    441 More Vi compatible					*more-compatible*
    442 ------------------
    443 
    444 There is now a real Ex mode.  Started with the "Q" command, or by calling the
    445 executable "ex" or "gex".  |Ex-mode|
    446 
    447 Always allow multi-level undo, also in Vi compatible mode.  When the 'u' flag
    448 in 'cpoptions' is included, CTRL-R is used for repeating the undo or redo
    449 (like "." in Nvi).
    450 
    451 
    452 Read input from stdin					*read-stdin*
    453 ---------------------
    454 
    455 When using the "-" command-line argument, Vim reads its text input from stdin.
    456 This can be used for putting Vim at the end of a pipe: >
    457    grep "^a.*" *.c | vim -
    458 See |--|.
    459 
    460 
    461 Regular expression patterns				*added-regexp*
    462 ---------------------------
    463 
    464 Added specifying a range for the number of matches of an atom: "\{a,b}". |/\{|
    465 Added the "shortest match" regexp "\{-}" (Webb).
    466 Added "\s", matches a white character.  Can replace "[ \t]".		 |/\s|
    467 Added "\S", matches a non-white character.  Can replace "[^ \t]".	 |/\S|
    468 
    469 
    470 Overloaded tags						*tag-overloaded*
    471 ---------------
    472 
    473 When using a language like C++, there can be several tags for the same
    474 tagname.  Commands have been added to be able to jump to any of these
    475 overloaded tags:
    476 |:tselect|	List matching tags, and jump to one of them.
    477 |:stselect|	Idem, and split window.
    478 |g_CTRL-]|	Do ":tselect" with the word under the cursor.
    479 
    480 	After ":ta {tagname}" with multiple matches:
    481 |:tnext|	Go to next matching tag.
    482 |:tprevious|	Go to previous matching tag.
    483 |:trewind|	Go to first matching tag.
    484 |:tlast|	Go to last matching tag.
    485 
    486 The ":tag" command now also accepts wildcards.  When doing command-line
    487 completion on tags, case-insensitive matching is also available (at the end).
    488 
    489 
    490 New commands						*new-commands*
    491 ------------
    492 
    493 |:amenu|	Define menus for all modes, inserting a CTRL-O for Insert
    494 		mode, ESC for Visual and CTRL-C for Cmdline mode.  "amenu" is
    495 		used for the default menus and the Syntax menu.
    496 
    497 |:augroup|	Set group to be used for following autocommands.  Allows the
    498 		grouping of autocommands to enable deletion of a specific
    499 		group.
    500 
    501 |:crewind|	Go to first error.
    502 |:clast|	Go to last error.
    503 
    504 |:doautoall|	Execute autocommands for all loaded buffers.
    505 
    506 |:echo|		Echo its argument, which is an expression.  Can be used to
    507 		display messages which include variables.
    508 
    509 |:execute|	Execute its argument, which is an expression.  Can be used to
    510 		built up an Ex command with anything.
    511 
    512 |:hide|		Works like ":close".
    513 
    514 |:if|		Conditional execution, for built-in script language.
    515 
    516 |:intro|	Show introductory message.  This is always executed when Vim
    517 		is started without file arguments.
    518 
    519 |:let|		Assign a value to an internal variable.
    520 
    521 |:omap|		Map only in operator-pending mode.  Makes it possible to map
    522 		text-object commands.
    523 
    524 |:redir|	Redirect output of messages to a file.
    525 
    526 |:update|	Write when buffer has changed.
    527 
    528 |:while|	While-loop for built-in script language.
    529 
    530 Visual mode:
    531 |v_O|		"O" in Visual block mode, moves the cursor to the other corner
    532 		horizontally.
    533 |v_D|		"D" in Visual block mode deletes till end of line.
    534 
    535 Insert mode:
    536 |i_CTRL-]|	Triggers abbreviation, without inserting any character.
    537 
    538 
    539 New options						*added-options*
    540 -----------
    541 
    542 'background'	Used for selecting highlight color defaults.  Also used in
    543 		"syntax.vim" for selecting the syntax colors.  Often set
    544 		automatically, depending on the terminal used.
    545 
    546 'complete'	Specifies how Insert mode completion works.
    547 
    548 'eventignore'	Makes it possible to ignore autocommands temporarily.
    549 
    550 'fileformat'	Current file format.  Replaces 'textmode'.
    551 'fileformats'	Possible file formats.  Replaces 'textauto'.
    552 		New is that this also supports Macintosh format: A single <CR>
    553 		separates lines.
    554 		The default for 'fileformats' for MS-DOS, Win32 and OS/2 is
    555 		"dos,unix", also when 'compatible' set.  Unix type files
    556 		didn't work anyway when 'fileformats' was empty.
    557 
    558 'guicursor'	Set the cursor shape and blinking in various modes.
    559 		Default is to adjust the cursor for Insert and Replace mode,
    560 		and when an operator is pending.  Blinking is default on.
    561 
    562 'fkmap'		Farsi key mapping.
    563 
    564 'hlsearch'	Highlight all matches with the last used search pattern.
    565 
    566 'hkmapp'	Phonetic Hebrew mapping. (Ilya Dogolazky)
    567 
    568 'iconstring'	Define the name of the icon, when not empty.  (Version 5.2: the
    569 		string is used literally, a newline can be used to make two
    570 		lines.)
    571 
    572 'lazyredraw'	Don't redraw the screen while executing macros, registers or
    573 		other not typed commands.
    574 
    575 'makeef'	Errorfile to be used for ":make".  "##" is replaced with a
    576 		unique number.  Avoids that two Vim sessions overwrite each
    577 		others errorfile.  The Unix default is "/tmp/vim##.err"; for
    578 		Amiga "t:vim##.Err, for others "vim##.err".
    579 
    580 'matchtime'	1/10s of a second to show a matching paren, when 'showmatch'
    581 		is set.  Like Nvi.
    582 
    583 'mousehide'	Hide mouse pointer in GUI when typing text.
    584 
    585 'nrformats'	Defines what bases Vim will consider for numbers when using
    586 		the CTRL-A and CTRL-X commands.  Default: "hex,octal".
    587 
    588 'shellxquote'	Add extra quotes around the whole shell command, including
    589 		redirection.
    590 
    591 'softtabstop'	Make typing behave like tabstop is set at this value, without
    592 		changing the value of 'tabstop'.  Makes it more easy to keep
    593 		'ts' at 8, while still getting four spaces for a <Tab>.
    594 
    595 'titlestring'	String for the window title, when not empty.  (Version 5.2:
    596 		this string is used literally, a newline can be used to make
    597 		two lines.)
    598 
    599 'verbose'	Level of verbosity.  Makes it possible to show which .vimrc,
    600 		.exrc, .viminfo files etc. are used for initializing.  Also
    601 		to show autocommands that are being executed.  Can also be set
    602 		by using the "-V" command-line argument.
    603 
    604 
    605 New command-line arguments				*added-cmdline-args*
    606 --------------------------
    607 
    608 |-U|		Set the gvimrc file to be used.  Like "-u" for the vimrc.
    609 
    610 |-V|		Set the 'verbose' option.  E.g. "vim -V10".
    611 
    612 |-N|		Start in non-compatible mode.
    613 
    614 |-C|		Start in compatible mode.
    615 
    616 |-Z|		Start in restricted mode, disallow shell commands.  Can also
    617 		be done by calling the executable "rvim".
    618 
    619 |-h|		Show usage information and exit.
    620 
    621 
    622 Various additions					*added-various*
    623 -----------------
    624 
    625 Added support for SNiFF+ connection (submitted by Toni Leherbauer).  Vim can
    626 be used as an editor for SNiFF.  No documentation available...
    627 
    628 For producing a bug report, the bugreport.vim script has been included.
    629 Can be used with ":so $VIMRUNTIME/bugreport.vim", which creates the file
    630 "bugreport.txt" in the current directory. |bugs|
    631 
    632 Added range to ":normal" command.  Now you can repeat the same command for
    633 each line in the range.  |:normal-range|
    634 
    635 Included support for the Farsi language (Shiran).  Only when enabled at
    636 compile time.  See |farsi|.
    637 
    638 ==============================================================================
    639 IMPROVEMENTS						*improvements-5*
    640 
    641 Performance:
    642 - When 'showcmd' was set, mappings would execute much more slowly because the
    643   output would be flushed very often.  Helps a lot when executing the "life"
    644   macros with 'showcmd' set.
    645 - Included patches for binary searching in tags file (David O'Neill).
    646   Can be disabled by resetting the 'tagbsearch' option.
    647 - Don't update the ruler when repeating insert (slowed it down a lot).
    648 - For Unix, file name expansion is now done internally instead of starting a
    649   shell for it.
    650 - Expand environment variables with expand_env(), instead of calling the
    651   shell.  Makes ":so $VIMRUNTIME/syntax/syntax.vim" a LOT faster.
    652 - Reduced output for cursor positioning: Use CR-LF for moving to first few
    653   columns in next few lines;  Don't output CR twice when using termios.
    654 - Optimized cursor positioning.  Use CR, BS and NL when it's shorter than
    655   absolute cursor positioning.
    656 - Disable redrawing while repeating insert "1000ii<Esc>".
    657 - Made "d$" or "D" for long lines a lot faster (delete all characters at once,
    658   instead of one by one).
    659 - Access option table by first letter, instead of searching from start.
    660 - Made setting special highlighting attributes a lot faster by using
    661   highlight_attr[], instead of searching in the 'highlight' string.
    662 - Don't show the mode when redrawing is disabled.
    663 - When setting an option, only redraw the screen when required.
    664 - Improved performance of Ex commands by using a lookup table for the first
    665   character.
    666 
    667 Options:
    668 'cinoptions'	Added 'g' flag, for C++ scope declarations.
    669 'cpoptions'	Added 'E' flag: Disallow yanking, deleting, etc. empty text
    670 		area.  Default is to allow empty yanks.  When 'E' is included,
    671 		"y$" in an empty line now is handled as an error (Vi
    672 		compatible).
    673 		Added 'j' flag: Only add two spaces for a join after a '.',
    674 		not after a '?' or '!'.
    675 		Added 'A' flag: don't give ATTENTION message.
    676 		Added 'L' flag: When not included, and 'list' is set,
    677 		'textwidth' formatting works like 'list' is not set.
    678 		Added 'W' flag:  Let ":w!" behave like Vi: don't overwrite
    679 		readonly files, or a file owned by someone else.
    680 'highlight'	Added '@' flag, for '@' characters after the last line on the
    681 		screen, and '$' at the end of the line when 'list' is set.
    682 		Added 'i' flag: Set highlighting for 'incsearch'.  Default
    683 		uses "IncSearch" highlight group, which is linked to "Visual".
    684 		Disallow 'h' flag in 'highlight' (wasn't used anymore since
    685 		3.0).
    686 'guifont'	Win32 GUI only: When set to "*" brings up a font requester.
    687 'guipty'	Default on, because so many people need it.
    688 'path'		Can contain wildcards, and "**" for searching a whole tree.
    689 'shortmess'	Added 'I' flag to avoid the intro message.
    690 'viminfo'	Added '%' flag: Store buffer list in viminfo file.
    691 
    692 - Increased defaults for 'maxmem' and 'maxmemtot' for Unix and Win32.  Most
    693   machines have much more RAM now that prices have dropped.
    694 - Implemented ":set all&", set all options to their default value. |:set|
    695 
    696 Swap file:
    697 - Don't create a swap file for a readonly file.  Then create one on the first
    698   change.  Also create a swapfile when the amount of memory used is getting
    699   too high. |swap-file|
    700 - Make swap file "hidden", if possible.  On Unix this is done by prepending a
    701   dot to the swap file name.  When long file names are used, the DJGPP and
    702   Win32 versions also prepend a dot, in case a file on a mounted Unix file
    703   system is edited.  |:swapname|  On MSDOS the hidden file attribute is NOT
    704   set, because this causes problems with share.exe.
    705 - 'updatecount' always defaults to non-zero, also for Vi compatible mode.
    706   This means there is a swap file, which can be used for recovery.
    707 
    708 Tags:
    709 - Included ctags 2.0 (Darren Hiebert).  The syntax for static tags changed
    710   from
    711 	{tag}:{fname}	{fname}	{command}
    712   to
    713 	{tag}	{fname}	{command};"	file:
    714   Which is both faster to parse, shorter and Vi compatible.  The old format is
    715   also still accepted, unless disabled in src/feature.h (see OLD_STATIC_TAGS).
    716   |tags-file-format|
    717 - Completion of tags now also includes static tags for other files, at the
    718   end.
    719 - Included "shtags" from Stephen Riehm.
    720 - When finding a matching tag, but the file doesn't exist, continue searching
    721   for another match.  Helps when using the same tags file (with links) for
    722   different versions of source code.
    723 - Give a tag with a global match in the current file a higher priority than a
    724   global match in another file.
    725 
    726 Included xxd version V1.8 (Juergen Weigert).
    727 
    728 Autocommands:
    729 - VimLeave autocommands are executed after writing the viminfo file, instead
    730   of before.  |VimLeave|
    731 - Allow changing autocommands while executing them.  This allows for
    732   self-modifying autocommands.  (idea from Goldberg)
    733 - When using autocommands with two or more patterns, could not split
    734   ":if/:endif" over two lines.  Now all matching autocommands are executed in
    735   one do_cmdline().
    736 - Autocommands no longer change the command repeated with ".".
    737 - Search patterns are restored after executing autocommands.  This avoids
    738   that the 'hlsearch' highlighting is messed up by autocommands.
    739 - When trying to execute an autocommand, also try matching the pattern with
    740   the short file name.  Helps when short file name is different from full
    741   file name (expanded symbolic links). |autocmd-patterns|
    742 - Made the output of ":autocmd" shorter and look better.
    743 - Expand <sfile> in an ":autocmd" when it is defined.  |<sfile>|
    744 - Added "nested" flag to ":autocmd", allows nesting.  |autocmd-nested|
    745 - Added [group] argument to ":autocmd".  Overrides the currently set group.
    746   |autocmd-groups|
    747 - new events:
    748   |BufUnload|		before a buffer is unloaded
    749   |BufDelete|		before a buffer is deleted from the buffer list
    750   |FileChangedShell|	when a file's modification time has changed after
    751 			executing a shell command
    752   |User|		user-defined autocommand
    753 - When 'modified' was set by a BufRead* autocommand, it was reset again
    754   afterwards.  Now the ":set modified" is remembered.
    755 
    756 GUI:
    757 - Improved GUI scrollbar handling when redrawing is slower than the scrollbar
    758   events are generated.
    759 - "vim -u NONE" now also stops loading the .gvimrc and other GUI inits.  |-u|
    760   Use "-U" to use another gvimrc file.  |-U|
    761 - Handle CTRL-C for external command, also for systems where "setsid()" is
    762   supported.
    763 - When starting the GUI, restrict the window size to the screen size.
    764 - The default menus are read from $VIMRUNTIME/menu.vim.  This allows for a
    765   customized default menu.  |menu.vim|
    766 - Improved the default menus.  Added File/Print, a Window menu, Syntax menu,
    767   etc.
    768 - Added priority to the ":menu" command.  Now each menu can be put in a place
    769   where you want it, independent of the order in which the menus are defined.
    770   |menu-priority|
    771 
    772 Give a warning in the intro screen when running the Win32 console version on
    773 Windows 95 because there are problems using this version under Windows 95.
    774 |win32-problems|
    775 
    776 Added 'e' flag for ":substitute" command: Don't complain when not finding a
    777 match (Campbell).  |:s|
    778 
    779 When using search commands in a mapping, only the last one is kept in the
    780 history.  Avoids that the history is trashed by long mappings.
    781 
    782 Ignore characters after "ex", "view" and "gvim" when checking startup mode.
    783 Allows the use of "gvim5" et. al.  |gvim| "gview" starts the GUI in readonly
    784 mode.  |gview|
    785 
    786 When resizing windows, the cursor is kept in the same relative position, if
    787 possible.  (Webb)
    788 
    789 ":all" and ":ball" no longer close and then open a window for the same buffer.
    790 Avoids losing options, jumplist, and other info.
    791 
    792 "-f" command-line argument is now ignored if Vim was compiled without GUI.
    793 |-f|
    794 
    795 In Visual block mode, the right mouse button picks up the nearest corner.
    796 
    797 Changed default mappings for DOS et al.  Removed the DOS-specific mappings,
    798 only use the Windows ones.  Added Shift-Insert, Ctrl-Insert, Ctrl-Del and
    799 Shift-Del.
    800 
    801 Changed the numbers in the output of ":jumps", so you can see where {count}
    802 CTRL-O takes you.  |:jumps|
    803 
    804 Using "~" for $HOME now works for all systems.  |$HOME|
    805 
    806 Unix: Besides using CTRL-C, also use the INTR character from the tty settings.
    807 Somebody has INTR set to DEL.
    808 
    809 Allow a <NL> in a ":help" command argument to end the help command, so another
    810 command can follow.
    811 
    812 Doing "%" on a line that starts with "   #if" didn't jump to matching "#else".
    813 Don't recognize "#if", "#else" etc. for '%' when 'cpo' contains the '%' flag.
    814 |%|
    815 
    816 Insert mode expansion with "CTRL-N", "CTRL-P" and "CTRL-X" improved
    817 |ins-completion|:
    818 - 'complete' option added.
    819 - When 'nowrapscan' is set, and no match found, report the searched direction
    820   in the error message.
    821 - Repeating CTRL-X commands adds following words/lines after the match.
    822 - When adding-expansions, accept single character matches.
    823 - Made repeated CTRL-X CTRL-N not break undo, and "." repeats the whole
    824   insertion.  Also fixes not being able to backspace over a word that has been
    825   inserted with CTRL-N.
    826 
    827 When copying characters in Insert mode from previous/next line, with CTRL-E or
    828 CTRL-Y, 'textwidth' is no longer used.  |i_CTRL-E|
    829 
    830 Commands that move in the arglist, like ":n" and ":rew", keep the old cursor
    831 position of the file (this is mostly Vi compatible).
    832 
    833 Vim now remembers the '< and '> marks for each buffer.  This fixes a problem
    834 that a line-delete in one buffer invalidated the '< and '> marks in another
    835 buffer.  |'<|
    836 
    837 For MSDOS, Unix and OS/2: When $VIM not set, use the path from the executable.
    838 When using the executable path for $VIM, remove "src/" when present.  Should
    839 make Vim find the docs and syntax files when it is run directly after
    840 compiling.  |$VIM|
    841 
    842 When quitting Visual mode with <Esc>, the cursor is put at start of the Visual
    843 area (like after executing an operator).
    844 
    845 Win32 and Unix version: Removed 1100 character limit on external commands.
    846 
    847 Added possibility to include a space in a ":edit +command" argument, by
    848 putting a backslash before it.  |+cmd|
    849 
    850 After recovery, BufReadPost autocommands are applied.  |:recover|
    851 
    852 Added color support for "os2ansi", OS/2 console. (Slootman)
    853 
    854 Allow "%:p:h" when % is empty.  |:_%|
    855 
    856 Included "<sfile>": file name from the ":source" command.  |<sfile>|
    857 
    858 Added "<Bslash>" special character.  Helps for avoiding multiple backslashes
    859 in mappings and menus.
    860 
    861 In a help window, a double-click jumps to the tag under the cursor (like
    862 CTRL-]).
    863 
    864 <C-Left> and <C-Right> now work like <S-Left> and <S-Right>, move a word
    865 forward/backward (Windows compatible). |<C-Left>|
    866 
    867 Removed the requirement for a ":version" command in a .vimrc file.  It wasn't
    868 used for anything.  You can use ":if" to handle differences between versions.
    869 |:version|
    870 
    871 For MS-DOS, Win32 and OS/2: When comparing file names for autocommands, don't
    872 make a difference between '/' and '\' for path separator.
    873 
    874 New termcap options:
    875 "mb": blink.  Can only be used by assigning it to one of the other highlight
    876       options.  |t_mb|
    877 "bc": backspace character.  |t_bc|
    878 "nd": Used for moving the cursor right in the GUI, to avoid removing one line
    879       of pixels from the last bold character.  |t_nd|
    880 "xs": highlighting not erased by overwriting, for hpterm.  Combined with
    881       'weirdinvert'.  Visual mode works on hpterm now.  |t_xs|
    882 
    883 Unix: Set time of patch and backup file same as original file.  (Hiebert).
    884 
    885 Amiga: In QuickFix mode no longer opens another window.  Shell commands can be
    886 used now.
    887 
    888 Added decmouse patches from David Binette.  Can now use Dec and Netterm mouse.
    889 But only when enabled at compile time.
    890 
    891 Added '#' register: Alternate file name |quote#|.  Display '#' register with
    892 ":dis" command. |:display|
    893 
    894 Removed ':' from 'isfname' default for Unix.  Check for "://" in a file name
    895 anyway.  Also check for ":\\", for MS-DOS.
    896 
    897 Added count to "K"eyword command, when 'keywordprg' is "man", is inserted in
    898 the man command.  "2K" results in "!man 2 <cword>".  |K|
    899 
    900 When using "gf" on a relative path name, remove "../" from the file name, like
    901 it's done for file names in the tags file. |gf|
    902 
    903 When finishing recording, don't make the recorded register the default put
    904 register.
    905 
    906 When using "!!", don't put ":5,5!" on the command-line, but ":.!".  And some
    907 other enhancements to replace the line number with "." or "$" when possible.
    908 
    909 MSDOS et al.: Renamed $VIM/viminfo to $VIM/_viminfo.  It's more consistent:
    910 .vimrc/_vimrc and .viminfo/_viminfo
    911 
    912 For systems where case doesn't matter in file names (MSDOS, Amiga), ignore
    913 case while sorting file names.  For buffer names too.
    914 
    915 When reading from stdin doesn't work, read from stderr (helps for "foo | xargs
    916 vim").
    917 
    918 32 bit MS-DOS version: Replaced csdpmi3 by csdpmi4.
    919 
    920 Changed <C-Left> and <C-Right> to skip a WORD instead of a word.
    921 
    922 Warning for changed modified time when overwriting a file now also works on
    923 other systems than Unix.
    924 
    925 Unix: Changed the defaults for configure to be the same as the defaults for
    926 Makefile: include GUI, Perl, and Python.
    927 
    928 Some versions of Motif require "-lXpm".  Added check for this in configure.
    929 
    930 Don't add "-L/usr/lib" to the link line, causes problems on a few systems.
    931 
    932 ==============================================================================
    933 COMPILE TIME CHANGES					*compile-changes-5*
    934 
    935 When compiling, allow a choice for minimal, normal or maximal features in an
    936 easy way, by changing a single line in src/feature.h.
    937 The DOS16 version has been compiled with minimal features to avoid running
    938 out of memory too quickly.
    939 The Win32, DJGPP, and OS/2 versions use maximal features, because they have
    940 enough memory.
    941 The Amiga version is available with normal and maximal features.
    942 
    943 Added "make test" to Unix version Makefile.  Allows for a quick check if most
    944 "normal" commands work properly.  Also tests a few specific commands.
    945 
    946 Added setlocale() with codepage support for DJGPP version.
    947 
    948 autoconf:
    949 - Added autoconf check for -lXdmcp.
    950 - Included check for -lXmu, no longer needed to edit the Makefile for this.
    951 - Switched to autoconf 2.12.
    952 - Added configure check for <poll.h>.  Seems to be needed when including
    953   Perl on Linux?
    954 - termlib is now checked before termcap.
    955 - Added configure check for strncasecmp(), stricmp() and strnicmp().  Added
    956   vim_stricmp() for when there's no library function for stricmp().
    957 - Use "datadir" in configure, instead of our own check for HELPDIR.
    958 
    959 Removed "make proto" from Makefile.manx.  Could not make it work without a lot
    960 of #ifdefs.
    961 
    962 Removed "proto/" from paths in proto.h.  Needed for the Mac port.
    963 
    964 Drastically changed Makefile.mint.  Now it includes the Unix Makefile.
    965 
    966 Added support for Dos16 in Makefile.b32 (renamed Makefile.b32 to Makefile.bor)
    967 
    968 All source files are now edited with a tabstop of 8 instead of 4, which is
    969 better when debugging and using other tools.  'softtabstop' is set to 4, to
    970 make editing easier.
    971 
    972 Unix: Added "link.sh" script, which removes a few unnecessary libraries from
    973 the link command.
    974 
    975 Don't use HPUX digraphs by default, but only when HPUX_DIGRAPHS is defined.
    976 |digraphs-default|
    977 
    978 ==============================================================================
    979 BUG FIXES						*bug-fixes-5*
    980 
    981 Note:	Some of these fixes may only apply to test versions which were
    982 	created after version 4.6, but before 5.0.
    983 
    984 
    985 When doing ":bdel", try going to the next loaded buffer.  Don't rewind to the
    986 start of the buffer list.
    987 
    988 mch_isdir() for Unix returned TRUE for "" on some systems.
    989 
    990 Win32: 'shell' set to "mksnt/sh.exe" breaks ":!" commands.  Don't use
    991 backslashes in the temp file names.
    992 
    993 On linux, with a FAT file system, could get spurious "file xxx changed since
    994 editing started" messages, because the time is rounded off to two seconds
    995 unexpectedly.
    996 
    997 Crash in GUI, when selecting a word (double click) and then extend until an
    998 empty line.
    999 
   1000 For systems where isdigit() can't handle characters > 255, get_number() caused
   1001 a crash when moving the mouse during the prompt for recovery.
   1002 
   1003 In Insert mode, "CTRL-O P" left the cursor on the last inserted character.
   1004 Now the cursor is left after the last putted character.
   1005 
   1006 When quickfix found an error type other than 'e' or 'w', it was never printed.
   1007 
   1008 A setting for 'errorfile' in a .vimrc overruled the "-q errorfile" argument.
   1009 
   1010 Some systems create a file when generating a temp file name.  Filtering would
   1011 then create a backup file for this, which was never deleted.  Now no backup
   1012 file is made when filtering.
   1013 
   1014 simplify_filename() could remove a ".." after a link, resulting in the wrong
   1015 file name.  Made simplify_filename also work for MSDOS.  Don't use it for
   1016 Amiga, since it doesn't have "../".
   1017 
   1018 otherfile() was unreliable when using links.  Could think that reading/writing
   1019 was for a different file, when it was the same.
   1020 
   1021 Pasting with mouse in Replace mode didn't replace anything.
   1022 
   1023 Window height computed wrong when resizing a window with an autocommand (could
   1024 cause a crash).
   1025 
   1026 ":s!foo!bar!" wasn't possible (Vi compatible).
   1027 
   1028 do_bang() freed memory twice when called recursively, because of autocommands
   1029 (test11).  Thanks to Electric Fence!
   1030 
   1031 "v$d" on an empty line didn't remove the "-- VISUAL --" mode message from the
   1032 command-line, and inverted the cursor.
   1033 
   1034 ":mkexrc" didn't check for failure to open the file, causing a crash.
   1035 (Felderhoff).
   1036 
   1037 Win32 mch_write() wrote past fixed buffer, causing terminal keys no longer to
   1038 be recognized.  Both console and GUI version.
   1039 
   1040 Athena GUI: Crash when removing a menu item.  Now Vim doesn't crash, but the
   1041 reversing of the menu item is still wrong.
   1042 
   1043 Always reset 'list' option for the help window.
   1044 
   1045 When 'scrolloff' is non-zero, a 'showmatch' could cause the shown match to be
   1046 in the wrong line and the window to be scrolled (Acevedo).
   1047 
   1048 After ":set all&", 'lines' and 'ttytype' were still non-default, because the
   1049 defaults never got set.  Now the defaults for 'lines' and 'columns' are set
   1050 after detecting the window size.  'term' and 'ttytype' defaults are set when
   1051 detecting the terminal type.
   1052 
   1053 For (most) non-Unix systems, don't add file names with illegal characters when
   1054 expanding.  Fixes "cannot open swapfile" error when doing ":e *.burp", when
   1055 there is no match.
   1056 
   1057 In X11 GUI, drawing part of the cursor obscured the text.  Now the text is
   1058 drawn over the cursor, like when it fills the block. (Seibert)
   1059 
   1060 when started with "-c cmd -q errfile", the cursor would be left in line 1.
   1061 Now a ":cc" is done after executing "cmd".
   1062 
   1063 ":ilist" never ignored case, even when 'ignorecase' set.
   1064 
   1065 "vim -r file" for a readonly file, then making a change, got ATTENTION message
   1066 in insert mode, display mixed up until <Esc> typed.  Also don't give ATTENTION
   1067 message after recovering a file.
   1068 
   1069 The abbreviation ":ab #i #include" could not be removed.
   1070 
   1071 CTRL-L completion (longest common match) on command-line didn't work properly
   1072 for case-insensitive systems (MS-DOS, Windows, etc.).  (suggested by Richard
   1073 Kilgore).
   1074 
   1075 For terminals that can hide the cursor ("vi" termcap entry), resizing the
   1076 window caused the cursor to disappear.
   1077 
   1078 Using an invalid mark in an Ex address didn't abort the command.
   1079 
   1080 When 'smarttab' set, would use 'shiftround' when inserting a TAB after a
   1081 space.  Now it always rounds to a tabstop.
   1082 
   1083 Set '[ and '] marks for ":copy", ":move", ":append", ":insert", ":substitute"
   1084 and ":change".  (Acevedo).
   1085 
   1086 "d$" in an empty line still caused an error, even when 'E' is not in
   1087 'cpoptions'.
   1088 
   1089 Help files were stored in the viminfo buffer list without a path.
   1090 
   1091 GUI: Displaying cursor was not synchronized with other displaying.  Caused
   1092 several display errors.  For example, when the last two lines in the file
   1093 start with spaces, "dd" on the last line copied text to the (then) last line.
   1094 
   1095 Win32: Needed to type CTRL-SHIFT-- to get CTRL-_.
   1096 
   1097 GUI: Moving the cursor forwards over bold text would remove one column of bold
   1098 pixels.
   1099 
   1100 X11 GUI: When a bold character in the last column was scrolled up or down, one
   1101 column of pixels would not be copied.
   1102 
   1103 Using <BS> to move the cursor left can sometimes erase a character.  Now use
   1104 "le" termcap entry for this.
   1105 
   1106 Keyword completion with regexp didn't work.  e.g., for "b.*crat".
   1107 
   1108 Fixed: With CTRL-O that jumps to another file, cursor could end up just after
   1109 the line.
   1110 
   1111 Amiga: '$' was missing from character recognized as wildcards, causing $VIM
   1112 sometimes not to be expanded.
   1113 
   1114 ":change" didn't adjust marks for deleted lines.
   1115 
   1116 ":help [range]" didn't work.  Also for [pattern], [count] and [quotex].
   1117 
   1118 For 'cindent'ing, typing "class::method" doesn't align like a label when the
   1119 second ':' is typed.
   1120 When inserting a CR with 'cindent' set (and a bunch of other conditions) the
   1121 cursor went to a wrong location.
   1122 'cindent' was wrong for a line that ends in '}'.
   1123 'cindent' was wrong after "else {".
   1124 
   1125 While editing the cmdline in the GUI, could not use the mouse to select text
   1126 from the command-line itself.
   1127 
   1128 When deleting lines, marks in tag stack were only adjusted for the current
   1129 window, not for other windows on the same buffer.
   1130 
   1131 Tag guessing could find a function "some_func" instead of the "func" we were
   1132 looking for.
   1133 
   1134 Tags file name relative to the current file didn't work.
   1135 
   1136 ":g/pat2/s//pat2/g", causing the number of subs to be reported, used to cause
   1137 a scroll up.  Now you no longer have to hit <CR>.
   1138 
   1139 X11 GUI: Selecting text could cause a crash.
   1140 
   1141 32 bit DOS version: CTRL-C in external command killed Vim.  When SHELL is set
   1142 to "sh.exe", external commands didn't work.  Removed using of command.com, no
   1143 longer need to set 'shellquote'.
   1144 
   1145 Fixed crash when using ":g/pat/i".
   1146 
   1147 Fixed (potential) crash for X11 GUI, when using an X selection.  Was giving a
   1148 pointer on the stack to a callback function, now it's static.
   1149 
   1150 Using "#" and "*" with an operator didn't work.  E.g. "c#".
   1151 
   1152 Command-line expansion didn't work properly after ":*". (Acevedo)
   1153 
   1154 Setting 'weirdinvert' caused highlighting to be wrong in the GUI.
   1155 
   1156 ":e +4 #" didn't work, because the "4" was in unallocated memory (could cause
   1157 a crash).
   1158 
   1159 Cursor position was wrong for ":e #", after ":e #" failed, because of changes
   1160 to the buffer.
   1161 
   1162 When doing ":buf N", going to a buffer that was edited with ":view", the
   1163 readonly flag was reset.  Now make a difference between ":e file" and ":buf
   1164 file": Only set/reset 'ro' for the first one.
   1165 
   1166 Avoid |hit-enter| prompt when not able to write viminfo on exit.
   1167 
   1168 When giving error messages in the terminal where the GUI was started, GUI
   1169 escape codes would be written to the terminal.  In an xterm this could be seen
   1170 as a '$' after the message.
   1171 
   1172 Mouse would not work directly after ":gui", because full_screen isn't set,
   1173 which causes starttermcap() not to do its work.
   1174 
   1175 'incsearch' did not scroll the window in the same way as the actual search.
   1176 When 'nowrap' set, incsearch didn't show a match when it was off the side of
   1177 the screen.  Now it also shows the whole match, instead of just the cursor
   1178 position (if possible).
   1179 
   1180 ":unmap", ":unab" and ":unmenu" did not accept a double quote, it was seen as
   1181 the start of a comment.  Now it's Vi compatible.
   1182 
   1183 Using <Up><Left><Left><Up> in the command-line, when there is no previous
   1184 cmdline in the history, inserted a NUL on the command-line.
   1185 
   1186 "i<Esc>" when on a <Tab> in column 0 left the cursor in the wrong place.
   1187 
   1188 GUI Motif: When adding a lot of menu items, the menu bar goes into two rows.
   1189 Deleting menu items, reducing the number of rows, now also works.
   1190 
   1191 With ":g/pat/s//foo/c", a match in the first line was scrolled off of the
   1192 screen, so you could not see it.
   1193 When using ":s//c", with 'nowrap' set, a match could be off the side of the
   1194 screen, so you could not see it.
   1195 
   1196 When 'helpfile' was set to a fixed, non-absolute path in feature.h, Vim would
   1197 crash.  mch_Fullname can now handle file names in read-only memory. (Lottem)
   1198 
   1199 When using CTRL-A or CTRL-@ in Insert mode, there could be strange effects
   1200 when using CTRL-D next.  Also, when repeating inserted text that included "0
   1201 CTRL-D" or "^ CTRL-D" this didn't work. (Acevedo)
   1202 Using CTRL-D after using CTRL-E or CTRL-Y in Insert mode that inserted a '0'
   1203 or '^', removed the '0' or '^' and more indent.
   1204 
   1205 The command "2".p" caused the last inserted text to be executed as commands.
   1206 (Acevedo)
   1207 
   1208 Repeating the insert of "CTRL-V 048" resulted in "^@" to be inserted.
   1209 
   1210 Repeating Insert completion could fail if there are special characters in the
   1211 text. (Acevedo)
   1212 
   1213 ":normal /string<CR>" caused the window to scroll.  Now all ":normal" commands
   1214 are executed without scrolling messages.
   1215 
   1216 Redo of CTRL-E or CTRL-Y in Insert mode interpreted special characters as
   1217 commands.
   1218 
   1219 Line wrapping for 'tw' was done one character off for insert expansion
   1220 inserts.
   1221 
   1222 buffer_exists() function didn't work properly for buffer names with a symbolic
   1223 link in them (e.g. when using buffer_exists(#)).
   1224 
   1225 Removed the "MOTIF_COMMENT" construction from Makefile.  It now works with
   1226 FreeBSD make, and probably with NeXT make too.
   1227 
   1228 Matching the 'define' and 'include' arguments now honor the settings for
   1229 'ignorecase'. (Acevedo)
   1230 
   1231 When one file shown in two windows, Visual selection mixed up cursor position
   1232 in current window and other window.
   1233 
   1234 When doing ":e file" from a help file, the 'isk' option wasn't reset properly,
   1235 because of a modeline in the help file.
   1236 
   1237 When doing ":e!", a cursor in another window on the same buffer could become
   1238 invalid, leading to "ml_get: invalid lnum" errors.
   1239 
   1240 Matching buffer name for when expanded name has a different path from not
   1241 expanded name (Brugnara).
   1242 
   1243 Normal mappings didn't work after an operator.  For example, with ":map Q gq",
   1244 "QQ" didn't work.
   1245 
   1246 When ":make" resulted in zero errors, a "No Errors" error message was given
   1247 (which breaks mappings).
   1248 
   1249 When ":sourcing" a file, line length was limited to 1024 characters.  CTRL-V
   1250 before <EOL> was not handled Vi compatible.  (Acevedo)
   1251 
   1252 Unexpected exit for X11 GUI, caused by SAVE_YOURSELF event.  (Heimann)
   1253 
   1254 CTRL-X CTRL-I only found one match per line. (Acevedo)
   1255 When using an illegal CTRL-X key in Insert mode, the CTRL-X mode message
   1256 was stuck.
   1257 
   1258 Finally managed to ignore the "Quit" menu entry of the Window manager!  Now
   1259 Vim only exists when there are no changed buffers.
   1260 
   1261 Trying to start the GUI when $DISPLAY is not set resulted in a crash.
   1262 When $DISPLAY is not set and gvim starts vim, title was restored to "Thanks
   1263 for flying Vim".
   1264 When $DISPLAY not set, starting "gvim" (dropping back to vim) and then
   1265 selecting text with the mouse caused a crash.
   1266 
   1267 "J", with 'joinspaces' set, on a line ending in ". ", caused one space too
   1268 many to be added.  (Acevedo)
   1269 
   1270 In insert mode, a CTRL-R {regname} which didn't insert anything left the '"'
   1271 on the screen.
   1272 
   1273 ":z10" didn't work. (Clapp)
   1274 
   1275 "Help "*" didn't work.
   1276 
   1277 Renamed a lot of functions, to avoid clashes with POSIX name space.
   1278 
   1279 When adding characters to a line, making it wrap, the following lines were
   1280 sometimes not shifted down (e.g. after a tag jump).
   1281 
   1282 CTRL-E, with 'so' set and cursor on last line, now does not move cursor as
   1283 long as the last line is on the screen.
   1284 
   1285 When there are two windows, doing "^W+^W-" in the bottom window could cause
   1286 the status line to be doubled (not redrawn correctly).
   1287 
   1288 This command would hang: ":n `cat`".  Now connect stdin of the external
   1289 command to /dev/null, when expanding.
   1290 
   1291 Fixed lalloc(0,) error for ":echo %:e:r".  (Acevedo)
   1292 
   1293 The "+command" argument to ":split" didn't work when there was no file name.
   1294 
   1295 When selecting text in the GUI, which is the output of a command-line command
   1296 or an external command, the inversion would sometimes remain.
   1297 
   1298 GUI: "-mh 70" argument was broken.  Now, when menuheight is specified, it is
   1299 not changed anymore.
   1300 
   1301 GUI: When using the scrollbar or mouse while executing an external command,
   1302 this caused garbage characters.
   1303 
   1304 Showmatch sometimes jumped to the wrong position.  Was caused by a call to
   1305 findmatch() when redrawing the display (when syntax highlighting is on).
   1306 
   1307 Search pattern "\(a *\)\{3} did not work correctly, also matched "a a".
   1308 Problem with brace_count not being decremented.
   1309 
   1310 Wildcard expansion added too many non-matching file names.
   1311 
   1312 When 'iskeyword' contains characters like '~', "*" and "#" didn't work
   1313 properly. (Acevedo)
   1314 
   1315 On Linux, on a FAT file system, modification time can change by one second.
   1316 Avoid a "file has changed" warning for a one second difference.
   1317 
   1318 When using the page-switching in an xterm, Vim would position the cursor on
   1319 the last line of the window on exit.  Also removed the cursor positioning for
   1320 ":!" commands.
   1321 
   1322 ":g/pat/p" command (partly) overwrote the command.  Now the output is on a
   1323 separate line.
   1324 
   1325 With 'ic' and 'scs' set, a search for "Keyword", ignore-case matches were
   1326 highlighted too.
   1327 
   1328 "^" on a line with only white space, put cursor beyond the end of the line.
   1329 
   1330 When deleting characters before where insertion started ('bs' == 2), could not
   1331 use abbreviations.
   1332 
   1333 CTRL-E at end of file puts cursor below the file, in Visual mode, when 'so' is
   1334 non-zero.  CTRL-E didn't work when 'so' is big and the line below the window
   1335 wraps.  CTRL-E, when 'so' is non-zero, at end of the file, caused jumping
   1336 up-down.
   1337 
   1338 ":retab" didn't work well when 'list' is set.
   1339 
   1340 Amiga: When inserting characters at the last line on the screen, causing it
   1341 to wrap, messed up the display.  It appears that a '\n' on the last line
   1342 doesn't always cause a scroll up.
   1343 
   1344 In Insert mode "0<C-D><C-D>" deleted an extra character, because Vim thought
   1345 that the "0" was still there. (Acevedo)
   1346 
   1347 "z{count}l" ignored the count.  Also for "zh" et. al. (Acevedo)
   1348 
   1349 "S" when 'autoindent' is off didn't delete leading white space.
   1350 
   1351 "/<Tab>" landed on the wrong character when 'incsearch' is set.
   1352 
   1353 Asking a yes/no question could cause a |hit-enter| prompt.
   1354 
   1355 When the file consists of one long line (>4100 characters), making changes
   1356 caused various errors and a crash.
   1357 
   1358 DJGPP version could not save long lines (>64000) for undo.
   1359 
   1360 "yw" on the last char in the file didn't work.  Also fixed "6x" at the end of
   1361 the line.  "6X" at the start of a line fails, but does not break a mapping.  In
   1362 general, a movement for an operator doesn't beep or flush a mapping, but when
   1363 there is nothing to operate on it beeps (this is Vi compatible).
   1364 
   1365 "m'" and "m`" now set the '' mark at the cursor position.
   1366 
   1367 Unix: Resetting of signals for external program didn't work, because SIG_DFL
   1368 and NULL are the same!  For "!!yes|dd count=1|, the yes command kept on
   1369 running.
   1370 
   1371 Partly fixed: Unix GUI: Typeahead while executing an external command was lost.
   1372 Now it's not lost while the command is producing output.
   1373 
   1374 Typing <S-Tab> in Insert mode, when it isn't mapped, inserted "<S-Tab>".  Now
   1375 it works like a normal <Tab>, just like <C-Tab> and <M-Tab>.
   1376 
   1377 Redrawing ruler didn't check for old value correctly (caused UMR warnings in
   1378 Purify).
   1379 
   1380 Negative array index in finish_viminfo_history().
   1381 
   1382 ":g/^/d|mo $" deleted all the lines.  The ":move" command now removes the
   1383 :global mark from the moved lines.
   1384 
   1385 Using "vG" while the last line in the window is a "@" line, didn't update
   1386 correctly.  Just the "v" showed "~" lines.
   1387 
   1388 "daw" on the last char of the file, when it's a space, moved the cursor beyond
   1389 the end of the line.
   1390 
   1391 When 'hlsearch' was set or reset, only the current buffer was redrawn, while
   1392 this affects all windows.
   1393 
   1394 CTRL-^, positioning the cursor somewhere from 1/2 to 1 1/2 screen down the
   1395 file, put the cursor at the bottom of the window, instead of halfway.
   1396 
   1397 When scrolling up for ":append" command, not all windows were updated
   1398 correctly.
   1399 
   1400 When 'hlsearch' is set, and an auto-indent is highlighted, pressing <Esc>
   1401 didn't remove the highlighting, although the indent was deleted.
   1402 
   1403 When 'ru' set and 'nosc', using "$j" showed a wrong ruler.
   1404 
   1405 Under Xfree 3.2, Shift-Tab didn't work (wrong keysym is used).
   1406 
   1407 Mapping <S-Tab> didn't work.  Changed the key translations to use the shortest
   1408 key code possible.  This makes the termcode translations and mappings more
   1409 consistent.  Now all modifiers work in all combinations, not only with <Tab>,
   1410 but also with <Space>, <CR>, etc.
   1411 
   1412 For Unix, restore three more signals.  And Vim catches SIGINT now, so CTRL-C
   1413 in Ex mode doesn't make Vim exit.
   1414 
   1415 ""a5Y" yanked 25 lines instead of 5.
   1416 
   1417 "vrxxx<Esc>" in an empty line could not be undone.
   1418 
   1419 A CTRL-C that breaks ":make" caused the errorfile not to be read (annoying
   1420 when you want to handle what ":make" produced so far).
   1421 
   1422 ":0;/pat" didn't find "pat" in line 1.
   1423 
   1424 Search for "/test/s+1" at first char of file gave bottom-top message, or
   1425 didn't work at all with 'nowrapscan'.
   1426 
   1427 Bug in viminfo history.  Could cause a crash on exit.
   1428 
   1429 ":print" didn't put cursor on first non-blank in line.
   1430 
   1431 ":0r !cat </dev/null" left cursor in line zero, with very strange effects.
   1432 
   1433 With 'showcmd' set and 'timeoutlen' set to a few seconds, trick to position
   1434 the cursor leftwards didn't work.
   1435 
   1436 AIX stty settings were restored to cs5 instead of cs8 (Winn).
   1437 
   1438 File name completion didn't work for "zsh" versions that put spaces between
   1439 file names, instead of NULs.
   1440 
   1441 Changed "XawChain*" to "XtChain*", should work for more systems.
   1442 
   1443 Included quite a few fixes for rightleft mode (Lottem).
   1444 
   1445 Didn't ask to |hit-enter| when GUI is started and error messages are printed.
   1446 
   1447 When trying to edit a file in a non-existent directory, ended up with editing
   1448 "No file".
   1449 
   1450 "gqap" to format a paragraph did too much redrawing.
   1451 
   1452 When 'hlsearch' set, only the current window was updated for a new search
   1453 pattern.
   1454 
   1455 Sometimes error messages on startup didn't cause a |hit-enter| prompt,
   1456 because of autocommands containing an empty line.
   1457 
   1458 Was possible to select part of the window in the border, below the command
   1459 line.
   1460 
   1461 '< and '> marks were not at the correct position after linewise Visual
   1462 selection.
   1463 
   1464 When translating a help argument to "CTRL-x", prepend or append a '_', when
   1465 applicable.
   1466 
   1467 Blockwise visual mode wasn't correct when moving vertically over a special
   1468 character (displayed as two screen characters).
   1469 
   1470 Renamed "struct option" to "struct vimoption" to avoid name clash with GNU
   1471 getopt().
   1472 
   1473 ":abclear" didn't work (but ":iabclear" and ":cabclear" did work).
   1474 
   1475 When 'nowrap' used, screen wasn't always updated correctly.
   1476 
   1477 "vim -c split file" displayed extra lines.
   1478 
   1479 After starting the GUI, searched the termcap for a "gui" term.
   1480 
   1481 When 'hls' used, search for "^$" caused a hang.
   1482 When 'hls' was set, an error in the last regexp caused trouble.
   1483 
   1484 Unix: Only output an extra <EOL> on exit when outputted something in the
   1485 alternate screen, or when there is a message that needs to be cleared.
   1486 
   1487 "/a\{" did strange things, depending on previous search.
   1488 
   1489 "c}" only redrew one line (with -u NONE).
   1490 
   1491 For mappings, CTRL-META-A was shown as <M-^A> instead of <MC-A>, while :map
   1492 only accepts <MC-A>.  Now <M-C-A> is shown.
   1493 
   1494 Unix: When using full path name in a tags file, which contains a link, and
   1495 'hidden' set and jumping to a tag in the current file, would get bogus
   1496 ATTENTION message.  Solved by always expanding file names, even when starting
   1497 with '/'.
   1498 
   1499 'hlsearch' highlighting of special characters (e.g., a TAB) didn't highlight
   1500 the whole thing.
   1501 
   1502 "r<CR>" didn't work correctly on the last char of a line.
   1503 
   1504 Sometimes a window resize or other signal caused an endless loop, involving
   1505 set_winsize().
   1506 
   1507 "vim -r" didn't work, it would just hang (using tgetent() while 'term' is
   1508 empty).
   1509 
   1510 "gk" while 'nowrap' set moved two lines up.
   1511 
   1512 When windows are split, a message that causes a scroll-up messed up one of the
   1513 windows, which required a CTRL-L to be typed.
   1514 
   1515 Possible endless loop when using shell command in the GUI.
   1516 
   1517 Menus defined in the .vimrc were removed when GUI started.
   1518 
   1519 Crash when pasting with the mouse in insert mode.
   1520 
   1521 Crash with ":unmenu *" in .gvimrc for Athena.
   1522 
   1523 "5>>" shifted 5 lines 5 times, instead of 1 time.
   1524 
   1525 CTRL-C when getting a prompt in ":global" didn't interrupt.
   1526 
   1527 When 'so' is non-zero, and moving the scrollbar completely to the bottom,
   1528 there was a lot of flashing.
   1529 
   1530 GUI: Scrollbar ident must be long for DEC Alpha.
   1531 
   1532 Some functions called vim_regcomp() without setting reg_magic, which could
   1533 lead to unpredictable magicness.
   1534 
   1535 Crash when clicking around the status line, could get a selection with a
   1536 backwards range.
   1537 
   1538 When deleting more than one line characterwise, the last character wasn't
   1539 deleted.
   1540 
   1541 GUI: Status line could be overwritten when moving the scrollbar quickly (or
   1542 when 'wd' is non-zero).
   1543 
   1544 An ESC at the end of a ":normal" command caused a wait for a terminal code to
   1545 finish.  Now, a terminal code is not recognized when its start comes from a
   1546 mapping or ":normal" command.
   1547 
   1548 Included patches from Robert Webb for GUI.  Layout of the windows is now done
   1549 inside Vim, instead of letting the layout manager do this.  Makes Vim work
   1550 with Lesstif!
   1551 
   1552 UMR warning in set_expand_context().
   1553 
   1554 Memory leak: b_winlnum list was never freed.
   1555 
   1556 Removed TIOCLSET/TIOCLGET code from os_unix.c.  Was changing some of the
   1557 terminal settings, and looked like it wasn't doing anything good.  (suggested
   1558 by Juergen Weigert).
   1559 
   1560 Ruler overwrote "is a directory" message.  When starting up, and 'cmdheight'
   1561 set to > 1, first message could still be in the last line.
   1562 
   1563 Removed prototype for putenv() from proto.h, it's already in osdef2.h.in.
   1564 
   1565 In replace mode, when moving the cursor and then backspacing, wrong characters
   1566 were inserted.
   1567 
   1568 Win32 GUI was checking for a CTRL-C too often, making it slow.
   1569 
   1570 Removed mappings for MS-DOS that were already covered by commands.
   1571 
   1572 When visually selecting all lines in a file, cursor at last line, then "J".
   1573 Gave ml_get errors.  Was a problem with scrolling down during redrawing.
   1574 
   1575 When doing a linewise operator, and then an operator with a mouse click, it
   1576 was also linewise, instead of characterwise.
   1577 
   1578 When 'list' is set, the column of the ruler was wrong.
   1579 
   1580 Spurious error message for "/\(b\+\)*".
   1581 
   1582 When visually selected many lines, message from ":w file" disappeared when
   1583 redrawing the screen.
   1584 
   1585 ":set <M-b>=^[b", then insert "^[b", waited for another character.  And then
   1586 inserted "<M-b>" instead of the real <M-b> character.  Was trying to insert
   1587 K_SPECIAL x NUL.
   1588 
   1589 CTRL-W ] didn't use count to set window height.
   1590 
   1591 GUI: "-font" command-line argument didn't override 'guifont' setting from
   1592 .gvimrc. (Acevedo)
   1593 
   1594 GUI: clipboard wasn't used for "*y".  And some more Win32/X11 differences
   1595 fixed for the clipboard (Webb).
   1596 
   1597 Jumping from one help file to another help file, with 'compatible' set,
   1598 removed the 'help' flag from the buffer.
   1599 
   1600 File-writable bit could be reset when using ":w!" for a readonly file.
   1601 
   1602 There was a wait for CTRL-O n in Insert mode, because the search pattern was
   1603 shown.
   1604 Reduced wait, to allow reading a message, from 10 to 3 seconds.  It seemed
   1605 nothing was happening.
   1606 
   1607 ":recover" found same swap file twice.
   1608 
   1609 GUI: "*yy only worked the second time (when pasting to an xterm)."
   1610 
   1611 DJGPP version (dos32): The system flags were cleared.
   1612 
   1613 Dos32 version: Underscores were sometimes replaced with y-umlaut (Levin).
   1614 
   1615 Version 4.1 of ncurses can't handle tputs("", ..).  Avoid calling tputs() with
   1616 an empty string.
   1617 
   1618 <S-Tab> in the command-line worked like CTRL-P when no completion started yet.
   1619 Now it does completion, last match first.
   1620 
   1621 Unix: Could get annoying "can't write viminfo" message after doing "su".  Now
   1622 the viminfo file is overwritten, and the user set back to the original one.
   1623 
   1624 ":set term=builtin_gui" started the GUI in a wrong way.  Now it's not
   1625 allowed anymore.  But "vim -T gui" does start the GUI correctly now.
   1626 
   1627 GUI: Triple click after a line only put last char in selection, when it is a
   1628 single character word.
   1629 
   1630 When the window is bigger than the screen, the scrolling up of messages was
   1631 wrong (e.g. ":vers", ":hi").  Also when the bottom part of the window was
   1632 obscured by another window.
   1633 
   1634 When using a wrong option only an error message is printed, to avoid that the
   1635 usage information makes it scroll off the screen.
   1636 
   1637 When exiting because of not being able to read from stdin, didn't preserve the
   1638 swap files properly.
   1639 
   1640 Visual selecting all chars in more than one line, then hit "x" didn't leave an
   1641 empty line.  For one line it did leave an empty line.
   1642 
   1643 Message for which autocommand is executing messed up file write message (for
   1644 FileWritePost event).
   1645 
   1646 "vim -h" included "-U" even when GUI is not available, and "-l" when lisp is
   1647 not available.
   1648 
   1649 Crash for ":he <C-A>" (command-line longer than screen).
   1650 
   1651 ":s/this/that/gc", type "y" two times, then undo, did reset the modified
   1652 option, even though the file is still modified.
   1653 
   1654 Empty lines in a tags file caused a ":tag" to be aborted.
   1655 
   1656 When hitting 'q' at the more prompt for ":menu", still scrolled a few lines.
   1657 
   1658 In an xterm that uses the bold trick a single row of characters could remain
   1659 after an erased bold character.  Now erase one extra char after the bold char,
   1660 like for the GUI.
   1661 
   1662 ":pop!" didn't work.
   1663 
   1664 When the reading a buffer was interrupted, ":w" should not be able to
   1665 overwrite the file, ":w!" is required.
   1666 
   1667 ":cf%" caused a crash.
   1668 
   1669 ":gui longfilename", when forking is enabled, could leave part of the
   1670 longfilename at the shell prompt.
   1671 
   1672 ==============================================================================
   1673 VERSION 5.1						*version-5.1*
   1674 
   1675 Improvements made between version 5.0 and 5.1.
   1676 
   1677 This was mostly a bug-fix release, not many new features.
   1678 
   1679 
   1680 Changed							*changed-5.1*
   1681 -------
   1682 
   1683 The expand() function now separates file names with <NL> instead of a space.
   1684 This avoids problems for file names with embedded spaces.  To get the old
   1685 result, use substitute(expand(foo), "\n", " ", "g").
   1686 
   1687 For Insert-expanding dictionaries allow a backslash to be used for
   1688 wildchars.  Allows expanding "ze\kra", when 'isk' includes a backslash.
   1689 
   1690 New icon for the Win32 GUI.
   1691 
   1692 ":tag", ":tselect" etc. only use the argument as a regexp when it starts
   1693 with '/'.  Avoids that ":tag xx~" gives an error message: "No previous sub.
   1694 regexp".  Also, when the :tag argument contained wildcard characters, it was
   1695 not Vi compatible.
   1696 When using '/', the argument is taken literally too, with a higher priority,
   1697 so it's found before wildcard matches.
   1698 Only when the '/' is used are matches with different case found, even though
   1699 'ignorecase' isn't set.
   1700 Changed "g^]" to only do ":tselect" when there is more than on matching tag.
   1701 
   1702 Changed some of the default colors, because they were not very readable on a
   1703 dark background.
   1704 
   1705 A character offset to a search pattern can move the cursor to the next or
   1706 previous line.  Also fixes that "/pattern/e+2" got stuck on "pattern" at the
   1707 end of a line.
   1708 
   1709 Double-clicks in the status line do no longer start Visual mode.  Dragging a
   1710 status line no longer stops Visual mode.
   1711 
   1712 Perl interface: Buffers() and Windows() now use more logical arguments, like
   1713 they are used in the rest of Vim (Moore).
   1714 
   1715 Init '" mark to the first character of the first line.  Makes it possible to
   1716 use '" in an autocommand without getting an error message.
   1717 
   1718 
   1719 Added							*added-5.1*
   1720 -----
   1721 
   1722 "shell_error" internal variable: result of last shell command.
   1723 
   1724 ":echohl" command: Set highlighting for ":echo".
   1725 
   1726 'S' flag in 'highlight' and StatusLineNC highlight group: highlighting for
   1727 status line of not-current window.  Default is to use bold for current
   1728 window.
   1729 
   1730 Added buffer_name() and buffer_number() functions (Aaron).
   1731 Added flags argument "g" to substitute() function (Aaron).
   1732 Added winheight() function.
   1733 
   1734 Win32: When an external command starts with "start ", no console is opened
   1735 for it (Aaron).
   1736 
   1737 Win32 console: Use termcap codes for bold/reverse based on the current
   1738 console attributes.
   1739 
   1740 Configure check for "strip". (Napier)
   1741 
   1742 CTRL-R CTRL-R x in Insert mode: Insert the contents of a register literally,
   1743 instead of as typed.
   1744 
   1745 Made a few "No match" error messages more informative by adding the pattern
   1746 that didn't match.
   1747 
   1748 "make install" now also copies the macro files.
   1749 
   1750 tools/tcltags, a shell script to generate a tags file from a TCL file.
   1751 
   1752 "--with-tlib" setting for configure.  Easy way to use termlib: "./configure
   1753 --with-tlib=termlib".
   1754 
   1755 'u' flag in 'cino' for setting the indent for contained () parts.
   1756 
   1757 When Win32 OLE version can't load the registered type library, ask the user
   1758 if he wants to register Vim now. (Erhardt)
   1759 Win32 with OLE: When registered automatically, exit Vim.
   1760 Included VisVim 1.1b, with a few enhancements and the new icon (Heiko
   1761 Erhardt).
   1762 
   1763 Added patch from Vince Negri for Win32s support.  Needs to be compiled with
   1764 VC 4.1!
   1765 
   1766 Perl interface: Added $curbuf.  Rationalized Buffers() and Windows().
   1767 (Moore) Added "group" argument to Msg().
   1768 
   1769 Included Perl files in DOS source archive.  Changed Makefile.bor and
   1770 Makefile.w32 to support building a Win32 version with Perl included.
   1771 
   1772 Included new Makefile.w32 from Ken Scott.  Now it's able to make all Win32
   1773 versions, including OLE, Perl and Python.
   1774 
   1775 Added CTRL-W g ] and CTRL-W g ^]: split window and do g] or g^].
   1776 
   1777 Added "g]" to always do ":tselect" for the ident under the cursor.
   1778 Added ":tjump" and ":stjump" commands.
   1779 Improved listing of ":tselect" when tag names are a bit long.
   1780 
   1781 Included patches for the Macintosh version.  Also for Python interface.
   1782 (St-Amant)
   1783 
   1784 ":buf foo" now also restores cursor column, when the buffer was used before.
   1785 
   1786 Adjusted the Makefile for different final destinations for the syntax files
   1787 and scripts (for Debian Linux).
   1788 
   1789 Amiga: $VIM can be used everywhere.  When $VIM is not defined, "VIM:" is
   1790 used.  This fixes that "VIM:" had to be assigned for the help files, and
   1791 $VIM set for the syntax files.  Now either of these work.
   1792 
   1793 Some xterms send vt100 compatible function keys F1-F4.  Since it's not
   1794 possible to detect this, recognize both type of keys and translate them to
   1795 <F1> - <F4>.
   1796 
   1797 Added "VimEnter" autocommand.  Executed after loading all the startup stuff.
   1798 
   1799 BeOS version now also runs on Intel CPUs (Seibert).
   1800 
   1801 
   1802 Fixed							*fixed-5.1*
   1803 -----
   1804 
   1805 ":ts" changed position in the tag stack when cancelled with <CR>.
   1806 ":ts" changed the cursor position for CTRL-T when cancelled with <CR>.
   1807 ":tn" would always jump to the second match.	Was using the wrong entry in
   1808 the tag stack.
   1809 Doing "tag foo", then ":tselect", overwrote the original cursor position in
   1810 the tag stack.
   1811 
   1812 "make install" changed the vim.1 manpage in a wrong way, causing "doc/doc"
   1813 to appear for the documentation files.
   1814 
   1815 When compiled with MAX_FEAT, xterm mouse handling failed.  Was caused by DEC
   1816 mouse handling interfering.
   1817 
   1818 Was leaking memory when using selection in X11.
   1819 
   1820 CTRL-D halfway a command-line left some characters behind the first line(s)
   1821 of the listing.
   1822 
   1823 When expanding directories for ":set path=", put two extra backslashes
   1824 before a space in a directory name.
   1825 
   1826 When 'lisp' set, first line of a function would be indented.  Now its indent
   1827 is set to zero.  And use the indent of the first previous line that is at
   1828 the same () level.  Added test33.
   1829 
   1830 "so<Esc>u" in an empty file didn't work.
   1831 
   1832 DOS: "seek error in swap file write" errors, when using DOS 6.2 share.exe,
   1833 because the swap file was made hidden.  It's no longer hidden.
   1834 
   1835 ":global" command would sometimes not execute on a matching line.  Happened
   1836 when a data block is full in ml_replace().
   1837 
   1838 For AIX use a tgetent buffer of 2048 bytes, instead of 1024.
   1839 
   1840 Win32 gvim now only sets the console size for external commands to 25x80
   1841 on Windows 95, not on NT.
   1842 
   1843 Win32 console: Dead key could cause a crash, because of a missing "WINAPI"
   1844 (Deshpande).
   1845 
   1846 The right mouse button started Visual mode, even when 'mouse' is empty, and
   1847 in the command-line, a left click moved the cursor when 'mouse' is empty.
   1848 In Visual mode, 'n' in 'mouse' would be used instead of 'v'.
   1849 
   1850 A blinking cursor or focus change cleared a non-Visual selection.
   1851 
   1852 CTRL-Home and CTRL-End didn't work for MS-DOS versions.
   1853 
   1854 Could include NUL in 'iskeyword', causing a crash when doing insert mode
   1855 completion.
   1856 
   1857 Use _dos_commit() to flush the swap file to disk for MSDOS 16 bit version.
   1858 
   1859 In mappings, CTRL-H was replaced by the backspace key code.  This caused
   1860 problems when it was used as text, e.g. ":map _U :%s/.^H//g<CR>".
   1861 
   1862 ":set t_Co=0" was not handled like a normal term.  Now it's translated into
   1863 ":set t_Co=", which works.
   1864 
   1865 For ":syntax keyword" the "transparent" option did work, although not
   1866 mentioned in the help.  But synID() returned wrong name.
   1867 
   1868 "gqG" in a file with one-word-per-line (e.g. a dictionary) was very slow and
   1869 not interruptible.
   1870 
   1871 "gq" operator inserted screen lines in the wrong situation.  Now screen
   1872 lines are inserted or deleted when this speeds up displaying.
   1873 
   1874 cindent was wrong when an "if" contained "((".
   1875 
   1876 'r' flag in 'viminfo' was not used for '%'.  Could get files in the buffer
   1877 list from removable media.
   1878 
   1879 Win32 GUI with OLE: if_ole_vc.mak could not be converted into a project.
   1880 Hand-edited to fix this...
   1881 
   1882 With 'nosol' set, doing "$kdw" below an empty line positioned the cursor at
   1883 the end of the line.
   1884 
   1885 Dos32 version changed "\dir\file" into "/dir/file", to work around a DJGPP
   1886 bug.  That bug appears to have been fixed, therefore this translation has
   1887 been removed.
   1888 
   1889 "/^*" didn't work (find '*' in first column).
   1890 
   1891 "<afile>" was not always set for autocommands.  E.g., for ":au BufEnter *
   1892 let &tags = expand("<afile>:p:h") . "/tags".
   1893 
   1894 In an xterm, the window may be a child of the outer xterm window.  Use the
   1895 parent window when getting the title and icon names. (Smith)
   1896 
   1897 When starting with "gvim -bg black -fg white", the value of 'background' is
   1898 only set after reading the .gvimrc file.  This causes a ":syntax on" to use
   1899 the wrong colors.  Now allow using ":gui" to open the GUI window and set the
   1900 colors.  Previously ":gui" in a gvimrc crashed Vim.
   1901 
   1902 tempname() returned the same name all the time, unless the file was actually
   1903 created.  Now there are at least 26 different names.
   1904 
   1905 File name used for <afile> was sometimes full path, sometimes file name
   1906 relative to current directory.
   1907 
   1908 When 'background' was set after the GUI window was opened, it could change
   1909 colors that were set by the user in the .gvimrc file.  Now it only changes
   1910 colors that have not been set by the user.
   1911 
   1912 Ignore special characters after a CSI in the GUI version.  These could be
   1913 interpreted as special characters in a wrong way. (St-Amant)
   1914 
   1915 Memory leak in farsi code, when using search or ":s" command.
   1916 Farsi string reversing for a mapping was only done for new mappings.  Now it
   1917 also works for replacing a mapping.
   1918 
   1919 Crash in Win32 when using a file name longer than _MAX_PATH. (Aaron)
   1920 
   1921 When BufDelete autocommands were executed, some things for the buffer were
   1922 already deleted (esp. Perl stuff).
   1923 
   1924 Perl interface: Buffer specific items were deleted too soon; fixes "screen
   1925 no longer exists" messages.  (Moore)
   1926 
   1927 The Perl functions didn't set the 'modified' flag.
   1928 
   1929 link.sh did not return an error on exit, which may cause Vim to start
   1930 installing, even though there is no executable to install. (Riehm)
   1931 
   1932 Vi incompatibility: In Vi "." redoes the "y" command.  Added the 'y' flag to
   1933 'cpoptions'.  Only for 'compatible' mode.
   1934 
   1935 ":echohl" defined a new group, when the argument was not an existing group.
   1936 
   1937 "syn on" and ":syn off" could move the cursor, if there is a hidden buffer
   1938 that is shorter that the current cursor position.
   1939 
   1940 The " mark was not set when doing ":b file".
   1941 
   1942 When a "nextgroup" is used with "skipwhite" in syntax highlighting, space at
   1943 the end of the line made the nextgroup also be found in the next line.
   1944 
   1945 ":he g<CTRL-D>", then ":" and backspace to the start didn't redraw.
   1946 
   1947 X11 GUI: "gvim -rv" reversed the colors twice on Sun.  Now Vim checks if the
   1948 result is really reverse video (background darker than foreground).
   1949 
   1950 "cat link.sh | vim -" didn't set syntax highlighting.
   1951 
   1952 Win32: Expanding "file.sw?" matched ".file.swp".  This is an error of
   1953 FindnextFile() that we need to work around.  (Kilgore)
   1954 
   1955 "gqgq" gave an "Invalid lnum" error on the last line.
   1956 Formatting with "gq" didn't format the first line after a change of comment
   1957 leader.
   1958 
   1959 There was no check for out-of-memory in win_alloc().
   1960 
   1961 "vim -h" didn't mention "-register" and "-unregister" for the OLE version.
   1962 
   1963 Could not increase 'cmdheight' when the last window is only one line.  Now
   1964 other windows are also made smaller, when necessary.
   1965 
   1966 Added a few {} to avoid "suggest braces around" warnings from gcc 2.8.x.
   1967 Changed return type of main() from void to int. (Nam)
   1968 
   1969 Using '~' twice in a substitute pattern caused a crash.
   1970 
   1971 "syn on" and ":syn off" could scroll the window, if there is a hidden buffer
   1972 that is shorter that the current cursor position.
   1973 
   1974 ":if 0 | if 1 | endif | endif" didn't work.  Same for ":while" and "elseif".
   1975 
   1976 With two windows on modified files, with 'autowrite' set, cursor in second
   1977 window, ":qa" gave a warning for the file in the first window, but then
   1978 auto-wrote the file in the second window. (Webb)
   1979 
   1980 Win32 GUI scrollbar could only handle 32767 lines.  Also makes the
   1981 intellimouse wheel use the configurable number of scrolls. (Robinson)
   1982 
   1983 When using 'patchmode', and the backup file is on another partition, the file
   1984 copying messed up the write-file message.
   1985 
   1986 GUI X11: Alt-Backspace and Alt-Delete didn't work.
   1987 
   1988 "`0" could put the cursor after the last character in the line, causing
   1989 trouble for other commands, like "i".
   1990 
   1991 When completing tags in insert mode with ^X^], some matches were skipped,
   1992 because the compare with other tags was wrong.  E.g., when "mnuFileSave" was
   1993 already there, "mnuFile" would be skipped. (Negri)
   1994 
   1995 When scrolling up/down, a syntax item with "keepend" didn't work properly.
   1996 Now the flags are also stored for the syntax state at the start of each line.
   1997 
   1998 When 'ic' was changed while 'hlsearch' is on, there was no redraw to show the
   1999 effect.
   2000 
   2001 Win32 GUI: Don't display "No write since last chance" in a message box, but in
   2002 the Vim window.
   2003 
   2004 ==============================================================================
   2005 VERSION 5.2						*version-5.2*
   2006 
   2007 Improvements made between version 5.1 and 5.2.
   2008 
   2009 
   2010 Long lines editable					*long-lines*
   2011 -------------------
   2012 
   2013 A single long line that doesn't fit in the window doesn't show a line of @@@
   2014 anymore.  Redrawing starts at a character further on in the line, such that
   2015 the text around the cursor can be seen.  This makes it possible to edit these
   2016 long lines when wrapping is on.
   2017 
   2018 
   2019 File browser added					*file-browser-5.2*
   2020 ------------------
   2021 
   2022 The Win32, Athena and Motif GUI bring up a file requester if the user asks to
   2023 ":browse" for the ":e", ":w", ":r", ":so", ":redirect" and
   2024 ":mkexrc/vimrc/vsess" commands.  ":browse e /foo/bar" opens the requester in
   2025 the /foo/bar directory, so you can have nice mapping rhs's like ":browse so
   2026 $vim/macros".  If no initial dir specified for ":browse e", can be compiled to
   2027 either begin in the current directory, or that of the current buffer. (Negri
   2028 and Kahn)
   2029 Added the 'browsedir' option, with value "current", "last" or "buffer".  Tells
   2030 whether a browse dialog starts in last used dir, dir of current buffer, or
   2031 current dir.  ":browse w" is unaffected.
   2032 The default menus have been changed to use the ":browse" command.
   2033 
   2034 
   2035 Dialogs added						*dialogs-added*
   2036 -------------
   2037 
   2038 Added the ":confirm" command.  Works on ":e", ":q", ":w", ":cl".  Win32,
   2039 Athena and Motif GUI uses a window-dialog.  All other platforms can use
   2040 prompt in command-line.  ":confirm qa" offers a choice to save all modified
   2041 files.
   2042 
   2043 confirm() function: allows user access to the confirm engine.
   2044 
   2045 Added 'v' flag to 'guioptions'.  When included, a vertical button layout is
   2046 always used for the Win32 GUI dialog.  Otherwise, a horizontal layout is
   2047 preferred.
   2048 
   2049 Win32 GUI: ":promptfind" and ":promptrepl" pop up a dialog to find/replace.
   2050 To be used from a menu entry. (Negri)
   2051 
   2052 
   2053 Popup menu added					*popup-menu-added*
   2054 ----------------
   2055 
   2056 When the 'mousemodel' option is set to "popup", the right mouse button
   2057 displays the top level menu headed with "PopUp" as pop-up context menu.  The
   2058 "PopUp" menu is not displayed in the normal menu bar.  This currently only
   2059 works for Win32 and Athena GUI.
   2060 
   2061 
   2062 Select mode added					*new-Select-mode*
   2063 -----------------
   2064 
   2065 A new mode has been added: "Select mode".  It is like Visual mode, but typing
   2066 a printable character replaces the selection.
   2067 - CTRL-G can be used to toggle between Visual mode and Select mode.
   2068 - CTRL-O can be used to switch from Select mode to Visual mode for one command.
   2069 - Added 'selectmode' option: tells when to start Select mode instead of Visual
   2070   mode.
   2071 - Added 'mousemodel' option: Change use of mouse buttons.
   2072 - Added 'keymodel' option: tells to use shifted special keys to start a
   2073   Visual or Select mode selection.
   2074 - Added ":behave".  Can be used to quickly set 'selectmode', 'mousemodel'
   2075   and 'keymodel' for MS-Windows and xterm behavior.
   2076 - The xterm-like selection is now called modeless selection.
   2077 - Visual mode mappings and menus are used in Select mode.  They automatically
   2078   switch to Visual mode first.  Afterwards, reselect the area, unless it was
   2079   deleted.  The "gV" command can be used in a mapping to skip the reselection.
   2080 - Added the "gh", "gH" and "g^H" commands: start Select (highlight) mode.
   2081 - Backspace in Select mode deletes the selected area.
   2082 
   2083 "mswin.vim" script.  Sets behavior mostly like MS-Windows.
   2084 
   2085 
   2086 Session files added					*new-session-files*
   2087 -------------------
   2088 
   2089 ":mks[ession]" acts like "mkvimrc", but also writes the full filenames of the
   2090 currently loaded buffers and current directory, so that :so'ing the file
   2091 re-loads those files and cd's to that directory.  Also stores and restores
   2092 windows.  File names are made relative to session file.
   2093 The 'sessionoptions' option sets behavior of ":mksession". (Negri)
   2094 
   2095 
   2096 User defined functions and commands			*new-user-defined*
   2097 -----------------------------------
   2098 
   2099 Added user defined functions.  Defined with ":function" until ":endfunction".
   2100 Called with "Func()".  Allows the use of a variable number of arguments.
   2101 Included support for local variables "l:name".  Return a value with ":return".
   2102 See |:function|.
   2103 Call a function with ":call".  When using a range, the function is called for
   2104 each line in the range. |:call|
   2105 "macros/justify.vim" is an example of using user defined functions.
   2106 User functions do not change the last used search pattern or the command to be
   2107 redone with ".".
   2108 'maxfuncdepth' option.  Restricts the depth of function calls.  Avoids trouble
   2109 (crash because of out-of-memory) when a function uses endless recursion.
   2110 
   2111 User definable Ex commands: ":command", ":delcommand" and ":comclear".
   2112 (Moore)  See |user-commands|.
   2113 
   2114 
   2115 New interfaces						*interfaces-5.2*
   2116 --------------
   2117 
   2118 Tcl interface. (Wilken)  See |tcl|.
   2119 Uses the ":tcl", ":tcldo" and "tclfile" commands.
   2120 
   2121 Cscope support. (Kahn) (Sekera)  See |cscope|.
   2122 Uses the ":cscope" and ":cstag" commands.  Uses the options 'cscopeprg',
   2123 'cscopetag', 'cscopetagorder' and 'cscopeverbose'.
   2124 
   2125 
   2126 New ports						*ports-5.2*
   2127 ---------
   2128 
   2129 Amiga GUI port. (Nielsen)  Not tested much yet!
   2130 
   2131 RISC OS version. (Thomas Leonard)  See |riscos|.
   2132 This version can run either with a GUI or in text mode, depending upon where
   2133 it is invoked.
   2134 Deleted the "os_archie" files, they were not working anyway.
   2135 
   2136 
   2137 Multi-byte support			*new-multi-byte* *new-multibyte*
   2138 ------------------
   2139 
   2140 MultiByte support for Win32 GUI. (Baek)
   2141 The 'fileencoding' option decides how the text in the file is encoded.
   2142 ":ascii" works for multibyte characters.  Multi-byte characters work on
   2143 Windows 95, even when using the US version. (Aaron)
   2144 Needs to be enabled in feature.h.
   2145 This has not been tested much yet!
   2146 
   2147 
   2148 New functions						*new-functions-5.2*
   2149 -------------
   2150 
   2151 |browse()|	puts up a file requester when available. (Negri)
   2152 |escape()|	escapes characters in a string with a backslash.
   2153 |fnamemodify()|	modifies a file name.
   2154 |input()|	asks the user to enter a line. (Aaron)  There is a separate
   2155 		history for lines typed for the input() function.
   2156 |argc()|
   2157 |argv()|	can be used to access the argument list.
   2158 |winbufnr()|	buffer number of a window. (Aaron)
   2159 |winnr()|	window number. (Aaron)
   2160 |matchstr()|	Return matched string.
   2161 |setline()|	Set a line to a string value.
   2162 
   2163 
   2164 New options						*new-options-5.2*
   2165 -----------
   2166 
   2167 'allowrevins'	Enable the CTRL-_ command in Insert and Command-line mode.
   2168 'browsedir'	Tells in which directory a browse dialog starts.
   2169 'confirm'	when set, :q :w and :e commands always act as if ":confirm"
   2170 		is used.  (Negri)
   2171 'cscopeprg'
   2172 'cscopetag'
   2173 'cscopetagorder'
   2174 'cscopeverbose'	Set the |cscope| behavior.
   2175 'filetype'	RISC-OS specific type of file.
   2176 'grepformat'
   2177 'grepprg'	For the |:grep| command.
   2178 'keymodel'	Tells to use shifted special keys to start a Visual or Select
   2179 		mode selection.
   2180 'listchars'	Set character to show in 'list' mode for end-of-line, tabs and
   2181 		trailing spaces. (partly by Smith) Also sets character to
   2182 		display if a line doesn't fit when 'nowrap' is set.
   2183 'matchpairs'	Allows matching '<' with '>', and other single character
   2184 		pairs.
   2185 'mousefocus'	Window focus follows mouse (partly by Terhaar).  Changing the
   2186 		focus with a keyboard command moves the pointer to that
   2187 		window.  Also move the pointer when changing the window layout
   2188 		(split window, change window height, etc.).
   2189 'mousemodel'	Change use of mouse buttons.
   2190 'selection'	When set to "inclusive" or "exclusive", the cursor can go one
   2191 		character past the end of the line in Visual or Select mode.
   2192 		When set to "old" the old behavior is used.  When
   2193 		"inclusive", the character under the cursor is included in the
   2194 		operation.  When using "exclusive", the new "ve" entry of
   2195 		'guicursor' is used.  The default is a vertical bar.
   2196 'selectmode'	Tells when to start Select mode instead of Visual mode.
   2197 'sessionoptions' Sets behavior of ":mksession". (Negri)
   2198 'showfulltag'	When completing a tag in Insert mode, show the tag search
   2199 		pattern (tidied up) as a choice as well (if there is one).
   2200 'swapfile'	Whether to use a swap file for a buffer.
   2201 'syntax'	When it is set, the syntax by that name is loaded.  Allows for
   2202 		setting a specific syntax from a modeline.
   2203 'ttymouse'	Allows using xterm mouse codes for terminals which name
   2204 		doesn't start with "xterm".
   2205 'wildignore'	List of patterns for files that should not be completed at
   2206 		all.
   2207 'wildmode'	Can be used to set the type of expansion for 'wildchar'.
   2208 		Replaces the CTRL-T command for command line completion.
   2209 		Don't beep when listing all matches.
   2210 'winaltkeys'	Win32 and Motif GUI.  When "yes", ALT keys are handled
   2211 		entirely by the window system.  When "no", ALT keys are never
   2212 		used by the window system.  When "menu" it depends on whether
   2213 		a key is a menu shortcut.
   2214 'winminheight'	Minimal height for each window.  Default is 1.  Set to 0 if
   2215 		you want zero-line windows.  Scrollbar is removed for
   2216 		zero-height windows. (Negri)
   2217 
   2218 
   2219 
   2220 New Ex commands						*new-ex-commands-5.2*
   2221 ---------------
   2222 
   2223 |:badd|		Add file name to buffer list without side effects.  (Negri)
   2224 |:behave|	Quickly set MS-Windows or xterm behavior.
   2225 |:browse|	Use file selection dialog.
   2226 |:call|		Call a function, optionally with a range.
   2227 |:cnewer|
   2228 |:colder|	To access a stack of quickfix error lists.
   2229 |:comclear|	Clear all user-defined commands.
   2230 |:command|	Define a user command.
   2231 |:continue|	Go back to ":while".
   2232 |:confirm|	Ask confirmation if something unexpected happens.
   2233 |:cscope|	Execute cscope command.
   2234 |:cstag|	Use cscope to jump to a tag.
   2235 |:delcommand|	Delete a user-defined command.
   2236 |:delfunction|	Delete a user-defined function.
   2237 |:endfunction|	End of user-defined function.
   2238 |:function|	Define a user function.
   2239 |:grep|		Works similar to ":make". (Negri)
   2240 |:mksession|	Create a session file.
   2241 |:nohlsearch|	Stop 'hlsearch' highlighting for a moment.
   2242 |:Print|	This is Vi compatible.  Does the same as ":print".
   2243 |:promptfind|	Search dialog (Win32 GUI).
   2244 |:promptrepl|	Search/replace dialog (Win32 GUI).
   2245 |:return|	Return from a user-defined function.
   2246 |:simalt|	Win32 GUI: Simulate alt-key pressed.  (Negri)
   2247 |:smagic|	Like ":substitute", but always use 'magic'.
   2248 |:snomagic|	Like ":substitute", but always use 'nomagic'.
   2249 |:tcl|		Execute TCL command.
   2250 |:tcldo|	Execute TCL command for a range of lines.
   2251 |:tclfile|	Execute a TCL script file.
   2252 |:tearoff|	Tear-off a menu (Win32 GUI).
   2253 |:tmenu|
   2254 |:tunmenu|	Win32 GUI: menu tooltips.  (Negri)
   2255 |:star|	:*	Execute a register.
   2256 
   2257 
   2258 Changed							*changed-5.2*
   2259 -------
   2260 
   2261 Renamed functions:
   2262 		buffer_exists()	   -> bufexists()
   2263 		buffer_name()      -> bufname()
   2264 		buffer_number()    -> bufnr()
   2265 		file_readable()    -> filereadable()
   2266 		highlight_exists() -> hlexists()
   2267 		highlightID()      -> hlID()
   2268 		last_buffer_nr()   -> bufnr("$")
   2269 The old ones are still there, for backwards compatibility.
   2270 
   2271 The CTRL-_ command in Insert and Command-line mode is only available when the
   2272 new 'allowrevins' option is set.  Avoids that people who want to type SHIFT-_
   2273 accidentally enter reverse Insert mode, and don't know how to get out.
   2274 
   2275 When a file name path in ":tselect" listing is too long, remove a part in the
   2276 middle and put "..." there.
   2277 
   2278 Win32 GUI: Made font selector appear inside Vim window, not just any odd
   2279 place. (Negri)
   2280 
   2281 ":bn" skips help buffers, unless currently in a help buffer. (Negri)
   2282 
   2283 When there is a status line and only one window, don't show '^' in the status
   2284 line of the current window.
   2285 
   2286 ":*" used to be used for "'<,'>", the Visual area.  But in Vi it's used as an
   2287 alternative for ":@".  When 'cpoptions' includes '*' this is Vi compatible.
   2288 
   2289 When 'insertmode' is set, using CTRL-O to execute a mapping will work like
   2290 'insertmode' was not set.  This allows "normal" mappings to be used even when
   2291 'insertmode' is set.
   2292 
   2293 When 'mouse' was set already (e.g., in the .vimrc file), don't automatically
   2294 set 'mouse' when the GUI starts.
   2295 
   2296 Removed the 'N', 'I' and 'A' flags from the 'mouse' option.
   2297 
   2298 Renamed "toggle option" to "boolean option".  Some people thought that ":set
   2299 xyz" would toggle 'xyz' on/off each time.
   2300 
   2301 The internal variable "shell_error" contains the error code from the shell,
   2302 instead of just 0 or 1.
   2303 
   2304 When inserting or replacing, typing CTRL-V CTRL-<CR> used to insert "<C-CR>".
   2305 That is not very useful.  Now the CTRL key is ignored and a <CR> is inserted.
   2306 Same for all other "normal" keys with modifiers.  Mapping these modified key
   2307 combinations is still possible.
   2308 In Insert mode, <C-CR> and <S-Space> can be inserted by using CTRL-K and then
   2309 the special character.
   2310 
   2311 Moved "quotes" file to doc/quotes.txt, and "todo" file to doc/todo.txt.  They
   2312 are now installed like other documentation files.
   2313 
   2314 winheight() function returns -1 for a non-existing window.  It used to be
   2315 zero, but that is a valid height now.
   2316 
   2317 The default for 'selection' is "inclusive", which makes a difference when
   2318 using "$" or the mouse to move the cursor in Visual mode.
   2319 
   2320 ":q!" does not exit when there are changed buffers which are hidden.  Use
   2321 ":qa!" to exit anyway.
   2322 
   2323 Disabled the Perl/Python/Tcl interfaces by default.  Not many people use them
   2324 and they make the executable a lot bigger.  The internal scripting language is
   2325 now powerful enough for most tasks.
   2326 
   2327 The strings from the 'titlestring' and 'iconstring' options are used
   2328 untranslated for the Window title and icon.  This allows for including a <CR>.
   2329 Previously a <CR> would be shown as "^M" (two characters).
   2330 
   2331 When a mapping is started in Visual or Select mode which was started from
   2332 Insert mode (the mode shows "(insert) Visual"), don't return to Insert mode
   2333 until the mapping has ended.  Makes it possible to use a mapping in Visual
   2334 mode that also works when the Visual mode was started from Select mode.
   2335 
   2336 Menus in $VIMRUNTIME/menu.vim no longer overrule existing menus.  This helps
   2337 when defining menus in the .vimrc file, or when sourcing mswin.vim.
   2338 
   2339 Unix: Use /var/tmp for .swp files, if it exists.  Files there survive a
   2340 reboot (at least on Linux).
   2341 
   2342 
   2343 Added							*added-5.2*
   2344 -----
   2345 
   2346 --with-motif-lib configure argument.  Allows for using a static Motif library.
   2347 
   2348 Support for mapping numeric keypad +,-,*,/ keys. (Negri)
   2349 When not mapped, they produce the normal character.
   2350 
   2351 Win32 GUI: When directory dropped on gVim, cd there and edit new buffer.
   2352 (Negri)
   2353 
   2354 Win32 GUI: Made CTRL-Break work as interrupt, so that CTRL-C can be
   2355 used for mappings.
   2356 
   2357 In the output of ":map", highlight the "*" to make clear it's not part of the
   2358 rhs. (Roemer)
   2359 
   2360 When showing the Visual area, the cursor is not switched off, so that it can
   2361 be located.  The Visual area is now highlighted with a grey background in the
   2362 GUI.  This makes the cursor visible when it's also reversed.
   2363 
   2364 Win32: When started with single full pathname (e.g. via double-clicked file),
   2365 cd to that file's directory. (Negri)
   2366 
   2367 Win32 GUI: Tear-off menus, with ":tearoff <menu-name>" command. (Negri)
   2368 't' option to 'guioptions': Add tearoff menu items for Win32 GUI and Motif.
   2369 It's included by default.
   2370 Win32 GUI: tearoff menu with submenus is indicated with a ">>". (Negri)
   2371 
   2372 Added ^Kaa and ^KAA digraphs.
   2373 Added "euro" symbol to digraph.c. (Corry)
   2374 
   2375 Support for Motif menu shortcut keys, using '&' like MS-Windows (Ollis).
   2376 Other GUIs ignore '&' in a menu name.
   2377 
   2378 DJGPP: Faster screen updating (John Lange).
   2379 
   2380 Clustering of syntax groups ":syntax cluster" (Bigham).
   2381 Including syntax files: ":syntax include" (Bigham).
   2382 
   2383 Keep column when switching buffers, when 'nosol' is set (Radics).
   2384 
   2385 Number function for Perl interface.
   2386 
   2387 Support for Intellimouse in Athena GUI. (Jensen)
   2388 
   2389 ":sleep" also accepts an argument in milliseconds, when "m" is used.
   2390 
   2391 Added 'p' flag in 'guioptions': Install callbacks for enter/leave window
   2392 events.  Makes cursor blinking work for Terhaar, breaks it for me.
   2393 
   2394 "--help" and "--version" command-line arguments.
   2395 
   2396 Non-text in ":list" output is highlighted with NonText.
   2397 
   2398 Added text objects: "i(" and "i)" as synonym for "ib".  "i{" and "i}" as
   2399 synonym for "iB".  New: "i<" and "i>", to select <thing>.  All this also for
   2400 "a" objects.
   2401 
   2402 'O' flag in 'shortmess': message for reading a file overwrites any previous
   2403 message. (Negri)
   2404 
   2405 Win32 GUI: 'T' flag in 'guioptions': switch toolbar on/off.
   2406 Included a list with self-made toolbar bitmaps.  (Negri)
   2407 
   2408 Added menu priority for sub-menus.  Implemented for Win32 and Motif GUI.
   2409 Display menu priority with ":menu" command.
   2410 Default and Syntax menus now include priority for items.  Allows inserting
   2411 menu items in between the default ones.
   2412 
   2413 When the 'number' option is on, highlight line numbers with the LineNr group.
   2414 
   2415 "Ignore" highlight group: Text highlighted with this is made blank.  It is
   2416 used to hide special characters in the help text.
   2417 
   2418 Included Exuberant Ctags version 2.3, with C++ support, Java support and
   2419 recurse into directories. (Hiebert)
   2420 
   2421 When a tags file is not sorted, and this is detected (in a simplistic way), an
   2422 error message is given.
   2423 
   2424 ":unlet" accepts a "!", to ignore non-existing variables, and accepts more
   2425 than one argument. (Roemer)
   2426 Completion of variable names for ":unlet". (Roemer)
   2427 
   2428 When there is an error in a function which is called by another function, show
   2429 the call stack in the error message.
   2430 
   2431 New file name modifiers:
   2432 ":.": reduce file name to be relative to current dir.
   2433 ":~": reduce file name to be relative to home dir.
   2434 ":s?pat?sub?": substitute "pat" with "sub" once.
   2435 ":gs?pat?sub?": substitute "pat" with "sub" globally.
   2436 
   2437 New configure arguments: --enable-min-features and --enable-max-features.
   2438 Easy way to switch to minimum or maximum features.
   2439 
   2440 New compile-time feature: modify_fname.  For file name modifiers, e.g,
   2441 "%:p:h".  Can be disabled to save some code (16 bit DOS).
   2442 
   2443 When using whole-line completion in Insert mode, and 'cindent' is set, indent
   2444 the line properly.
   2445 
   2446 MSDOS and Win32 console: 'guicursor' sets cursor thickness. (Negri)
   2447 
   2448 Included new set of Farsi fonts. (Shiran)
   2449 
   2450 Accelerator text now also works in Motif.  All menus can be defined with & for
   2451 mnemonic and TAB for accelerator text.  They are ignored on systems that don't
   2452 support them.
   2453 When removing or replacing a menu, compare the menu name only up to the <Tab>
   2454 before the mnemonic.
   2455 
   2456 'i' and 'I' flags after ":substitute": ignore case or not.
   2457 
   2458 "make install" complains if the runtime files are missing.
   2459 
   2460 Unix: When finding an existing swap file that can't be opened, mention the
   2461 owner of the file in the ATTENTION message.
   2462 
   2463 The 'i', 't' and 'k' options in 'complete' now also print the place where they
   2464 are looking for matches. (Acevedo)
   2465 
   2466 "gJ" command: Join lines without inserting a space.
   2467 
   2468 Setting 'keywordprg' to "man -s" is handled specifically.  The "-s" is removed
   2469 when no count given, the count is added otherwise.  Configure checks if "man
   2470 -s 2 read" works, and sets the default for 'keywordprg' accordingly.
   2471 
   2472 If you do a ":bd" and there is only one window open, Vim tries to move to a
   2473 buffer of the same type (i.e. non-help to non-help, help to help), for
   2474 consistent behavior to :bnext/:bprev. (Negri)
   2475 
   2476 Allow "<Nop>" to be used as the rhs of a mapping.  ":map xx <Nop>", maps "xx"
   2477 to nothing at all.
   2478 
   2479 In a ":menu" command, "<Tab>" can be used instead of a real tab, in the menu
   2480 path.  This makes it more easy to type, no backslash needed.
   2481 
   2482 POSIX compatible character classes for regexp patterns: [:alnum:], [:alpha:],
   2483 [:blank:], [:cntrl:], [:digit:], [:graph:], [:lower:], [:print:], [:punct:],
   2484 [:space:], [:upper:] and [:xdigit:]. (Briscoe)
   2485 
   2486 regexp character classes (for fast syntax highlight matching):
   2487 	digits:	    \d [0-9]		\D  not digit (Roemer)
   2488 	hex:	    \x [0-9a-fA-F]	\X  not hex
   2489 	octal:	    \o [0-7]		\O  not octal
   2490 	word:	    \w [a-zA-Z0-9_]	\W  not word
   2491 	head:	    \h [a-zA-Z_]	\H  not head
   2492 	alphabetic: \a [a-zA-Z]		\A  not alphabetic
   2493 	lowercase:  \l [a-z]		\L  not lowercase
   2494 	uppercase:  \u [A-Z]		\U  not uppercase
   2495 
   2496 ":set" now accepts "+=", |^=" and "-=": add or remove parts of a string
   2497 option, add or subtract a number from a number option.  A comma is
   2498 automagically inserted or deleted for options that are a comma-separated list.
   2499 
   2500 Filetype feature, for autocommands.  Uses a file type instead of a pattern to
   2501 match a file.  Currently only used for RISC OS.  (Leonard)
   2502 
   2503 In a pattern for an autocommand, environment variables can be used.  They are
   2504 expanded when the autocommand is defined.
   2505 
   2506 "BufFilePre" and "BufFilePost" autocommand evens: Before and after applying
   2507 the ":file" command to change the name of a buffer.
   2508 "VimLeavePre" autocommand event: before writing the .viminfo file.
   2509 
   2510 For autocommands argument: <abuf> is buffer number, like <afile>.
   2511 
   2512 Made syntax highlighting a bit faster when scrolling backwards, by keeping
   2513 more syncing context.
   2514 
   2515 Win32 GUI: Made scrolling faster by avoiding a redraw when deleting or
   2516 inserting screen lines.
   2517 
   2518 GUI: Made scrolling faster by not redrawing the scrollbar when the thumb moved
   2519 less than a pixel.
   2520 
   2521 Included ":highlight" in bugreport.vim.
   2522 
   2523 Created install.exe program, for simplistic installation on DOS and
   2524 MS-Windows.
   2525 
   2526 New register: '_', the black hole.  When writing to it, nothing happens.  When
   2527 reading from it, it's always empty.  Can be used to avoid a delete or change
   2528 command to modify the registers, or reduce memory use for big changes.
   2529 
   2530 CTRL-V xff enters character by hex number.  CTRL-V o123 enters character by
   2531 octal number. (Aaron)
   2532 
   2533 Improved performance of syntax highlighting by skipping check for "keepend"
   2534 when there isn't any.
   2535 
   2536 Moved the mode message ("-- INSERT --") to the last line of the screen.  When
   2537 'cmdheight' is more than one, messages will remain readable.
   2538 
   2539 When listing matching files, they are also sorted on 'suffixes', such that
   2540 they are listed in the same order as CTRL-N retrieves them.
   2541 
   2542 synIDattr() takes a third argument (optionally), which tells for which
   2543 terminal type to get the attributes for.  This makes it possible to run
   2544 2html.vim outside of gvim (using color names instead of #RRGGBB).
   2545 
   2546 Memory profiling, only for debugging.  Prints at exit, and with "g^A" command.
   2547 (Kahn)
   2548 
   2549 DOS: When using a file in the current drive, remove the drive name:
   2550 "A:\dir\file" -> "\dir\file".  This helps when moving a session file on a
   2551 floppy from "A:\dir" to "B:\dir".
   2552 
   2553 Increased number of remembered jumps from 30 to 50 per window.
   2554 
   2555 Command to temporarily disable 'hls' highlighting until the next search:
   2556 ":nohlsearch".
   2557 
   2558 "gp" and "gP" commands: like "p" and "P", but leave the cursor just after the
   2559 inserted text.  Used for the CTRL-V command in MS-Windows mode.
   2560 
   2561 
   2562 Fixed							*fixed-5.2*
   2563 -----
   2564 
   2565 Win32 GUI: Could draw text twice in one place, for fake-bold text.  Removed
   2566 this, Windows will handle the bold text anyway. (Negri)
   2567 
   2568 patch 5.1.1: Win32s GUI: pasting caused a crash (Negri)
   2569 
   2570 patch 5.1.2: When entering another window, where characters before the cursor
   2571 have been deleted, could have a cursor beyond the end of the line.
   2572 
   2573 patch 5.1.3: Win32s GUI: Didn't wait for external command to finish. (Negri)
   2574 
   2575 patch 5.1.4: Makefile.w32 can now also be used to generate the OLE version
   2576 (Scott).
   2577 
   2578 patch 5.1.5: Crashed when using syntax highlighting: cursor on a line that
   2579 doesn't fit in the window, and splitting that line in two.
   2580 
   2581 patch 5.1.6: Visual highlighting bug: After ":set nowrap", go to end of line
   2582 (so that the window scrolls horizontally), ":set wrap".  Following Visual
   2583 selection was wrong.
   2584 
   2585 patch 5.1.7: When 'tagbsearch' off, and 'ignorecase' off, still could do
   2586 binary searching.
   2587 
   2588 patch 5.1.8: Win32 GUI: dragging the scrollbar didn't update the ruler.
   2589 
   2590 patch 5.1.9: Using ":gui" in .vimrc, caused xterm cursor to disappear.
   2591 
   2592 patch 5.1.10: A CTRL-N in Insert mode could cause a crash, when a buffer
   2593 without a name exists.
   2594 
   2595 patch 5.1.11: "make test" didn't work in the shadow directory.  Also adjusted
   2596 "make shadow" for the links in the ctags directory.
   2597 
   2598 patch 5.1.12: "buf 123foo" used "123" as a count, instead as the start of a
   2599 buffer name.
   2600 
   2601 patch 5.1.13: When completing file names on the command-line, reallocating the
   2602 command-line may go wrong.
   2603 
   2604 patch 5.1.14: ":[nvci]unmenu" removed menu for all modes, when full menu patch
   2605 specified.
   2606 
   2607 Graceful handling of NULLs in drag-dropped file list.  Handle passing NULL to
   2608 Fullname_save(). (Negri)
   2609 
   2610 Win32: ":!start" to invoke a program without opening a console, swapping
   2611 screens, or waiting for completion in either console or gui version, e.g. you
   2612 can type ":!start winfile".  ALSO fixes "can't delete swapfile after spawning
   2613 a shell" bug. (enhancement of Aaron patch) (Negri)
   2614 
   2615 Win32 GUI: Fix CTRL-X default keymapping to be more Windows-like. (Negri)
   2616 
   2617 Shorten filenames on startup.  If in /foo/bar, entering "vim ../bar/bang.c"
   2618 displays "bang.c" in status bar, not "/foo/bar/bang.c"  (Negri)
   2619 
   2620 Win32 GUI: No copy to Windows clipboard when it's not desired.
   2621 
   2622 Win32s: Fix pasting from clipboard - made an assumption not valid under
   2623 Win32s. (Negri)
   2624 
   2625 Win32 GUI: Speed up calls to gui_mch_draw_string() and cursor drawing
   2626 functions. (Negri)
   2627 
   2628 Win32 GUI: Middle mouse button emulation now works in GUI! (Negri)
   2629 
   2630 Could skip messages when combining commands in one line, e.g.:
   2631 ":echo "hello" | write".
   2632 
   2633 Perl interpreter was disabled before executing VimLeave autocommands.  Could
   2634 not use ":perl" in them.  (Aaron)
   2635 
   2636 Included patch for the Intellimouse (Aaron/Robinson).
   2637 
   2638 Could not set 'ls' to one, when last window has only one line.  (Mitterand)
   2639 
   2640 Fixed a memory leak when removing menus.
   2641 
   2642 After ":only" the ruler could overwrite a message.
   2643 
   2644 Dos32: removed changing of __system_flags.  It appears to work better when
   2645 it's left at the default value.
   2646 
   2647 p_aleph was an int instead of along, caused trouble on systems where
   2648 sizeof(int) != sizeof(long). (Schmidt)
   2649 
   2650 Fixed enum problems for Ultrix. (Seibert)
   2651 
   2652 Small redraw problem: "dd" on last line in file cleared wrong line.
   2653 
   2654 Didn't interpret "cmd | endif" when "cmd" starts with a range.  E.g. "if 0 |
   2655 .d | endif".
   2656 
   2657 Command "+|" on the last line of the file caused ml_get errors.
   2658 
   2659 Memory underrun in eval_vars(). (Aaron)
   2660 
   2661 Don't rename files in a difficult way, except on Windows 95 (was also done on
   2662 Windows NT).
   2663 
   2664 Win32 GUI: An external command that produces an error code put the error
   2665 message in a dialog box.  had to close the window and close the dialog.  Now
   2666 the error code is displayed in the console. (Negri)
   2667 
   2668 "comctl32.lib" was missing from the GUI libraries in Makefile.w32. (Battle)
   2669 
   2670 In Insert mode, when entering a window in Insert mode, allow the cursor to be
   2671 one char beyond the text.
   2672 
   2673 Renamed machine dependent rename() to mch_rename().  Define mch_rename() to
   2674 rename() when it works properly.
   2675 
   2676 Rename vim_chdir() to mch_chdir(), because it's machine dependent.
   2677 
   2678 When using an arglist, and editing file 5 of 4, ":q" could cause "-1 more
   2679 files to edit" error.
   2680 
   2681 In if_python.c, VimCommand() caused an assertion when a do_cmdline() failed.
   2682 Moved the Python_Release_Vim() to before the VimErrorCheck().  (Harkins)
   2683 
   2684 Give an error message for an unknown argument after "--".  E.g. for "vim
   2685 --xyz".
   2686 
   2687 The FileChangedShell autocommand didn't set <afile> to the name of the changed
   2688 file.
   2689 
   2690 When doing ":e file", causing the attention message, there sometimes was no
   2691 hit-enter prompt.  Caused by empty line or "endif" at end of sourced file.
   2692 
   2693 A large number of patches for the VMS version. (Hunsaker)
   2694 
   2695 When CTRL-L completion (find longest match) results in a shorter string, no
   2696 completion is done (happens with ":help").
   2697 
   2698 Crash in Win32 GUI version, when using an Ex "@" command, because
   2699 LinePointers[] was used while not initialized.
   2700 
   2701 Win32 GUI: allow mapping of Alt-Space.
   2702 
   2703 Output from "vim -h" was sent to stderr.  Sending it to stdout is better, so
   2704 one can use "vim -h | more".
   2705 
   2706 In command-line mode, ":vi[!]" should reload the file, just like ":e[!]".
   2707 In Ex mode, ":vi" stops Ex mode, but doesn't reload the file.  This is Vi
   2708 compatible.
   2709 
   2710 When using a ":set ls=1" in the .gvimrc file, would get a status line for a
   2711 single window.  (Robinson)
   2712 
   2713 Didn't give an error message for ":set ai,xx". (Roemer)
   2714 Didn't give an error message for ":set ai?xx", ":set ai&xx", ":set ai!xx".
   2715 
   2716 Non-Unix systems: That a file exists but is unreadable is recognized as "new
   2717 file".  Now check for existence when file can't be opened (like Unix).
   2718 
   2719 Unix: osdef.sh didn't handle declarations where the function name is at the
   2720 first column of the line.
   2721 
   2722 DJGPP: Shortening of file names didn't work properly, because get_cwd()
   2723 returned a path with backslashes. (Negri)
   2724 
   2725 When using a 'comments' part where a space is required after the middle part,
   2726 always insert a space when starting a new line.  Helps for C comments, below a
   2727 line with "/****".
   2728 
   2729 Replacing path of home directory with "~/" could be wrong for file names
   2730 with embedded spaces or commas.
   2731 
   2732 A few fixes for the Sniff interface. (Leherbauer)
   2733 
   2734 When asking to hit 'y' or 'n' (e.g. for ":3,1d"), using the mouse caused
   2735 trouble.  Same for ":s/x/y/c" prompt.
   2736 
   2737 With 'nowrap' and 'list', a Tab halfway on the screen was displayed as blanks,
   2738 instead of the characters specified with 'listchars'.  Also for other
   2739 characters that take more than one screen character.
   2740 
   2741 When setting 'guifont' to an unknown font name, the previous font was lost and
   2742 a default font would be used. (Steed)
   2743 
   2744 DOS: Filenames in the root directory didn't get shortened properly. (Negri)
   2745 
   2746 DJGPP: making a full path name out of a file name didn't work properly when
   2747 there is no _fullpath() function. (Negri)
   2748 
   2749 Win32 console: ":sh" caused a crash. (Negri)
   2750 
   2751 Win32 console: Setting 'lines' and/or 'columns' in the _vimrc failed miserably
   2752 (could hang Windows 95). (Negri)
   2753 
   2754 Win32: The change-drive function was not correct, went to the wrong drive.
   2755 (Tsindlekht)
   2756 
   2757 GUI: When editing a command line in Ex mode, Tabs were sometimes not
   2758 backspaced properly, and unprintable characters were displayed directly.
   2759 non-GUI can still be wrong, because a system function is called for this.
   2760 
   2761 ":set" didn't stop after an error.  For example ":set no ai" gave an error for
   2762 "no", but still set "ai".  Now ":set" stops after the first error.
   2763 
   2764 When running configure for ctags, $LDFLAGS wasn't passed to it, causing
   2765 trouble for IRIX.
   2766 
   2767 "@%" and "@#" when file name not set gave an error message.  Now they just
   2768 return an empty string. (Steed)
   2769 
   2770 CTRL-X and CTRL-A didn't work correctly with negative hex and octal numbers.
   2771 (Steed)
   2772 
   2773 ":echo" always started with a blank.
   2774 
   2775 Updating GUI cursor shape didn't always work (e.g., when blinking is off).
   2776 
   2777 In silent Ex mode ("ex -s" or "ex <file") ":s///p" didn't print a line.  Also
   2778 a few other commands that explicitly print a text line didn't work.  Made this
   2779 Vi compatible.
   2780 
   2781 Win32 version of _chdrive() didn't return correct value. (Tsindlekht)
   2782 
   2783 When using 't' in 'complete' option, no longer give an error message for a
   2784 missing tags file.
   2785 
   2786 Unix: tgoto() can return NULL, which was not handled correctly in configure.
   2787 
   2788 When doing ":help" from a buffer where 'binary' is set, also edited the help
   2789 file in binary mode.  Caused extra ^Ms for DOS systems.
   2790 
   2791 Cursor position in a file was reset to 1 when closing a window.
   2792 
   2793 ":!ls" in Ex mode switched off echo.
   2794 
   2795 When doing a double click in window A, while currently in window B, first
   2796 click would reset double click time, had to click three times to select a
   2797 word.
   2798 
   2799 When using <F11> in mappings, ":mkexrc" produced an exrc file that can't be
   2800 used in Vi compatible mode.  Added setting of 'cpo' to avoid this.  Also, add
   2801 a CTRL-V in front of a '<', to avoid a normal string to be interpreted as a
   2802 special key name.
   2803 
   2804 Gave confusing error message for ":set guifont=-*-lucida-*": first "font is
   2805 not fixed width", then "Unknown font".
   2806 
   2807 Some options were still completely left out, instead of included as hidden
   2808 options.
   2809 
   2810 While running the X11 GUI, ignore SIGHUP signals.  Avoids a crash after
   2811 executing an external command (in rare cases).
   2812 
   2813 In os_unixx.h, signal() was defined to sigset(), while it already was.
   2814 
   2815 Memory leak when executing autocommands (was reported as a memory leak in
   2816 syntax highlighting).
   2817 
   2818 Didn't print source of error sometimes, because pointers were the same,
   2819 although names were different.
   2820 
   2821 Avoid a number of UMR errors from Purify (third argument to open()).
   2822 
   2823 A swap file could still be created just after setting 'updatecount' to zero,
   2824 when there is an empty buffer and doing ":e file". (Kutschera)
   2825 
   2826 Test 35 failed on 64 bit machines. (Schild)
   2827 
   2828 With "p" and "P" commands, redrawing was slow.
   2829 
   2830 Awk script for html documentation didn't work correctly with AIX awk.
   2831 Replaced "[ ,.);\]	]" with "[] ,.);	]". (Briscoe)
   2832 The makehtml.awk script had a small problem, causing extra lines to be
   2833 inserted. (Briscoe)
   2834 
   2835 "gqgq" could not be repeated.  Repeating for "gugu" and "gUgU" worked in a
   2836 wrong way.  Also made "gqq" work to be consistent with "guu".
   2837 
   2838 C indent was wrong after "case ':':".
   2839 
   2840 ":au BufReadPre *.c put": Line from put text was deleted, because the buffer
   2841 was still assumed to be empty.
   2842 
   2843 Text pasted with the Edit/Paste menu was subject to 'textwidth' and
   2844 'autoindent'.  That was inconsistent with using the mouse to paste.  Now "*p
   2845 is used.
   2846 
   2847 When using CTRL-W CTRL-] on a word that's not a tag, and then CTRL-] on a tag,
   2848 window was split.
   2849 
   2850 ":ts" got stuck on a tags line that has two extra fields.
   2851 
   2852 In Insert mode, with 'showmode' on, <C-O><C-G> message was directly
   2853 overwritten by mode message, if preceded with search command warning message.
   2854 
   2855 When putting the result of an expression with "=<expr>p, newlines were
   2856 inserted like ^@ (NUL in the file).  Now the string is split up in lines at
   2857 the newline.
   2858 
   2859 putenv() was declared with "const char *" in pty.c, but with "char *" in
   2860 osdef2.h.in.  Made the last one also "const char *".
   2861 
   2862 ":help {word}", where +{word} is a feature, jumped to the feature list instead
   2863 of where the command was explained.  E.g., ":help browse", ":help autocmd".
   2864 
   2865 Using the "\<xx>" form in an expression only got one byte, even when using a
   2866 special character that uses several bytes (e.g., "\<F9>").
   2867 Changed "\<BS>" to produce CTRL-H instead of the special key code for the
   2868 backspace key.  "\<Del>" produces 0x7f.
   2869 
   2870 ":mkvimrc" didn't write a command to set 'compatible' or 'nocompatible'.
   2871 
   2872 The shell syntax didn't contain a "syn sync maxlines" setting.  In a long file
   2873 without recognizable items, syncing took so long it looked like Vim hangs.
   2874 Added a maxlines setting, and made syncing interruptible.
   2875 
   2876 The "gs" command didn't flush output before waiting.
   2877 
   2878 Memory leaks for:
   2879     ":if 0 | let a = b . c | endif"
   2880     "let a = b[c]"
   2881     ":so {file}" where {file} contains a ":while"
   2882 
   2883 GUI: allocated fonts were never released. (Leonard)
   2884 
   2885 Makefile.bor:
   2886 - Changed $(DEFINES) into a list of "-D" options, so that it can also be used
   2887   for the resource compiler. (not tested!)
   2888 - "bcc.cfg" was used for all configurations.  When building for another
   2889   configuration, the settings for the previous one would be used.  Moved
   2890   "bcc.cfg" to the object directory. (Geddes)
   2891 - Included targets for vimrun, install, ctags and xxd.  Changed the default to
   2892   use the Borland DLL Runtime Library, makes Vim.exe a log smaller. (Aaron)
   2893 
   2894 "2*" search for the word under the cursor with "2" prepended. (Leonard)
   2895 
   2896 When deleting into a specific register, would still overwrite the non-Win32
   2897 GUI selection.  Now ""x"*P works.
   2898 
   2899 When deleting into the "" register, would write to the last used register.
   2900 Now ""x always writes to the unnamed register.
   2901 
   2902 GUI Athena: A submenu with a '.' in it didn't work.  E.g.,
   2903 ":amenu Syntax.XY\.Z.foo lll".
   2904 
   2905 When first doing ":tag foo" and then ":tnext" and/or ":tselect" the order of
   2906 matching tags could change, because the current file is different.  Now the
   2907 existing matches are kept in the same order, newly found matches are added
   2908 after them, not matter what the current file is.
   2909 
   2910 ":ta" didn't find the second entry in a tags file, if the second entry was
   2911 longer than the first one.
   2912 
   2913 When using ":set si tw=7" inserting "foo {^P}" made the "}" inserted at the
   2914 wrong position.  can_si was still TRUE when the cursor is not in the indent of
   2915 the line.
   2916 
   2917 Running an external command in Win32 version had the problem that Vim exits
   2918 when the X on the console is hit (and confirmed).  Now use the "vimrun"
   2919 command to start the external command indirectly. (Negri)
   2920 
   2921 Win32 GUI: When running an external filter, do it in a minimized DOS box.
   2922 (Negri)
   2923 
   2924 ":let" listed variables without translation into printable characters.
   2925 
   2926 Win32 console: When resizing the window, switching back to the old size
   2927 (when exiting or executing an external command) sometimes failed. (Negri)
   2928 This appears to also fix a "non fixable" problem:
   2929 Win32 console in NT 4.0: When running Vim in a cmd window with a scrollbar,
   2930 the scrollbar disappeared and was not restored when Vim exits.  This does work
   2931 under NT 3.51, it appears not to be a Vim problem.
   2932 
   2933 When executing BufDelete and BufUnload autocommands for a buffer without a
   2934 name, the name of the current buffer was used for <afile>.
   2935 
   2936 When jumping to a tag it reported "tag 1 of >2", while in fact there could be
   2937 only two matches.  Changed to "tag 1 of 2 or more".
   2938 
   2939 ":tjump tag" did a linear search in the tags file, which can be slow.
   2940 
   2941 Configure didn't find "LibXm.so.2.0", a Xm library with a version number.
   2942 
   2943 Win32 GUI: When using a shifted key with ALT, the shift modifier would remain
   2944 set, even when it was already used by changing the used key.  E.g., "<M-S-9>"
   2945 resulted in "<M-S-(>", but it should be "<M-(>". (Negri)
   2946 
   2947 A call to ga_init() was often followed by setting growsize and itemsize.
   2948 Created ga_init2() for this, which looks better. (Aaron)
   2949 
   2950 Function filereadable() could call fopen() with an empty string, which might
   2951 be illegal.
   2952 
   2953 X Windows GUI: When executing an external command that outputs text, could
   2954 write one character beyond the end of a buffer, which caused a crash. (Kohan)
   2955 
   2956 When using "*" or "#" on a string that includes '/' or '?' (when these are
   2957 included in 'isk'), they were not escaped. (Parmelan)
   2958 
   2959 When adding a ToolBar menu in the Motif GUI, the submenu_id field was not
   2960 cleared, causing random problems.
   2961 
   2962 When adding a menu, the check if this menu (or submenu) name already exists
   2963 didn't compare with the simplified version (no mnemonic or accelerator) of the
   2964 new menu.  Could get two menus with the same name, e.g., "File" and "&File".
   2965 
   2966 Breaking a line because of 'textwidth' at the last line in the window caused a
   2967 redraw of the whole window instead of a scroll.  Speeds up normal typing with
   2968 'textwidth' a lot for slow terminals.
   2969 
   2970 An invalid line number produced an "invalid range" error, even when it wasn't
   2971 to be executed (inside "if 0").
   2972 
   2973 When the unnamed, first buffer is re-used, the "BufDelete" autocommand was
   2974 not called.  It would stick in a buffer list menu.
   2975 
   2976 When doing "%" on the NUL after the line, a "{" or "}" in the last character
   2977 of the line was not found.
   2978 
   2979 The Insert mode menu was not used for the "s" command, the Operator-pending
   2980 menu was used instead.
   2981 
   2982 With 'compatible' set, some syntax highlighting was not correct, because of
   2983 using "[\t]" for a search pattern.  Now use the regexps for syntax
   2984 highlighting like the 'cpoptions' option is empty (as was documented already).
   2985 
   2986 When using "map <M-Space> ms" or "map <Space> sss" the output of ":map" didn't
   2987 show any lhs for the mapping (if 'isprint' includes 160).  Now always use
   2988 <Space> and <M-Space>, even when they are printable.
   2989 
   2990 Adjusted the Syntax menu, so that the lowest entry fits on a small screen (for
   2991 Athena, where menus don't wrap).
   2992 
   2993 When using CTRL-E or CTRL-Y in Insert mode for characters like 'o', 'x' and
   2994 digits, repeating the insert didn't work.
   2995 
   2996 The file "tools/ccfilter.README.txt" could not be unpacked when using short
   2997 file names, because of the two dots.  Renamed it to
   2998 "tools/ccfilter_README.txt".
   2999 
   3000 For a dark 'background', using Blue for Directory and SpecialKey highlight
   3001 groups is not very readable.  Use Cyan instead.
   3002 
   3003 In the function uc_scan_attr() in ex_docmd.c there was a goto that jumped into
   3004 a block with a local variable.  That's illegal for some compilers.
   3005 
   3006 Win32 GUI: There was a row of pixels at the bottom of the window which was not
   3007 drawn. (Aaron)
   3008 
   3009 Under DOS, editing "filename/" created a swap file of "filename/.swp".  Should
   3010 be "filename/_swp".
   3011 
   3012 Win32 GUI: pointer was hidden when executing an external command.
   3013 
   3014 When 'so' is 999, "J" near the end of the file didn't redisplay correctly.
   3015 
   3016 ":0a" inserted after the first line, instead of before the first line.
   3017 
   3018 Unix: Wildcard expansion didn't handle single quotes and {} patterns.  Now
   3019 ":file 'window.c'" removes the quotes and ":e 'main*.c'" works (literal '*').
   3020 ":file {o}{n}{e}" now results in file name "one".
   3021 
   3022 Memory leak when setting a string option back to its default value.
   3023 
   3024 ==============================================================================
   3025 VERSION 5.3						*version-5.3*
   3026 
   3027 Version 5.3 was a bug-fix version of 5.2.  There are not many changes.
   3028 Improvements made between version 5.2 and 5.3:
   3029 
   3030 Changed							*changed-5.3*
   3031 -------
   3032 
   3033 Renamed "IDE" menu to "Tools" menu.
   3034 
   3035 
   3036 Added							*added-5.3*
   3037 -----
   3038 
   3039 Win32 GUI: Give a warning when Vim is activated, and one of the files changed
   3040 since editing started. (Negri)
   3041 
   3042 
   3043 Fixed							*fixed-5.3*
   3044 -----
   3045 
   3046 5.2.1: Win32 GUI: space for external command was not properly allocated, could
   3047 cause a crash. (Aaron)  This was the reason to bring out 5.3 quickly after
   3048 5.2.
   3049 
   3050 5.2.2: Some commands didn't complain when used without an argument, although
   3051 they need one: ":badd", ":browse", ":call", ":confirm", ":behave",
   3052 ":delfunction", ":delcommand" and ":tearoff".
   3053 ":endfunction" outside of a function gave wrong error message: "Command not
   3054 implemented".  Should be ":endfunction not inside a function".
   3055 
   3056 5.2.3: Win32 GUI: When gvim was installed in "Program files", or another path
   3057 with a space in it, executing external commands with vimrun didn't work.
   3058 
   3059 5.2.4: Pasting with the mouse in Insert mode left the cursor on the last
   3060 pasted character, instead of behind it.
   3061 
   3062 5.2.5: In Insert mode, cursor after the end of the line, a shift-cursor-left
   3063 didn't include the last character in the selection.
   3064 
   3065 5.2.6: When deleting text from Insert mode (with "<C-O>D" or the mouse), which
   3066 includes the last character in the line, the cursor could be left on the last
   3067 character in the line, instead of just after it.
   3068 
   3069 5.2.7: Win32 GUI: scrollbar was one pixel too big.
   3070 
   3071 5.2.8: Completion of "PopUp" menu showed the derivatives "PopUpc", "PopUPi",
   3072 etc.  ":menu" also showed these.
   3073 
   3074 5.2.9: When using two input() functions on a row, the prompt would not be
   3075 drawn in column 0.
   3076 
   3077 5.2.10: A loop with input() could not be broken with CTRL-C.
   3078 
   3079 5.2.11: ":call asdf" and ":call asdf(" didn't give an error message.
   3080 
   3081 5.2.12: Recursively using ":normal" crashes Vim after a while.  E.g.:
   3082 ":map gq :normal gq<CR>"
   3083 
   3084 5.2.13: Syntax highlighting used 'iskeyword' from wrong buffer.  When using
   3085 ":help", then "/\k*" in another window with 'hlsearch' set.
   3086 
   3087 5.2.14: When using ":source" from a function, global variables would not be
   3088 available unless "g:" was used.
   3089 
   3090 5.2.15: XPM files can have the extension ".pm", which is the same as for Perl
   3091 modules.  Added "syntax/pmfile.vim" to handle this.
   3092 
   3093 5.2.16: On Win32 and Amiga, "echo expand("%:p:h")" removed one dirname in an
   3094 empty buffer.  mch_Fullname() didn't append a slash at the end of a directory
   3095 name.
   3096 
   3097 Should include the character under the cursor in the Visual area when using
   3098 'selection' "exclusive".  This wasn't done for "%", "e", "E", "t" and "f".
   3099 
   3100 ""p would always put register 0, instead of the unnamed (last used) register.
   3101 Reverse the change that ""x doesn't write in the unnamed (last used) register.
   3102 It would always write in register 0, which isn't very useful.  Use "-x for the
   3103 paste mappings in Visual mode.
   3104 
   3105 When there is one long line on the screen, and 'showcmd' is off, "0$" didn't
   3106 redraw the screen.
   3107 
   3108 Win32 GUI: When using 'mousehide', the pointer would flicker when the cursor
   3109 shape is changed. (Negri)
   3110 
   3111 When cancelling Visual mode, and the cursor moves to the start, the wanted
   3112 column wasn't set, "k" or "j" moved to the wrong column.
   3113 
   3114 When using ":browse" or ":confirm", was checking for a comment and separating
   3115 bar, which can break some commands.
   3116 
   3117 Included fixes for Macintosh. (Kielhorn)
   3118 
   3119 ==============================================================================
   3120 VERSION 5.4						*version-5.4*
   3121 
   3122 Version 5.4 adds new features, useful changes and a lot of bug fixes.
   3123 
   3124 
   3125 Runtime directory introduced				*new-runtime-dir*
   3126 ----------------------------
   3127 
   3128 The distributed runtime files are now in $VIMRUNTIME, the user files in $VIM.
   3129 You normally don't set $VIMRUNTIME but let Vim find it, by using
   3130 $VIM/vim{version}, or use $VIM when that doesn't exist.  This allows for
   3131 separating the user files from the distributed files and makes it more easy to
   3132 upgrade to another version.  It also makes it possible to keep two versions of
   3133 Vim around, each with their own runtime files.
   3134 
   3135 In the Unix distribution the runtime files have been moved to the "runtime"
   3136 directory.  This makes it possible to copy all the runtime files at once,
   3137 without the need to know what needs to be copied.
   3138 
   3139 The archives for DOS, Windows, Amiga and OS/2 now have an extra top-level
   3140 "vim" directory.  This is to make clear that user-modified files should be put
   3141 here.  The directory that contains the executables doesn't have '-' or '.'
   3142 characters.  This avoids strange extensions.
   3143 
   3144 The $VIM and $VIMRUNTIME variables are set when they are first used.  This
   3145 allows them to be used by Perl, for example.
   3146 
   3147 The runtime files are also found in a directory called "$VIM/runtime".  This
   3148 helps when running Vim after just unpacking the runtime archive.  When using
   3149 an executable in the "src" directory, Vim checks if "vim54" or "runtime" can
   3150 be added after removing it.  This make the runtime files be found just after
   3151 compiling.
   3152 
   3153 A default for $VIMRUNTIME can be given in the Unix Makefile.  This is useful
   3154 if $VIM doesn't point to above the runtime directory but to e.g., "/etc/".
   3155 
   3156 
   3157 Filetype introduced					*new-filetype-5.4*
   3158 -------------------
   3159 
   3160 Syntax files are now loaded with the new FileType autocommand.  Old
   3161 "mysyntaxfile" files will no longer work. |filetypes|
   3162 
   3163 The scripts for loading syntax highlighting have been changed to use the
   3164 new Syntax autocommand event.
   3165 
   3166 This combination of Filetype and Syntax events allows tuning the syntax
   3167 highlighting a bit more, also when selected from the Syntax menu.  The
   3168 FileType autocommand can also be used to set options and mappings specifically
   3169 for that type of file.
   3170 
   3171 The "$VIMRUNTIME/filetype.vim" file is not loaded automatically.  The
   3172 ":filetype on" command has been added for this.  ":syntax on" also loads it.
   3173 
   3174 The 'filetype' option has been added.  It is used to trigger the FileType
   3175 autocommand event, like the 'syntax' option does for the Syntax event.
   3176 
   3177 ":set syntax=OFF" and ":set syntax=ON" can be used (in a modeline) to switch
   3178 syntax highlighting on/off for the current file.
   3179 
   3180 The Syntax menu commands have been moved to $VIMRUNTIME/menu.vim.  The Syntax
   3181 menu is included both when ":filetype on" and when ":syntax manual" is used.
   3182 
   3183 Renamed the old 'filetype' option to 'osfiletype'.  It was only used for
   3184 RISCOS.  'filetype' is now used for the common file type.
   3185 
   3186 Added the ":syntax manual" command.  Allows manual selection of the syntax to
   3187 be used, e.g., from a modeline.
   3188 
   3189 
   3190 Vim script line continuation			*new-line-continuation*
   3191 ----------------------------
   3192 
   3193 When an Ex line starts with a backslash, it is concatenated to the previous
   3194 line.  This avoids the need for long lines. |line-continuation| (Roemer)
   3195 Example: >
   3196 	if   has("dialog_con") ||
   3197 	   \ has("dialog_gui")
   3198 	    :let result = confirm("Enter your choice",
   3199 				\ "&Yes\n&No\n&Maybe",
   3200 				\ 2)
   3201 	endif
   3202 
   3203 
   3204 Improved session files				*improved-sessions*
   3205 ----------------------
   3206 
   3207 New words for 'sessionoptions':
   3208 - "help"	Restore the help window.
   3209 - "blank"	Restore empty windows.
   3210 - "winpos"	Restore the Vim window position.  Uses the new ":winpos"
   3211 		command
   3212 - "buffers"	Restore hidden and unloaded buffers.  Without it only the
   3213 		buffers in windows are restored.
   3214 - "slash"	Replace backward by forward slashes in file names.
   3215 - "globals"	Store global variables.
   3216 - "unix"	Use unix file format (<NL> instead of <CR><NL>)
   3217 
   3218 The ":mksession" and 'sessionoptions' are now in the +mksession feature.
   3219 
   3220 The top line of the window is also restored when using a session file.
   3221 
   3222 ":mksession" and ":mkvimrc" don't store 'fileformat', it should be detected
   3223 when loading a file.
   3224 
   3225 (Most of this was done by Vince Negri and Robert Webb)
   3226 
   3227 
   3228 Autocommands improved				*improved-autocmds-5.4*
   3229 ---------------------
   3230 
   3231 New events:
   3232 |FileType|	When the file type has been detected.
   3233 |FocusGained|	When Vim got input focus. (Negri)
   3234 |FocusLost|	When Vim lost input focus. (Negri)
   3235 |BufCreate|	Called just after a new buffer has been created or has been
   3236 		renamed. (Madsen)
   3237 |CursorHold|	Triggered when no key has been typed for 'updatetime'.  Can be
   3238 		used to do something with the word under the cursor. (Negri)
   3239 		Implemented CursorHold autocommand event for Unix. (Zellner)
   3240 		Also for Amiga and MS-DOS.
   3241 |GUIEnter|	Can be used to do something with the GUI window after it has
   3242 		been created (e.g., a ":winpos 100 50").
   3243 |BufHidden|	When a buffer becomes hidden.  Used to delete the
   3244 		option-window when it becomes hidden.
   3245 
   3246 Also trigger |BufDelete| just before a buffer is going to be renamed. (Madsen)
   3247 
   3248 The "<amatch>" pattern can be used like "<afile>" for autocommands, except
   3249 that it is the matching value for the FileType and Syntax events.
   3250 
   3251 When ":let @/ = <string>" is used in an autocommand, this last search pattern
   3252 will be used after the autocommand finishes.
   3253 
   3254 Made loading autocommands a bit faster.  Avoid doing strlen() on each exiting
   3255 pattern for each new pattern by remembering the length.
   3256 
   3257 
   3258 Encryption						*new-encryption*
   3259 ----------
   3260 
   3261 Files can be encrypted when writing and decrypted when reading.  Added the
   3262 'key' option, "-x" command line argument and ":X" command. |encryption| (based
   3263 on patch from Mohsin Ahmed)
   3264 
   3265 When reading a file, there is an automatic detection whether it has been
   3266 encrypted.  Vim will then prompt for the key.
   3267 
   3268 Note that the encryption method is not compatible with Vi.  The encryption is
   3269 not unbreakable.  This allows it to be exported from the US.
   3270 
   3271 
   3272 GTK GUI port						*new-GTK-GUI*
   3273 ------------
   3274 
   3275 New GUI port for GTK+.  Includes a toolbar, menu tearoffs, etc. |gui-gtk|
   3276 Added the |:helpfind| command. (Kahn and Dalecki)
   3277 
   3278 
   3279 Menu changes						*menu-changes-5.4*
   3280 ------------
   3281 
   3282 Menus can now also be used in the console.  It is enabled by the new
   3283 'wildmenu' option.  This shows matches for command-line completion like a
   3284 menu.  This works as a minimal file browser.
   3285 
   3286 The new |:emenu| command can be used to execute a menu item.
   3287 
   3288 Uses the last status line to list items, or inserts a line just above the
   3289 command line.  (Negri)
   3290 
   3291 The 'wildcharx' option can be used to trigger 'wildmenu' completion from a
   3292 mapping.
   3293 
   3294 When compiled without menus, this can be detected with has("menu").  Also show
   3295 this in the ":version" output.  Allow compiling GUI versions without menu
   3296 support.  Only include toolbar support when there is menu support.
   3297 
   3298 Moved the "Window" menu all the way to the right (priority 70).  Looks more
   3299 familiar for people working with MS-Windows, shouldn't matter for others.
   3300 
   3301 Included "Buffers" menu.  Works with existing autocommands and functions.  It
   3302 can be disabled by setting the "no_buffers_menu" variable.  (Aaron and Madsen)
   3303 
   3304 Win32 supports separators in a menu: "-.*-". (Geddes)
   3305 Menu separators for Motif now work too.
   3306 
   3307 Made Popup menu for Motif GUI work. (Madsen)
   3308 
   3309 'M' flag in 'guioptions': Don't source the system menu.
   3310 
   3311 All the menu code has been moved from gui.c to menu.c.
   3312 
   3313 
   3314 Viminfo improved					*improved-viminfo*
   3315 ----------------
   3316 
   3317 New flags for 'viminfo':
   3318 '!'	Store global variables in the viminfo file if they are in uppercase
   3319 	letters. (Negri)
   3320 'h'	Do ":nohlsearch" when loading a viminfo file.
   3321 
   3322 Store search patterns in the viminfo file with their offset, magic, etc.  Also
   3323 store the flag whether 'hlsearch' highlighting is on or off (which is not used
   3324 if the 'h' flag is in 'viminfo').
   3325 
   3326 Give an error message when setting 'viminfo' without commas.
   3327 
   3328 
   3329 Various new commands					*new-commands-5.4*
   3330 --------------------
   3331 
   3332 Operator |g?|: rot13 encoding. (Negri)
   3333 
   3334 |zH| and |zL| commands: Horizontal scrolling by half a page.
   3335 |gm| move cursor to middle of screen line. (Ideas by Campbell)
   3336 
   3337 Operations on Visual blocks: |v_b_I|, |v_b_A|, |v_b_c|, |v_b_C|, |v_b_r|,
   3338 |v_b_<| and |v_b_>|. (Kelly)
   3339 
   3340 New command: CTRL-\ CTRL-N, which does nothing in Normal mode, and goes to
   3341 Normal mode when in Insert or Command-line mode.  Can be used by VisVim or
   3342 other OLE programs to make sure Vim is in Normal mode, without causing a beep.
   3343 |CTRL-\_CTRL-N|
   3344 
   3345 ":cscope kill" command to use the connection filename. |:cscope| (Kahn)
   3346 
   3347 |:startinsert| command: Start Insert mode next.
   3348 
   3349 |:history| command, to show all four types of histories. (Roemer)
   3350 
   3351 |[m|, |[M|, |]m| and |]M| commands, for jumping backward/forward to start/end
   3352 of method in a (Java) class.
   3353 
   3354 ":@*" executes the * register. |:@| (Acevedo)
   3355 
   3356 |go| and |:goto| commands: Jump to byte offset in the file.
   3357 
   3358 |gR| and |gr| command: Virtual Replace mode.  Replace characters without
   3359 changing the layout. (Webb)
   3360 
   3361 ":cd -" changes to the directory from before the previous ":cd" command.
   3362 |:cd-| (Webb)
   3363 
   3364 Tag preview commands |:ptag|.  Shows the result of a ":tag" in a dedicated
   3365 window.  Can be used to see the context of the tag (e.g., function arguments).
   3366 (Negri)
   3367 |:pclose| command, and CTRL-W CTRL-Z: Close preview window. (Moore)
   3368 'previewheight' option, height for the preview window.
   3369 Also |:ppop|, |:ptnext|, |:ptprevious|, |:ptNext|, |:ptrewind|, |:ptlast|.
   3370 
   3371 |:find| and |:sfind| commands: Find a file in 'path', (split window) and edit
   3372 it.
   3373 
   3374 The |:options| command opens an option window that shows the current option
   3375 values.  Or use ":browse set" to open it.  Options are grouped by function.
   3376 Offers short help on each option.  Hit <CR> to jump to more help.  Edit the
   3377 option value and hit <CR> on a "set" line to set a new value.
   3378 
   3379 
   3380 Various new options					*new-options-5.4*
   3381 -------------------
   3382 
   3383 Scroll-binding: 'scrollbind' and 'scrollopt' options.  Added |:syncbind|
   3384 command.  Makes windows scroll the same amount (horizontally and/or
   3385 vertically). (Ralston)
   3386 
   3387 'conskey' option for MS-DOS.  Use direct console I/O.  This should work with
   3388 telnet (untested!).
   3389 
   3390 'statusline' option: Configurable contents of the status line.  Also allows
   3391 showing the byte offset in the file.  Highlighting with %1* to %9*, using the
   3392 new highlight groups User1 to User9.  (Madsen)
   3393 
   3394 'rulerformat' option: Configurable contents of the ruler, like 'statusline'.
   3395 (Madsen)
   3396 
   3397 'write' option: When off, writing files is not allowed.  Avoids overwriting a
   3398 file even with ":w!".  The |-m| command line option resets 'write'.
   3399 
   3400 'clipboard' option: How the clipboard is used.  Value "unnamed": Use unnamed
   3401 register like "*. (Cortopassi)  Value "autoselect": Like what 'a' in
   3402 'guioptions' does but works in the terminal.
   3403 
   3404 'guifontset' option: Specify fonts for the +fontset feature, for the X11 GUI
   3405 versions.  Allows using normal fonts when vim is compiled with this feature.
   3406 (Nam)
   3407 
   3408 'guiheadroom' option: How much room to allow above/below the GUI window.
   3409 Used for Motif, Athena and GTK.
   3410 
   3411 Implemented 'tagstack' option: When off, pushing tags onto the stack is
   3412 disabled (Vi compatible).  Useful for mappings.
   3413 
   3414 'shellslash' option.  Only for systems that use a backslash as a file
   3415 separator.  This option will use a forward slash in file names when expanding
   3416 it.  Useful when 'shell' is sh or csh.
   3417 
   3418 'pastetoggle' option: Key sequence that toggles 'paste'.  Works around the
   3419 problem that mappings don't work in Insert mode when 'paste' is set.
   3420 
   3421 'display' option: When set to "lastline", the last line fills the window,
   3422 instead of being replaced with "@" lines.  Only the last three characters are
   3423 replaced with "@@@", to indicate that the line has not finished yet.
   3424 
   3425 'switchbuf' option: Allows re-using existing windows on a buffer that is being
   3426 jumped to, or split the window to open a new buffer. (Roemer)
   3427 
   3428 'titleold' option.  Replaces the fixed string "Thanks for flying Vim", which
   3429 is used to set the title when exiting. (Schild)
   3430 
   3431 
   3432 Vim scripts						*new-script-5.4*
   3433 -----------
   3434 
   3435 The |exists()| function can also check for existence of a function. (Roemer)
   3436 An internal function is now found with a binary search, should be a bit
   3437 faster. (Roemer)
   3438 
   3439 New functions:
   3440 - |getwinposx()| and |getwinposy()|: get Vim window position. (Webb)
   3441 - |histnr()|, |histadd()|, |histget()| and |histdel()|: Make history
   3442   available. (Roemer)
   3443 - |maparg()|: Returns rhs of a mapping.  Based on a patch from Vikas.
   3444 - |mapcheck()|: Check if a map name matches with an existing one.
   3445 - |visualmode()|: Return type of last Visual mode. (Webb)
   3446 - |libcall()|: Call a function in a library.  Currently only for Win32. (Negri)
   3447 - |bufwinnr()|: find window that contains the specified buffer. (Roemer)
   3448 - |bufloaded()|: Whether a buffer exists and is loaded.
   3449 - |localtime()| and |getftime()|: wall clock time and last modification time
   3450   of a file (Webb)
   3451 - |glob()|: expand file name wildcards only.
   3452 - |system()|: get the raw output of an external command. (based on a patch
   3453   from Aaron).
   3454 - |strtrans()|: Translate String into printable characters.  Used for
   3455   2html.vim script.
   3456 - |append()|: easy way to append a line of text in a buffer.
   3457 
   3458 Changed functions:
   3459 - Optional argument to |strftime()| to give the time in seconds. (Webb)
   3460 - |expand()| now also returns names for files that don't exist.
   3461 
   3462 Allow numbers in the name of a user command. (Webb)
   3463 
   3464 Use "v:" for internal Vim variables: "v:errmsg", "v:shell_error", etc.  The
   3465 ones from version 5.3 can be used without "v:" too, for backwards
   3466 compatibility.
   3467 
   3468 New variables:
   3469 "v:warningmsg" and "v:statusmsg" internal variables.  Contain the last given
   3470 warning and status message. |v:warningmsg| |v:statusmsg| (Madsen)
   3471 "v:count1" variable: like "v:count", but defaults to one when no count is
   3472 used. |v:count1|
   3473 
   3474 When compiling without expression evaluation, "if 1" can be used around the
   3475 not supported commands to avoid it being executed.  Works like in Vim 4.x.
   3476 Some of the runtime scripts gave errors when used with a Vim that was compiled
   3477 with minimal features.  Now "if 1" is used around code that is not always
   3478 supported.
   3479 
   3480 When evaluating an expression with && and ||, skip the parts that will not
   3481 influence the outcome.  This makes it faster and avoids error messages. (Webb)
   3482 Also optimized the skipping of expressions inside an "if 0".
   3483 
   3484 
   3485 Avoid hit-enter prompt					*avoid-hit-enter*
   3486 -----------------------
   3487 
   3488 Added 'T' flag to 'shortmess': Truncate all messages that would cause the
   3489 hit-enter prompt (unless that would happen anyway).
   3490 The 'O' flag in 'shortmess' now also applies to quickfix messages, e.g., from
   3491 the ":cn" command.
   3492 
   3493 The default for 'shortmess' is now "filnxtToO", to make most messages fit on
   3494 the command line, and not cause the hit-enter prompt.
   3495 
   3496 Previous messages can be viewed with the new |:messages| command.
   3497 
   3498 Some messages are shown fully, even when 'shortmess' tells to shorten
   3499 messages, because the user is expected to want to see them in full: CTRL-G and
   3500 some quickfix commands.
   3501 
   3502 
   3503 Improved quickfix					*improved-quickfix*
   3504 -----------------
   3505 
   3506 Parse change-directory lines for gmake: "make[1]: Entering directory 'name'".
   3507 Uses "%D" and "%X" in 'errorformat'.
   3508 Also parse "Making {target} in {dir}" messages from make.  Helps when not
   3509 using GNU make. (Schandl)
   3510 
   3511 Use 'isfname' for "%f" in 'errorformat'.
   3512 
   3513 Parsing of multi-line messages. |errorformat-multi-line|
   3514 
   3515 Allow a range for the |:clist| command. (Roemer)
   3516 
   3517 Support for "global" file names, for error formats that output the file name
   3518 once for several errors. (Roemer)
   3519 
   3520 |:cnfile| jumps to first error in next file.
   3521 
   3522 "$*" in 'makeprg' is replaced by arguments to ":make". (Roemer)
   3523 
   3524 
   3525 Regular expressions					*regexp-changes-5.4*
   3526 -------------------
   3527 
   3528 In a regexp, a '$' before "\)" is also considered to be an end-of-line. |/$|
   3529 In patterns "^" after "\|" or "\(" is a start-of-line. |/^| (Robinson)
   3530 
   3531 In a regexp, in front of "\)" and "\|" both "$" and "\$" were considered
   3532 end-of-line.  Now use "$" as end-of-line and "\$" for a literal dollar.  Same
   3533 for '^' after "\(" and "\|". |/\$| |/\^|
   3534 
   3535 Some search patterns can be extremely slow, even though they are not really
   3536 illegal.  For example: "\([^a-z]\+\)\+Q".  Allow interrupting any regexp
   3537 search with CTRL-C.
   3538 
   3539 Register "/: last search string (read-only). (Kohan)  Changed to use last used
   3540 search pattern (like what 'hlsearch' uses).  Can set the search pattern with
   3541 ":let @/ = {expr}".
   3542 
   3543 Added character classes to search patterns, to avoid the need for removing the
   3544 'l' flag from 'cpoptions': |[:tab:]|, |[:return:]|, |[:backspace:]| and
   3545 |[:escape:]|.
   3546 
   3547 By adding a '?' after a comparative operator in an expression, the comparison
   3548 is done by ignoring case. |expr-==?|
   3549 
   3550 
   3551 Other improvements made between version 5.3 and 5.4
   3552 ---------------------------------------------------
   3553 
   3554 Changed							*changed-5.4*
   3555 -------
   3556 
   3557 Unix: Use $TMPDIR for temporary files, if it is set and exists.
   3558 
   3559 Removed "Empty buffer" message.  It isn't useful and can cause a hit-enter
   3560 prompt. (Negri)
   3561 
   3562 "ex -" now reads commands from stdin and works in silent mode.  This is to be
   3563 compatible with the original "ex" command that is used for scripts.
   3564 
   3565 Default range for ":tcldo" is the whole file.
   3566 
   3567 Cancelling Visual mode with ESC moved the cursor.  There appears to be no
   3568 reason for this.  Now leave the cursor where it is.
   3569 
   3570 The ":grep" and ":make" commands see " as part of the arguments, instead of
   3571 the start of a comment.
   3572 
   3573 In expressions the "=~" and "!~" operators no longer are affected by
   3574 'ignorecase'.
   3575 
   3576 Renamed vimrc_example to vimrc_example.vim and gvimrc_example to
   3577 gvimrc_example.vim.  Makes them being recognized as vim scripts.
   3578 
   3579 "gd" no longer starts searching at the end of the previous function, but at
   3580 the first blank line above the start of the current function.  Avoids that
   3581 using "gd" in the first function finds global a variable.
   3582 
   3583 Default for 'complete' changed from ".,b" to ".,w,b,u,t,i".  Many more matches
   3584 will be found, at the cost of time (the search can be interrupted).
   3585 
   3586 It is no longer possible to set 'shell*' options from a modeline.  Previously
   3587 only a warning message was given.  This reduces security risks.
   3588 
   3589 The ordering of the index of documentation files was changed to make it more
   3590 easy to find a subject.
   3591 
   3592 On MS-DOS and win32, when $VIM was not set, $HOME was used.  This caused
   3593 trouble if $HOME was set to e.g., "C:\" for some other tool, the runtime files
   3594 would not be found.  Now use $HOME only for _vimrc, _gvimrc, etc., not to find
   3595 the runtime file.
   3596 
   3597 When 'tags' is "./{fname}" and there is no file name for the current buffer,
   3598 just use it.  Previously it was skipped, causing "vim -t {tag}" not to find
   3599 many tags.
   3600 
   3601 When trying to select text in the 'scrolloff' area by mouse dragging, the
   3602 resulting scrolling made this difficult.  Now 'scrolloff' is temporarily set
   3603 to 0 or 1 to avoid this.  But still allow scrolling in the top line to extend
   3604 to above the displayed text.
   3605 
   3606 Default for 'comments' now includes "sl:/*,mb: *,ex:*/", to make javadoc
   3607 comments work.  Also helps for C comments that start with "/*******".
   3608 
   3609 CTRL-X CTRL-] Insert mode tag expansion tried to expand to all tags when used
   3610 after a non-ID character, which can take a very long time.  Now limit this to
   3611 200 matches.  Also used for command-line tag completion.
   3612 
   3613 The OS/2 distribution has been split in two files.  It was too big to fit on a
   3614 floppy.  The same runtime archive as for the PC is now used.
   3615 
   3616 In the documentation, items like <a-z> have been replaced with {a-z} for
   3617 non-optional arguments.  This avoids confusion with key names: <C-Z> is a
   3618 CTRL-Z, not a character between C and Z, that is {C-Z}.
   3619 
   3620 
   3621 Added							*added-5.4*
   3622 -----
   3623 
   3624 Color support for the iris-ansi builtin termcap entry. (Tubman)
   3625 
   3626 Included VisVim version 1.3a. (Erhardt)
   3627 
   3628 Win32 port for SNiFF+ interface. (Leherbauer)
   3629 Documentation file for sniff interface: if_sniff.txt. (Leherbauer)
   3630 
   3631 Included the "SendToVim" and "OpenWithVim" programs in the OleVim directory.
   3632 To be used with the OLE version of gvim under MS-Windows. (Schaller)
   3633 
   3634 Included Exuberant Ctags version 3.2.4 with Eiffel support. (Hiebert)
   3635 
   3636 When a file that is being edited is deleted, give a warning (like when the
   3637 time stamp changed).
   3638 
   3639 Included newer versions of the HTML-generating Awk and Perl scripts. (Colombo)
   3640 
   3641 Linux console mouse support through "gpm". (Tsindlekht)
   3642 
   3643 Security fix: Disallow changing 'secure' and 'exrc' from a modeline.  When
   3644 'secure' is set, give a warning for changing options that contain a program
   3645 name.
   3646 
   3647 Made the Perl interface work with Perl 5.005 and threads. (Verdoolaege)
   3648 
   3649 When giving an error message for an ambiguous mapping, include the offending
   3650 mapping. (Roemer)
   3651 
   3652 Command line editing:
   3653 - Command line completion of mappings. (Roemer)
   3654 - Command line completion for ":function", ":delfunction", ":let", ":call",
   3655   ":if", etc. (Roemer)
   3656 - When using CTRL-D completion for user commands that have
   3657   "-complete=tag_listfiles" also list the file names.  (Madsen)
   3658 - Complete the arguments of the ":command" command. (Webb)
   3659 - CTRL-R . in command line inserts last inserted text.  CTRL-F, CTRL-P, CTRL-W
   3660   and CTRL-A after CTRL-R are used to insert an object from under the cursor.
   3661   (Madsen)
   3662 
   3663 Made the text in uganda.txt about copying Vim a bit more clear.
   3664 
   3665 Updated the Vim tutor.  Added the "vimtutor" command, which copies the tutor
   3666 and starts Vim on it.  "make install" now also copies the tutor.
   3667 
   3668 In the output of ":clist" the current entry is highlighted, with the 'i'
   3669 highlighting (same as used for 'incsearch').
   3670 
   3671 For the ":clist" command, you can scroll backwards with "b" (one screenful),
   3672 "u" (half a screenful) and "k" (one line).
   3673 
   3674 Multi-byte support:
   3675 - X-input method for multibyte characters.  And various fixes for multibyte
   3676   support. (Nam)
   3677 - Hangul input method feature: |hangul|. (Nam)
   3678 - Cleaned up configuration of multibyte support, XIM, fontset and Hangul
   3679   input.  Each is now configurable separately.
   3680 - Changed check for GTK_KEYBOARD to HANGUL_KEYBOARD_TYPE. (Nam)
   3681 - Added doc/hangulin.txt: Documentation for the Hangul input code. (Nam)
   3682 - XIM support for GTK+. (Nam)
   3683 - First attempt to include support for SJIS encoding. (Nagano)
   3684 - When a double-byte character doesn't fit at the end of the line, put a "~"
   3685   there and print it on the next line.
   3686 - Optimize output of multibyte text. (Park)
   3687 - Win32 IME: preedit style is like over-the-spot. (Nagano)
   3688 - Win32 IME: IME mode change now done with ImmSetOpenStatus. (Nagano)
   3689 - GUI Athena: file selection dialog can display multibyte characters.
   3690   (Nagano)
   3691 - Selection reply for XA_TEXT as XA_STRING. (Nagano)
   3692 
   3693 "runtime/macros/diffwin.vim".  Mappings to make a diff window. (Campbell)
   3694 
   3695 Added ".obj" to the 'suffixes' option.
   3696 
   3697 Reduced size of syntax/synload.vim by using the ":SynAu" user command.
   3698 Automated numbering of Syntax menu entries in menu.vim.
   3699 In the Syntax menu, insert separators between syntax names that start with
   3700 a different letter. (Geddes)
   3701 
   3702 Xterm:
   3703 - Clipboard support when using the mouse in an xterm. (Madsen)
   3704 - When using the xterm mouse, track dragging of the mouse.  Use xterm escape
   3705   sequences when possible.  It is more precise than other methods, but
   3706   requires a fairly recent xterm version.  It is enabled with "xterm2" in
   3707   'ttymouse'.  (Madsen)
   3708 - Check xterm patch level, to set the value of 'ttymouse'.  Has only been
   3709   added to xterm recently (patch level > 95).  Uses the new 't_RV' termcap
   3710   option.  Set 'ttymouse' to "xterm2" when a correct response is recognized.
   3711   Will make xterm mouse dragging work better.
   3712 - Support for shifted function keys on xterm.  Changed codes for shifted
   3713   cursor keys to what the xterm actually produces.  Added codes for shifted
   3714   <End> and <Home>.
   3715 - Added 't_WP' to set the window position in pixels and 't_WS' to set the
   3716   window size in characters.  Xterm can now move (used for ":winpos") and
   3717   resize (use for ":set lines=" and ":set columns=").
   3718 
   3719 X11:
   3720 - When in Visual mode but not owning the selection, display the Visual area
   3721   with the VisualNOS group to show this. (Madsen)
   3722 - Support for requesting the type of clipboard support.  Used for AIX and
   3723   dtterm. (Wittig)
   3724 - Support compound_text selection (even when compiled without multibyte).
   3725 
   3726 Swap file:
   3727 - New variation for naming swap files: Replace path separators into %, place
   3728   all swap files in one directory.  Used when a name in 'dir' ends in two path
   3729   separators. (Madsen)
   3730 - When a swap file is found, show whether it contains modifications or not in
   3731   the informative message. (Madsen)
   3732 - When dialogs are supported, use a dialog to ask the user what to do when a
   3733   swapfile already exists.
   3734 
   3735 "popup_setpos" in 'mousemodel' option.  Allows for moving the cursor when
   3736 using the right mouse button.
   3737 
   3738 When a buffer is deleted, the selection for which buffer to display instead
   3739 now uses the most recent entry from the jump list. (Madsen)
   3740 
   3741 When using CTRL-O/CTRL-I, skip deleted buffers.
   3742 
   3743 A percentage is shown in the ruler, when there is room.
   3744 
   3745 Used autoconf 1.13 to generate configure.
   3746 
   3747 Included get_lisp_indent() from Dirk van Deun.  Does better Lisp indenting
   3748 when 'p' flag in 'cpoptions' is not included.
   3749 
   3750 Made the 2html.vim script quite a bit faster.  (based on ideas from Geddes)
   3751 
   3752 Unix:
   3753 - Included the name of the user that compiled Vim and the system name it was
   3754   compiled on in the version message.
   3755 - "make install" now also installs the "tools" directory.  Makes them
   3756   available for everybody.
   3757 - "make check" now does the same as "make test".  "make test" checks for
   3758   Visual block mode shift, insert, replace and change.
   3759 - Speed up comparing a file name with existing buffers by storing the
   3760   device/inode number with the buffer.
   3761 - Added configure arguments "--disable-gtk", "--disable-motif" and
   3762   "--disable-athena", to be able to disable a specific GUI (when it doesn't
   3763   work).
   3764 - Renamed the configure arguments for disabling the check for specific GUIs.
   3765   Should be clearer now. (Kahn)
   3766 - On a Digital Unix system ("OSF1") check for the curses library before
   3767   termlib and termcap. (Schild)
   3768 - "make uninstall_runtime" will only delete the version-specific files.  Can
   3769   be used to delete the runtime files of a previous version.
   3770 
   3771 Macintosh: (St-Amant)
   3772 - Dragging the scrollbar, like it's done for the Win32 GUI.  Moved common code
   3773   from gui_w32.c to gui.c
   3774 - Added dialogs and file browsing.
   3775 - Resource fork preserved, warning when it will be lost.
   3776 - Copy original file attributes to newly written file.
   3777 - Set title/notitle bug solved.
   3778 - Filename completion improved.
   3779 - Grow box limit resize to a char by char size.
   3780 - Use of rgb.txt for more colors (but give back bad color).
   3781 - Apple menu works (beside the about...).
   3782 - Internal border now vim compliant.
   3783 - Removing a menu doesn't crash anymore.
   3784 - Weak-linking of Python 1.5.1 (only on PPC).  Python is supported when the
   3785   library is available.
   3786 - If an error is encountered when sourcing the users .vimrc, the alert box now
   3787   shows right away with the OK button defaulted.  There's no more "Delete"-key
   3788   sign at the start of each line
   3789 - Better management of environment variables.  Now $VIM is calculated only
   3790   once, not regenerated every time it is used.
   3791 - No more CPU hog when in background.
   3792 - In a sourced Vim script the Mac file format can be recognized, just like DOS
   3793   file format is.
   3794 
   3795 When both "unix" and "mac" are present in 'fileformats', prefer "mac" format
   3796 when there are more CR than NL characters.
   3797 When using "mac" fileformat, use CR instead of a NL, because NL is used for
   3798 NUL.  Will preserve all characters in a file. (Madsen)
   3799 
   3800 The DOS install.exe now contains checks for an existing installation.  It
   3801 avoids setting $VIM and $PATH again.
   3802 The install program for Dos/Windows can now install Vim in the popup menu, by
   3803 adding two registry keys.
   3804 
   3805 Port to EGCS/mingw32.  New Makefile.ming. (Aaron)
   3806 
   3807 DOS 16 bit: Don't include cursor shape stuff.  Save some bytes.
   3808 
   3809 TCL support to Makefile.w32. (Duperval)
   3810 
   3811 OS/2: Use argv[0] to find runtime files.
   3812 
   3813 When using "gf" to go to a buffer that has already been used, jump to the
   3814 line where the cursor last was.
   3815 
   3816 Colored the output of ":tselect" a bit more.  Different highlighting between
   3817 tag name and file name.  Highlight field name ("struct:") separately from
   3818 argument.
   3819 
   3820 Backtick expansion for non-Unix systems.  Based on a patch from Aaron.
   3821 Allows the use of things like ":n `grep -l test *.c`" and
   3822 "echo expand('`ls m*`')".
   3823 
   3824 Check for the 'complete' option when it is set. (Acevedo)
   3825 'd' flag in 'complete' searches for defined names or macros.
   3826 While searching for Insert mode completions in include files and tags files,
   3827 check for typeahead, so that you can use matches early. (Webb)
   3828 The '.' flag in 'complete' now scans the current buffer completely, ignoring
   3829 'nowrapscan'.  (Webb)
   3830 
   3831 Added '~' flag to 'whichwrap'. (Acevedo)
   3832 
   3833 When ending the Visual mode (e.g., with ESC) don't grab ownership of the
   3834 selection.
   3835 
   3836 In a color terminal, "fg" and "bg" can be used as color names.  They stand for
   3837 the "Normal" colors.
   3838 
   3839 A few cscope cleanups. (Kahn)
   3840 
   3841 Included changed vimspell.sh from Schemenauer.
   3842 
   3843 Concatenation of strings in an expression with "." is a bit faster. (Roemer)
   3844 
   3845 The ":redir" command can now redirect to a register: ":redir @r". (Roemer)
   3846 
   3847 Made the output of ":marks" and ":jumps" look similar.  When the mark is in
   3848 the current file, show the text at the mark.  Also for ":tags".
   3849 
   3850 When configure finds ftello() and fseeko(), they are used in tag.c (for when
   3851 you have extremely big tags files).
   3852 
   3853 Configure check for "-FOlimit,2000" argument for the compiler. (Borsenkow)
   3854 
   3855 GUI:
   3856 - When using ":gui" in a non-GUI Vim, give a clear error message.
   3857 - "gvim -v" doesn't start the GUI (if console support is present).
   3858 - When in Ex mode, use non-Visual selection for the whole screen.
   3859 - When starting with "gvim -f" and using ":gui" in the .gvimrc file, Vim
   3860   forked anyway.  Now the "-f" flag is remembered for ":gui".  Added "gui -b"
   3861   to run gvim in the background anyway.
   3862 
   3863 Motif GUI:
   3864 - Check for "-lXp" library in configure (but it doesn't work yet...).
   3865 - Let configure check for Lesstif in "/usr/local/Lesstif/Motif*".  Changed the
   3866   order to let a local Motif version override a system standard version.
   3867 
   3868 Win32 GUI:
   3869 - When using "-register" or "-unregister" in the non-OLE version, give an
   3870   error message.
   3871 - Use GTK toolbar icons.  Make window border look better.  Use sizing handles
   3872   on the lower left&right corners of the window. (Negri)
   3873 - When starting an external command with ":!start" and the command can not be
   3874   executed, give an error message. (Webb)
   3875 - Use sizing handles for the grey rectangles below the scrollbars.  Can draw
   3876   toolbar in flat mode now, looks better. (Negri)
   3877 - Preparations for MS-Windows 3.1 addition.  Mostly changing WIN32 to MSWIN
   3878   and USE_GUI_WIN32 to USE_GUI_MSWIN. (Negri)
   3879 
   3880 Avoid allocating the same string four times in buflist_findpat(). (Williams)
   3881 
   3882 Set title and icon text with termcap options 't_ts', 't_fs', 't_IS' and
   3883 't_IE'.  Allows doing this on any terminal that supports setting the title
   3884 and/or icon text. (Schild)
   3885 
   3886 New 'x' flag in 'comments': Automatically insert the end part when its last
   3887 character is typed.  Helps to close a /* */ comment in C. (Webb)
   3888 
   3889 When expand() has a second argument which is non-zero, don't use 'suffixes'
   3890 and 'wildignore', return all matches.
   3891 
   3892 'O' flag in 'cpoptions' When not included, Vim will not overwrite a file, if
   3893 it didn't exist when editing started but it does exist when the buffer is
   3894 written to the file.  The file must have been created outside of Vim, possibly
   3895 without the user knowing it.  When this is detected after a shell command,
   3896 give a warning message.
   3897 
   3898 When editing a new file, CTRL-G will show [New file].  When there were errors
   3899 while reading the file, CTRL-G will show [Read errors].
   3900 
   3901 ":wall" can now use a dialog and file-browsing when needed.
   3902 
   3903 Grouped functionality into new features, mainly to reduce the size of the
   3904 minimal version:
   3905 +linebreak:	'showbreak', 'breakat' and 'linebreak'
   3906 +visualextra:	"I"nsert and "A"ppend in Visual block mode, "c"hange all lines
   3907 		in a block, ">" and "<": Shifting a block, "r": Replacing a
   3908 		Visual area with one character.
   3909 +comments:	'comments'
   3910 +cmdline_info:	'ruler' and 'showcmd'.  Replaces +showcmd.
   3911 "+title"	Don't add code to set title or icon for MSDOS, this was not
   3912 		possible anyway.
   3913 +cmdline_compl	Disable commandline completion at compile time, except for
   3914 		files, directories and help items.
   3915 
   3916 Moved features from a list of function calls into an array.  Should save a bit
   3917 of space.
   3918 
   3919 While entering the body of a function, adjust indent according to "if" and
   3920 "while" commands.
   3921 
   3922 VMS: Adjusted os_vms.mms a bit according to suggestions from Arpadffy.
   3923 
   3924 The flags in the 'comments' option can now include an offset.  This makes it
   3925 possible to align "/*****", "/*   xxx" and "/*" comments with the same
   3926 'comments' setting.  The default value for 'comments' uses this.
   3927 Added 'O' flag: Don't use this part for the "O" command.  Useful for "set
   3928 com=sO:*\ -,mO:*\ \ ,exO:*/"
   3929 
   3930 FileType autocommands recognize ".bak", ".orig" and "~" extensions and remove
   3931 them to find the relevant extension.
   3932 
   3933 The tutorial for writing a Vim script file has been extended.
   3934 
   3935 Some more highlighting in help files, for items that are not typed literally.
   3936 
   3937 Can use "CTRL-W CTRL-G" like "CTRL-W g".
   3938 
   3939 "make test" for OS/2.
   3940 
   3941 Adjusted configure to automatically use the GUI for BeOS.
   3942 
   3943 
   3944 Fixed							*fixed-5.4*
   3945 -----
   3946 
   3947 5.3.1: When using an autocommand for BufWritePre that changes the name of the
   3948 buffer, freed memory would be used. (Geddes)
   3949 
   3950 Mac: Compiler didn't understand start of skip_class_name().
   3951 
   3952 Win32 GUI:
   3953 - When cancelling the font requester, don't give an error message.
   3954 - When a tearoff-menu is open and its menu is deleted, Vim could crash.
   3955   (Negri)
   3956 - There was a problem on Windows 95 with (un)maximizing the window.
   3957   (Williams)
   3958 - when 'mousehide' is set, the mouse would stay hidden when a menu is dropped
   3959   with the keyboard. (Ralston)
   3960 - The tempname() function already created the file.  Caused problems when
   3961   using ":w".  Now the file is deleted.
   3962 - Cursor disappeared when ending up in the top-left character on the screen
   3963   after scrolling. (Webb)
   3964 - When adding a submenu for a torn-off menu, it was not updated.
   3965 - Menu tooltip was using the toolbar tooltip. (Negri)
   3966 - Setting 'notitle' didn't remove the title. (Steed)
   3967 - Using ":!start cmd" scrolled the screen one line up, and didn't wait for
   3968   return when the command wasn't found.
   3969 
   3970 Cscope interface: Sorting of matches was wrong.  Starting the interface could
   3971 fail. (Kahn)
   3972 
   3973 Motif GUI: Could not compile with Motif 1.1, because some tear-off
   3974 functionality was not in #ifdefs.
   3975 
   3976 Configure could sometimes not compile or link the test program for sizeof(int)
   3977 properly.  This caused alignment problems for the undo structure allocations.
   3978 Added a safety check that SIZEOF_INT is not zero.
   3979 
   3980 Added configure check to test if strings.h can be included after string.h.
   3981 Some systems can't handle it.
   3982 Some systems need both string.h and strings.h included.  Adjusted vim.h for
   3983 that.  Removed including string.h from os_unixx.h, since it's already in
   3984 vim.h. (Savage)
   3985 AIX: defining _NO_PROTO in os_unix.h causes a conflict between string.h and
   3986 strings.h, but after the configure check said it was OK.  Also define
   3987 _NO_PROTO for AIX in the configure check. (Winn)
   3988 
   3989 When closing a window with CTRL-W c, the value of 'hidden' was not taken into
   3990 account, the buffer was always unloaded. (Negri)
   3991 
   3992 Unix Makefile: "make install" always tried to rename an older executable and
   3993 remove it.  This caused an error message when it didn't exit.  Added a check
   3994 for the existence of an old executable.
   3995 The command line for "make install" could get too long, because of the many
   3996 syntax files.  Now first do a "cd" to reduce the length.
   3997 
   3998 On RISCOS and MSDOS, reading a file could fail, because the short filename was
   3999 used, which can be wrong after a ":!cd".
   4000 
   4001 In the DOS versions, the wrong install.exe was included (required Windows).
   4002 Now the install.exe version is included that is the same as the Vim version.
   4003 This also supports long file names where possible.
   4004 
   4005 When recording, and stopping while in Insert mode with CTRL-O q, the CTRL-O
   4006 would also be recorded.
   4007 
   4008 32bit DOS version: "vim \file", while in a subdirectory, resulted in "new
   4009 file" for "file" in the local directory, while "\file" did exist.  When
   4010 "file" in the current directory existed, this didn't happen.
   4011 
   4012 MSDOS: Mouse could not go beyond 80 columns in 132 columns mode. (Young)
   4013 
   4014 "make test" failed in the RedHat RPM, because compatible is off by default.
   4015 
   4016 In Insert mode <C-O><C-W><C-W> changes to other window, but the status bars
   4017 were not updated until another character was typed.
   4018 
   4019 MSDOS: environment options in lowercase didn't work, although they did in the
   4020 Win32 versions. (Negri)
   4021 
   4022 After ":nohlsearch", a tag command switched highlighting back on.
   4023 
   4024 When using "append" command as the last line in an autocommand, Vim would
   4025 crash.
   4026 
   4027 RISCOS: The scroll bumpers (?) were not working properly. (Leonard)
   4028 
   4029 "zl" and "zh" could move the cursor, but this didn't set the column in which
   4030 e.g., "k" would move the cursor.
   4031 
   4032 When doing ":set all&" the value of 'scroll' was not set correctly.  This
   4033 caused an error message when later setting any other number option.
   4034 
   4035 When 'hlsearch' highlighting has been disabled with ":nohlsearch",
   4036 incremental searching would switch it back on too early.
   4037 
   4038 When listing tags for ":tselect", and using a non-search command, and the last
   4039 character was equal to the first (e.g., "99"), the last char would not be
   4040 shown.
   4041 
   4042 When searching for tags with ":tag" Vim would assume that all matches had been
   4043 found when there were still more (e.g. from another tags file).
   4044 
   4045 Win32: Didn't recognize "c:\" (e.g., in tags file) as absolute path when
   4046 upper/lowercase was different.
   4047 
   4048 Some xterms (Debian) send <Esc>OH for HOME and <Esc>OF for END.  Added these
   4049 to the builtin-xterm.
   4050 
   4051 In ex mode, any CR was seen as the end of the line.  Only a NL should be
   4052 handled that way.  broke ":s/foo/some^Mtext/".
   4053 
   4054 In menu.vim, a vmenu was used to override an amenu.  That didn't work, because
   4055 the system menu file doesn't overwrite existing menus.  Added explicit vunmenu
   4056 to solve this.
   4057 
   4058 Configure check for terminal library could find a library that doesn't work at
   4059 runtime (Solaris: shared library not found).  Added a check that a program
   4060 with tgoto() can run correctly.
   4061 
   4062 Unix: "echo -n" in the Makefile doesn't work on all systems, causing errors
   4063 compiling pathdef.c.  Replaced it with "tr".
   4064 
   4065 Perl: DO_JOIN was redefined by Perl.  Undefined it in the perl files.
   4066 
   4067 Various XIM and multibyte fixes:
   4068 - Fix user cannot see his language while he is typing his language with
   4069   off-the-spot method. (Nagano)
   4070 - Fix preedit position using text/edit area (using gui.wid). (Nagano)
   4071 - remove 'fix dead key' codes.  It was needed since XNFocusWindow was
   4072   "x11_window", XNFocusWindow is now gui.wid. (Nagano)
   4073 - Remove some compile warnings and fix typos. (Namsh)
   4074 - For status area, check the gtk+ version while Vim runs.  I believe it is
   4075   better than compile time check. (Namsh)
   4076 - Remove one FIXME for gtk+-xim. (Namsh)
   4077 - XIM: Dead keys didn't work for Czech. (Vyskovsky)
   4078 - Multibyte: If user input only 3byte such as mb1_mb2_eng or eng_mb1_mb2 VIM
   4079   could convert it to special character. (Nam)
   4080 - Athena/Motif with XIM: fix preedit area. (Nam)
   4081 - XIM: Composed strings were sometimes ignored.  Vim crashed when compose
   4082   string was longer than 256 bytes.  IM's geometry control is fixed. (Nam,
   4083   Nagano)
   4084 - Win32 multibyte: hollowed cursor width on a double byte char was wrong.
   4085   (Nagano)
   4086 - When there is no GUI, selecting XIM caused compilation problems.
   4087   Automatically disable XIM when there is no GUI in configure.
   4088 - Motif and Athena: When compiled with XIM, but the input method was not
   4089   enabled, there would still be a status line.  Now the status line is gone if
   4090   the input method doesn't work. (Nam)
   4091 
   4092 Win32: tooltip was not removed when selecting a parent menu (it was when
   4093 selecting a menu entry). (Negri)
   4094 
   4095 Unix with X: Some systems crash on exit, because of the XtCloseDisplay() call.
   4096 Removed it, it should not be necessary when exiting.
   4097 
   4098 Win32: Crash on keypress when compiled with Borland C++. (Aaron)
   4099 
   4100 When checking for Motif library files, prefer the same location as the include
   4101 files (with "include" replaced with "lib") above another entry.
   4102 
   4103 Athena GUI: Changed "XtOffset()" in gui_at_fs.c to "XtOffsetOf()", like it's
   4104 used in gui_x11.c.
   4105 
   4106 Win32: When testing for a timestamp of a file on floppy, would get a dialog
   4107 box when the floppy has been removed.  Now return with an error.  (Negri)
   4108 
   4109 Win32 OLE: When forced to come to the foreground, a minimized window was still
   4110 minimized, now it's restored. (Zivkov)
   4111 
   4112 There was no check for a positive 'shiftwidth'.  A negative value could cause
   4113 a hangup, a zero value a crash.
   4114 
   4115 Athena GUI: horizontal scrollbar wasn't updated correctly when clicking right
   4116 or left of the thumb.
   4117 
   4118 When making a Visual-block selection in one window, and trying to scroll
   4119 another, could cause errors for accessing non-existent line numbers.
   4120 
   4121 When 'matchpairs' contains "`:'", jumping from the ` to the ' didn't work
   4122 properly.
   4123 
   4124 Changed '\"' to '"' to make it compatible with old C compilers.
   4125 
   4126 The command line expansion for mappings caused a script with a TAB between lhs
   4127 and rhs of a map command to fail.  Assume the TAB is to separate lhs and rhs
   4128 when there are no mappings to expand.
   4129 
   4130 When editing a file with very long lines with 'scrolloff' set, "j" would
   4131 sometimes end up in a line which wasn't displayed.
   4132 
   4133 When editing a read-only file, it was completely read into memory, even when
   4134 it would not fit.  Now create a swap file for a read-only file when running
   4135 out of memory while reading the file.
   4136 
   4137 When using ":set cino={s,e-s", a line after "} else {" was not indented
   4138 properly.  Also added a check for this in test3.in.
   4139 
   4140 The Hebrew mapping for the command line was remembered for the next command
   4141 line.  That isn't very useful, a command is not Hebrew. (Kol)
   4142 
   4143 When completing file names with embedded spaces, like "Program\ files", this
   4144 didn't work.  Also for user commands.  Moved backslash_halve() down to
   4145 mch_expandpath().
   4146 
   4147 When using "set mouse=a" in Ex mode, mouse events were handled like typed
   4148 text.  Then typing "quit" screwed up the mouse behavior of the xterm.
   4149 
   4150 When repeating an insert with "." that contains a CTRL-Y, a number 5 was
   4151 inserted as "053".
   4152 
   4153 Yanking a Visual area, with the cursor past the line, didn't move the cursor
   4154 back onto the line.  Same for "~", "u", "U" and "g?"
   4155 
   4156 Win32: Default for 'grepprg' could be "findstr /n" even though there is no
   4157 findstr.exe (Windows 95).  Check if it exists, and fall back to "grep -n" if
   4158 it doesn't.
   4159 
   4160 Because gui_mouse_moved() inserted a leftmouse click in the input buffer,
   4161 remapping a leftmouse click caused strange effects.  Now Insert another code
   4162 in the input buffer.  Also insert a leftmouse release, to avoid the problem
   4163 with ":map <LeftMouse> l" that the next release is seen as the release for the
   4164 focus click.
   4165 
   4166 With 'wrap' on, when using a line that doesn't fit on the screen, if the start
   4167 of the Visual area is before the start of the screen, there was no
   4168 highlighting.  Also, 'showbreak' doesn't work properly.
   4169 
   4170 DOS, Win32: A pattern "[0-9]\+" didn't work in autocommands.
   4171 
   4172 When creating a swap file for a buffer which isn't the current buffer, could
   4173 get a mixup of short file name, resulting in a long file name when a short
   4174 file name was required.  makeswapname() was calling modname() instead of
   4175 buf_modname().
   4176 
   4177 When a function caused an error, and the error message was very long because
   4178 of recursiveness, this would cause a crash.
   4179 
   4180 'suffixes' were always compared with matching case.  For MS-DOS, Win32 and
   4181 OS/2 case is now ignored.
   4182 
   4183 The use of CHARBITS in regexp.c didn't work on some Linux.  Don't use it.
   4184 
   4185 When generating a script file, 'cpo' was made empty.  This caused backslashes
   4186 to disappear from mappings.  Set it to "B" to avoid that.
   4187 
   4188 Lots of typos in the documentation. (Campbell)
   4189 
   4190 When editing an existing (hidden) buffer, jump to the last used cursor
   4191 position. (Madsen)
   4192 
   4193 On a Sun the xterm screen was not restored properly when suspending. (Madsen)
   4194 
   4195 When $VIMINIT is processed, 'nocompatible' was only set after processing it.
   4196 
   4197 Unix: Polling for a character wasn't done for GPM, Sniff and Xterm clipboard
   4198 all together.  Cleaned up the code for using select() too.
   4199 
   4200 When executing external commands from the GUI, some typeahead was lost.  Added
   4201 some code to regain as much typeahead as possible.
   4202 
   4203 When the window height is 5 lines or fewer, <PageDown> didn't use a one-line
   4204 overlap, while <PageUp> does.  Made sure that <PageUp> uses the same overlap
   4205 as <PageDown>, so that using them both always displays the same lines.
   4206 
   4207 Removed a few unused functions and variables (found with lint).
   4208 
   4209 Dictionary completion didn't use 'infercase'. (Raul)
   4210 
   4211 Configure tests failed when the Perl library was not in LD_LIBRARY_PATH.
   4212 Don't use the Perl library for configure tests, add it to the linker line only
   4213 when linking Vim.
   4214 
   4215 When using ncurses/terminfo, could get a 't_Sf' and 't_Sb' termcap entry that
   4216 has "%d" instead of "%p1%d".  The light background colors didn't work then.
   4217 
   4218 GTK GUI with ncurses: Crashed when starting up in tputs().  Don't use tputs()
   4219 when the GUI is active.
   4220 
   4221 Could use the ":let" command to set the "count", "shell_error" and "version"
   4222 variables, but that didn't work.  Give an error message when trying to set
   4223 them.
   4224 
   4225 On FreeBSD 3.0, tclsh is called tclsh8.0.  Adjusted configure.in to find it.
   4226 
   4227 When Vim is linked with -lncurses, but python uses -ltermcap, this causes
   4228 trouble: "OOPS".  Configure now removes the -ltermcap.
   4229 
   4230 :@" and :*" didn't work properly, because the " was recognized as the start of
   4231 a comment.
   4232 
   4233 Win32s GUI: Minimizing the console where a filter command runs in caused
   4234 trouble for detecting that the filter command has finished. (Negri)
   4235 
   4236 After executing a filter command from an xterm, the mouse would be disabled.
   4237 It would work again after changing the mode.
   4238 
   4239 Mac GUI: Crashed in newenv(). (St-Amant)
   4240 
   4241 The menus and mappings in mswin.vim didn't handle text ending in a NL
   4242 correctly. (Acevedo)
   4243 
   4244 The ":k" command didn't check if it had a valid argument or extra characters.
   4245 Now give a meaningful error message. (Webb)
   4246 
   4247 On SGI, the signal function doesn't always have three arguments.  Check for
   4248 struct sigcontext to find out.  Might still be wrong...
   4249 
   4250 Could crash when using 'hlsearch' and search pattern is "^".
   4251 
   4252 When search patterns were saved and restored, status of no_hlsearch was not
   4253 also saved and restored (from ":nohlsearch" command).
   4254 
   4255 When using setline() to make a line shorter, the cursor position was not
   4256 adjusted.
   4257 
   4258 MS-DOS and Win95: When trying to edit a file and accidentally adding a slash
   4259 or backslash at the end, the file was deleted.  Probably when trying to create
   4260 the swap file.  Explicitly check for a trailing slash or backslash before
   4261 trying to read a file.
   4262 
   4263 X11 GUI: When starting the GUI failed and received a deadly signal while
   4264 setting the title, would lock up when trying to exit, because the title is
   4265 reset again.  Avoid using mch_settitle() recursively.
   4266 
   4267 X11 GUI: When starting the GUI fails, and then trying it again, would crash,
   4268 because argv[] has been freed and x11_display was reset to NULL.
   4269 
   4270 Win32: When $HOME was set, would put "~user" in the swap file, which would
   4271 never compare with a file name, and never cause the attention message.  Put
   4272 the full path in the swap file instead.
   4273 
   4274 Win32 console: There were funny characters at the end of the "vim -r" swap
   4275 files message (direct output of CR CR LF).
   4276 
   4277 DOS 32 bit: "vim -r" put the text at the top of the window.
   4278 
   4279 GUI: With 'mousefocus' set, got mouse codes as text with "!sleep 100" or "Q".
   4280 
   4281 Motif and Win32 GUI: When changing 'guifont' to a font of the same size the
   4282 screen wasn't redrawn.
   4283 
   4284 Unix: When using ":make", jumping to a file b.c, which is already open as a
   4285 symbolic link a.c, opened a new buffer instead of using the existing one.
   4286 
   4287 Inserting text in the current buffer while sourcing the .vimrc file would
   4288 cause a crash or hang.  The memfile for the current buffer was never
   4289 allocated.  Now it's allocated as soon as something is written in the buffer.
   4290 
   4291 DOS 32 bit: "lightblue" background worked for text, but not drawn parts were
   4292 black.
   4293 
   4294 DOS: Colors of console were not restored upon exiting.
   4295 
   4296 When recording, with 'cmdheight' set to 2 and typing Esc> in Insert mode
   4297 caused the "recording" message to be doubled.
   4298 
   4299 Spurious "file changed" messages could happen on Windows.  Now tolerate a one
   4300 second difference, like for Linux.
   4301 
   4302 GUI: When returning from Ex mode, scrollbars were not updated.
   4303 
   4304 Win32: Copying text to the clipboard containing a <CR>, pasting it would
   4305 replace it with a <NL> and drop the next character.
   4306 
   4307 Entering a double byte character didn't work if the second byte is in [xXoO].
   4308 (Eric Lee)
   4309 
   4310 vim_realloc was both defined and had a prototype in proto/misc2.pro.  Caused
   4311 conflicts on Solaris.
   4312 
   4313 A pattern in an autocommand was treated differently on DOS et al. than on
   4314 Unix.  Now it's the same, also when using backslashes.
   4315 
   4316 When using <Tab> twice for command line completion, without a match, the <Tab>
   4317 would be inserted. (Negri)
   4318 
   4319 Bug in MS-Visual C++ 6.0 when compiling ex_docmd.c with optimization. (Negri)
   4320 
   4321 Testing the result of mktemp() for failure was wrong.  Could cause a crash.
   4322 (Peters)
   4323 
   4324 GUI: When checking for a ".gvimrc" file in the current directory, didn't check
   4325 for a "_gvimrc" file too.
   4326 
   4327 Motif GUI: When using the popup menu and then adding an item to the menu bar,
   4328 the menu bar would get very high.
   4329 
   4330 Mouse clicks and special keys (e.g. cursor keys) quit the more prompt and
   4331 dialogs.  Now they are ignored.
   4332 
   4333 When at the more-prompt, xterm selection didn't work.  Now use the 'r' flag in
   4334 'mouse' also for the more-prompt.
   4335 
   4336 When selecting a Visual area of more than 1023 lines, with 'guioptions' set to
   4337 "a", could mess up the display because of a message in free_yank().  Removed
   4338 that message, except for the Amiga.
   4339 
   4340 Moved auto-selection from ui_write() to the screen update functions.  Avoids
   4341 unexpected behavior from a low-level function.  Also makes the different
   4342 feedback of owning the selection possible.
   4343 
   4344 Vi incompatibility: Using "i<CR>" in an indent, with 'ai' set, used the
   4345 original indent instead of truncating it at the cursor. (Webb)
   4346 
   4347 ":echo x" didn't stop at "q" for the more prompt.
   4348 
   4349 Various fixes for Macintosh. (St-Amant)
   4350 
   4351 When using 'selectmode' set to "exclusive", selecting a word and then using
   4352 CTRL-] included the character under the cursor.
   4353 
   4354 Using ":let a:name" in a function caused a crash. (Webb)
   4355 
   4356 When using ":append", an empty line didn't scroll up.
   4357 
   4358 DOS etc.: A file name starting with '!' didn't work.  Added '!' to default for
   4359 'isfname'.
   4360 
   4361 BeOS: Compilation problem with prototype of skip_class_name(). (Price)
   4362 
   4363 When deleting more than one line, e.g., with "de", could still use "U"
   4364 command, which didn't work properly then.
   4365 
   4366 Amiga: Could not compile ex_docmd.c, it was getting too big.  Moved some
   4367 functions to ex_cmds.c.
   4368 
   4369 The expand() function would add a trailing slash for directories.
   4370 
   4371 Didn't give an error message when trying to assign a value to an argument of a
   4372 function.  (Webb)
   4373 
   4374 Moved including sys/ptem.h to after termios.h.  Needed for Sinix.
   4375 
   4376 OLE interface: Don't delete the object in CVimCF::Release() when the reference
   4377 count becomes zero. (Cordell)
   4378 VisVim could still crash on exit. (Erhardt)
   4379 
   4380 "case a: case b:" (two case statements in one line) aligned with the second
   4381 case.  Now it uses one 'sw' for indent. (Webb)
   4382 
   4383 Font initialisation wasn't right for Athena/Motif GUI.  Moved the call to
   4384 highlight_gui_started() gui_mch_init() to gui_mch_open(). (Nam)
   4385 
   4386 In Replace mode, backspacing over a TAB before where the replace mode started
   4387 while 'sts' is different from 'ts', would delete the TAB.
   4388 
   4389 Win32 console: When executing external commands and switching between the two
   4390 console screens, Vim would copy the text between the buffers.  That caused the
   4391 screen to be messed up for backtick expansion.
   4392 
   4393 ":winpos -1" then ":winpos" gave wrong error message.
   4394 
   4395 Windows commander creates files called c:\tmp\$wc\abc.txt.  Don't remove the
   4396 backslash before the $.  Environment variables were not expanded anyway,
   4397 because of the backslash before the dollar.
   4398 
   4399 Using "-=" with ":set" could remove half a part when it contains a "\,".
   4400 E.g., ":set path+=a\\,b" and then "set path-=b"  removed ",b".
   4401 
   4402 When Visually selecting lines, with 'selection' set to "inclusive", including
   4403 the last char of the line, "<<" moved an extra line.  Also for other operators
   4404 that always work on lines.
   4405 
   4406 link.sh changed "-lnsl_s" to "_s" when looking for "nsl" to be removed.
   4407 Now it only removes whole words.
   4408 
   4409 When jumped to a mark or using "fz", and there is an error, the current column
   4410 was lost.  E.g. when using "$fzj".
   4411 
   4412 The "g CTRL-G" command could not be interrupted, even though it can take a
   4413 long time.
   4414 
   4415 Some terminals do have <F4> and <xF4>.  <xF4> was always interpreted as <F4>.
   4416 Now map <xF4> to <F4>, so that the user can override this.
   4417 
   4418 When compiling os_win32.c with MIN_FEAT the apply_autocmds() should not be
   4419 used. (Aaron)
   4420 
   4421 This autocommand looped forever: ":au FileChangedShell * nested e <afile>"
   4422 Now FileChangeShell never nests. (Roemer)
   4423 
   4424 When evaluating an ":elseif" that was not going to matter anyway, ignore
   4425 errors. (Roemer)
   4426 
   4427 GUI Lesstif: Tearoff bar was the last item, instead of the first.
   4428 
   4429 GUI Motif: Colors of tear-off widgets was wrong when 't' flag added to
   4430 'guioptions' afterwards.  When 't' flag in 'guioptions' is excluded, would
   4431 still get a tearoff item in a new menu.
   4432 
   4433 An inode number can be "long long".  Use ino_t instead of long.  Added
   4434 configure check for ino_t.
   4435 
   4436 Binary search for tags was using a file offset "long" instead of "off_t".
   4437 
   4438 Insert mode completion of tags was not using 'ignorecase' properly.
   4439 
   4440 In Insert mode, the <xFn> keys were not properly mapped to <Fn> for the
   4441 default mappings.  Also caused errors for ":mkvimrc" and ":mksession".
   4442 
   4443 When jumping to another window while in Insert mode, would get the "warning:
   4444 changing readonly file" even when not making a change.
   4445 
   4446 A '(' or '{' inside a trailing "//" comment would disturb C-indenting.
   4447 When using two labels below each other, the second one was not indented
   4448 properly.  Comments could mess up C-indenting in many places.  (Roemer)
   4449 
   4450 Could delete or redefine a function while it was being used.  Could cause a
   4451 crash.
   4452 In a function it's logical to prepend "g:" to a system variable, but this
   4453 didn't work. (Roemer)
   4454 
   4455 Hangul input: Buffer would overflow when user inputs invalid key sequence.
   4456 (Nam)
   4457 
   4458 When BufLoad or BufEnter autocommands change the topline of the buffer in the
   4459 window, it was overruled and the cursor put halfway the window.  Now only put
   4460 the cursor halfway if the autocommands didn't change the topline.
   4461 
   4462 Calling exists("&option") always returned 1. (Roemer)
   4463 
   4464 Win32: Didn't take actually available memory into account. (Williams)
   4465 
   4466 White space after an automatically inserted comment leader was not removed
   4467 when 'ai' is not set and <CR> hit just after inserting it. (Webb)
   4468 
   4469 A few menus had duplicated accelerators. (Roemer)
   4470 
   4471 Spelling errors in documentation, quite a few "the the". (Roemer)
   4472 
   4473 Missing prototypes for Macintosh. (Kielhorn)
   4474 
   4475 Win32: When using 'shellquote' or 'shellxquote', the "!start cmd" wasn't
   4476 executed in a disconnected process.
   4477 
   4478 When resizing the window, causing a line before the cursor to wrap or unwrap,
   4479 the cursor was displayed in the wrong position.
   4480 
   4481 There was quite a bit of dead code when compiling with minimal features.
   4482 
   4483 When doing a ":%s///" command that makes lines shorter, such that lines above
   4484 the final cursor position no longer wrap, the cursor position was not updated.
   4485 
   4486 get_id_list() could allocate an array one too small, when a "contains=" item
   4487 has a wildcard that matches a group name that is added just after it.  E.g.:
   4488 "contains=a.*b,axb".  Give an error message for it.
   4489 
   4490 When yanking a Visual area and using the middle mouse button -> crash.  When
   4491 clipboard doesn't work, now make "* always use "".
   4492 
   4493 Win32: Using ":buf a\ b\file" didn't work, it was interpreted as "ab\file".
   4494 
   4495 Using ":ts ident", then hit <CR>, with 'cmdheight' set to 2: command line was
   4496 not cleared, the tselect prompt was on the last but one line.
   4497 
   4498 mksession didn't restore the cursor column properly when it was after a tab.
   4499 Could not get all windows back when using a smaller terminal screen.  Didn't
   4500 restore all windows when "winsize" was not in 'sessionoptions'. (Webb)
   4501 
   4502 Command line completion for ":buffer" depended on 'ignorecase' for Unix, but
   4503 not for DOS et al.  Now don't use 'ignorecase', but let it depend on whether
   4504 file names are case sensitive or not (like when expanding file names).
   4505 
   4506 Win32 GUI: (Negri)
   4507 - Redrawing the background caused flicker when resizing the window.  Removed
   4508   _OnEraseBG().  Removed CS_HREDRAW and CS_VREDRAW flags from the
   4509   sndclass.style.
   4510 - Some parts of the window were drawn in grey, instead of using the color from
   4511   the user color scheme.
   4512 - Dropping a file on gvim didn't activate the window.
   4513 - When there is no menu ('guioptions' excludes 'm'), never use the ALT key for
   4514   it.
   4515 
   4516 GUI: When resizing the window, would make the window height a bit smaller.
   4517 Now round off to the nearest char cell size. (Negri)
   4518 
   4519 In Vi the ")" and "(" commands don't stop at a single space after a dot.
   4520 Added 'J' flag in 'cpoptions' to make this behave Vi compatible. (Roemer)
   4521 
   4522 When saving a session without any buffers loaded, there would be a ":normal"
   4523 command without arguments in it. (Webb)
   4524 
   4525 Memory leaks fixed: (Madsen)
   4526 - eval.c: forgot to release func structure when func deleted
   4527 - ex_docmd.c: forgot to release string after "<sfile>"
   4528 - misc1.c: leak when completion pattern had no matches.
   4529 - os_unix.c: forgot to release regexp after file completions
   4530 
   4531 Could crash when using a buffer without a name. (Madsen)
   4532 Could crash when doing file name completion, because of backslash_halve().
   4533 (Madsen)
   4534 
   4535 ":@a" would do mappings on register a, which is not Vi compatible. (Roemer)
   4536 
   4537 ":g/foo.*()/s/foobar/_&/gc" worked fine, but then "n" searched for "foobar"
   4538 and displayed "/foo.*()". (Roemer)
   4539 
   4540 OS/2: get_cmd_output() was not included.  Didn't check for $VIM/.vimrc file.
   4541 
   4542 Command line completion of options didn't work after "+=" and "-=".
   4543 
   4544 Unix configure: Test for memmove()/bcopy()/memcpy() tried redefining these
   4545 functions, which could fail if they are defined already.  Use mch_memmove() to
   4546 redefine.
   4547 
   4548 Unix: ":let a = expand("`xterm`&")" started an xterm asynchronously, but
   4549 ":let a = expand("`xterm&`")" generated an error message, because the
   4550 redirection was put after the '&'.
   4551 
   4552 Win32 GUI: Dialog buttons could not be selected properly with cursor keys,
   4553 when the default is not the first button. (Webb)
   4554 
   4555 The "File has changed since editing started" (when regaining focus) could not
   4556 always be seen. (Webb)
   4557 
   4558 When starting with "ex filename", the file message was overwritten with
   4559 the "entering Ex mode" message.
   4560 
   4561 Output of ":tselect" listed name of file directly from the tags file.  Now it
   4562 is corrected for the position of the tags file.
   4563 
   4564 When 'backspace' is 0, could backspace over autoindent.  Now it is no longer
   4565 allowed (Vi compatible).
   4566 
   4567 In Replace mode, when 'noexpandtab' and 'smarttab' were set, and inserting
   4568 Tabs, backspacing didn't work correctly for Tabs inserted at the start of the
   4569 line (unless 'sts' was set too).  Also, when replacing the first non-blank
   4570 after which is a space, rounding the indent was done on the first non-blank
   4571 instead of on the character under the cursor.
   4572 
   4573 When 'sw' at 4, 'ts' at 8 and 'smarttab' set: When a tab was appended after
   4574 four spaces (they are replaced with a tab) couldn't backspace over the tab.
   4575 
   4576 In Insert mode, with 'bs' set to 0, couldn't backspace to before autoindent,
   4577 even when it was removed with CTRL-D.
   4578 
   4579 When repeating an insert command where a <BS>, <Left> or other key causes an
   4580 error, would flush buffers and remain in Insert mode.  No longer flush
   4581 buffers, only beep and continue with the insert command.
   4582 
   4583 Dos and Win32 console: Setting t_me didn't work to get another color.  Made
   4584 this works backwards compatible.
   4585 
   4586 For Turkish (LANG = "tr") uppercase 'i' is not an 'I'.  Use ASCII uppercase
   4587 translation in vim_strup() to avoid language problems. (Komur)
   4588 
   4589 Unix: Use usleep() or nanosleep() for mch_delay() when available.  Hopefully
   4590 this avoids a hangup in select(0, ..) for Solaris 2.6.
   4591 
   4592 Vim would crash when using a script file with 'let &sp = "| tee"', starting
   4593 vim with "vim -u test", then doing ":set sp=".  The P_WAS_SET flag wasn't set
   4594 for a string option, could cause problems with any string option.
   4595 
   4596 When using "cmd | vim -", stdin is not a terminal.  This gave problems with
   4597 GPM (Linux console mouse) and when executing external commands.  Now close
   4598 stdin and re-open it as a copy of stderr.
   4599 
   4600 Syntax highlighting: A "nextgroup" item was not properly stored in the state
   4601 list.  This caused missing of next groups when not redrawing from start to
   4602 end, but starting halfway.
   4603 
   4604 Didn't check for valid values of 'ttymouse'.
   4605 
   4606 When executing an external command from the GUI, waiting for the child to
   4607 terminate might not work, causing a hang. (Parmelan)
   4608 
   4609 "make uninstall" didn't delete the vimrc_example.vim and gvimrc_example.vim
   4610 files and the vimtutor.
   4611 
   4612 Win32: "expand("%:p:h")" with no buffer name removed the directory name.
   4613 "fnamemodify("", ":p")" did not add a trailing slash, fname_case() removed it.
   4614 
   4615 Fixed: When 'hlsearch' was set and the 'c' flag was not in 'cpoptions':
   4616 highlighting was not correct.  Now overlapping matches are handled correctly.
   4617 
   4618 Athena, Motif and GTK GUI: When started without focus, cursor was shown as if
   4619 with focus.
   4620 
   4621 Don't include 'shellpipe' when compiled without quickfix, it's not used.
   4622 Don't include 'dictionary' option when compiled without the +insert_expand
   4623 feature.
   4624 Only include the 'shelltype' option for the Amiga.
   4625 
   4626 When making a change to a line, with 'hlsearch' on, causing it to wrap, while
   4627 executing a register, the screen would not be updated correctly.  This was a
   4628 generic problem in update_screenline() being called while must_redraw is
   4629 VALID.
   4630 
   4631 Using ":bdelete" in a BufUnload autocommand could cause a crash.  The window
   4632 height was added to another window twice in close_window().
   4633 
   4634 Win32 GUI: When removing a menu item, the tearoff wasn't updated. (Negri)
   4635 
   4636 Some performance bottlenecks removed.  Allocating memory was not efficient.
   4637 For Win32 checking for available memory was slow, don't check it every time
   4638 now.  On NT obtaining the user name takes a long time, cache the result (for
   4639 all systems).
   4640 
   4641 fnamemodify() with an argument ":~:." or ":.:~" didn't work properly.
   4642 
   4643 When editing a new file and exiting, the marks for the buffer were not saved
   4644 in the viminfo file.
   4645 
   4646 ":confirm only" didn't put up a dialog.
   4647 
   4648 These text objects didn't work when 'selection' was "exclusive": va( vi( va{
   4649 vi{ va< vi< vi[ va[.
   4650 
   4651 The dialog for writing a readonly file didn't have a valid default. (Negri)
   4652 
   4653 The line number used for error messages when sourcing a file was reset when
   4654 modelines were inspected.  It was wrong when executing a function.
   4655 
   4656 The file name and line number for an error message wasn't displayed when it
   4657 was the same as for the last error, even when this was long ago.  Now reset
   4658 the name/lnum after a hit-enter prompt.
   4659 
   4660 In a session file, a "%" in a file name caused trouble, because fprintf() was
   4661 used to write it to the file.
   4662 
   4663 When skipping statements, a mark in an address wasn't skipped correctly:
   4664 "ka|if 0|'ad|else|echo|endif". (Roemer)
   4665 
   4666 ":wall" could overwrite a not-edited file without asking.
   4667 
   4668 GUI: When $DISPLAY was not set or starting the GUI failed in another way, the
   4669 console mode then started with wrong colors and skipped initializations.  Now
   4670 do an early check if the GUI can be started.  Don't source the menu.vim or
   4671 gvimrc when it will not.  Also do normal terminal initializations if the GUI
   4672 might not start.
   4673 
   4674 When using a BufEnter autocommand to position the cursor and scroll the
   4675 window, the cursor was always put at the last used line and halfway the window
   4676 anyhow.
   4677 
   4678 When 'wildmode' was set to "longest,list:full", ":e *.c<Tab><Tab>" didn't list
   4679 the matches.  Also avoid that listing after a "longest" lists the wrong
   4680 matches when the first expansion changed the string in front of the cursor.
   4681 
   4682 When using ":insert", ":append" or ":change" inside a while loop, was not able
   4683 to break out of it with a CTRL-C.
   4684 
   4685 Win32: ":e ." took an awful long time before an error message when used in
   4686 "C:\".  Was caused by adding another backslash and then trying to get the full
   4687 name for "C:\\".
   4688 
   4689 ":winpos -10 100" was working like ":winpos -10 -10", because a pointer was
   4690 not advanced past the '-' sign.
   4691 
   4692 When obtaining the value of a hidden option, would give an error message.  Now
   4693 just use a zero value.
   4694 
   4695 OS/2: Was using argv[0], even though it was not a useful name.  It could be
   4696 just "vim", found in the search path.
   4697 
   4698 Xterm: ":set columns=78" didn't redraw properly (when lines wrap/unwrap) until
   4699 after a delay of 'updatetime'.  Didn't check for the size-changed signal.
   4700 
   4701 'scrollbind' didn't work in Insert mode.
   4702 Horizontal scrollbinding didn't always work for "0" and "$" commands (e.g.,
   4703 when 'showcmd' was off).
   4704 
   4705 When compiled with minimal features but with GUI, switching on the mouse in an
   4706 xterm caused garbage, because the mouse codes were not recognized.  Don't
   4707 enable the mouse when it can't be recognized.  In the GUI it also didn't work,
   4708 the arguments to the mouse code were not interpreted.
   4709 
   4710 When 'showbreak' used, in Insert mode, when the cursor is just after the last
   4711 character in the line, which is also the in the rightmost column, the cursor
   4712 position would be like the 'showbreak' string is shown, but it wasn't.
   4713 
   4714 Autocommands could move the cursor in a new file, so that CTRL-W i didn't show
   4715 the right line.  Same for when using a filemark to jump to another file.
   4716 
   4717 When redefining the argument list, the title used for other windows could be
   4718 showing the wrong info about the position in the argument list.  Also update
   4719 this for a ":split" command without arguments.
   4720 
   4721 When editing file 97 of 13, ":Next" didn't work.  Now it goes to the last
   4722 file in the argument list.
   4723 
   4724 Insert mode completion (for dictionaries or included files) could not be
   4725 interrupted by typing an <Esc>.  Could get hit-enter prompt after line
   4726 completion, or whenever the informative message would get too long.
   4727 
   4728 When using the ":edit" command to re-edit the same file, an autocommand to
   4729 jump to the last cursor position caused the cursor to move.  Now set the last
   4730 used cursor position to avoid this.
   4731 
   4732 When 'comments' has a part that starts with white space, formatting the
   4733 comment didn't work.
   4734 
   4735 At the ":tselect" prompt Normal mode mappings were used.  That has been
   4736 disabled.
   4737 
   4738 When 'selection' is not "old", some commands still didn't allow the cursor
   4739 past the end-of-line in Visual mode.
   4740 
   4741 Athena: When a menu was deleted, it would appear again (but not functional)
   4742 when adding another menu.  Now they don't reappear anymore (although they are
   4743 not really deleted either).
   4744 
   4745 Borland C++ 4.x had an optimizer problem in fill_breakat_flags(). (Negri)
   4746 
   4747 "ze" didn't work when 'number' was on. (Davis)
   4748 
   4749 Win32 GUI: Intellimouse code didn't work properly on Windows 98. (Robinson)
   4750 
   4751 A few files were including proto.h a second time, after vim.h had already done
   4752 that, which could cause problems with the vim_realloc() macro.
   4753 
   4754 Win32 console: <M-x> or ALT-x was not recognized.  Also keypad '+', '-' and
   4755 '*'. (Negri)
   4756 MS-DOS: <M-x> didn't work, produced a two-byte code.  Now the alphabetic and
   4757 number keys work. (Negri)
   4758 
   4759 When finding a lot of matches for a tag completion, the check for avoiding
   4760 double matches could take a lot of time.  Add a line_breakcheck() to be able
   4761 to interrupt this. (Deshpande)
   4762 
   4763 When the command line was getting longer than the screen, the more-prompt
   4764 would be given regularly, and the cursor position would be wrong.  Now only
   4765 show the part of the command line that fits on the screen and force the cursor
   4766 to be positioned on the visible part.  There can be text after the cursor
   4767 which isn't editable.
   4768 
   4769 At the more prompt and with the console dialog, a cursor key was interpreted
   4770 as <Esc> and OA.  Now recognize special keys in get_keystroke().  Ignore mouse
   4771 and scrollbar events.
   4772 
   4773 When typing a BS after inserting a middle comment leader, typing the last char
   4774 of the end comment leader still changed it into the end comment leader. (Webb)
   4775 
   4776 When a file system is full, writing to a swap file failed.  Now first try to
   4777 write one block to the file.  Try next entry in 'dir' if it fails.
   4778 
   4779 When "~" is in 'whichwrap', doing "~" on last char of a line didn't update the
   4780 display.
   4781 
   4782 Unix: Expanding wildcards for ":file {\\}" didn't work, because "\}" was
   4783 translated to "}" before the shell got it.  Now don't remove backslashes when
   4784 wildcards are going to be expanded.
   4785 
   4786 Unix: ":e /tmp/$uid" didn't work.  When expanding environment variables in a
   4787 file name doesn't work, use the shell to expand the file name.  ":e /tmp/$tty"
   4788 still doesn't work though.
   4789 
   4790 "make test" didn't always work on DOS/Windows for test30, because it depended
   4791 on the external "echo" command.
   4792 
   4793 The link.sh script used "make" instead of $MAKE from the Makefile.  Caused
   4794 problems for generating pathdef.c when "make" doesn't work properly.
   4795 
   4796 On versions that can do console and GUI: In the console a typed CSI code could
   4797 cause trouble.
   4798 
   4799 The patterns in expression evaluation didn't ignore the 'l' flag in
   4800 'cpoptions'.  This broke the working of <CR> in the options window.
   4801 
   4802 When 'hls' off and 'ai' on, "O<Esc>" did remove the indent, but it was still
   4803 highlighted red for trailing space.
   4804 
   4805 Win32 GUI: Dropping an encrypted file on a running gvim didn't work right.  Vim
   4806 would loop while outputting "*" characters.  vgetc() was called recursively,
   4807 thus it returns NUL.  Added safe_vgetc(), which reads input directly from the
   4808 user in this situation.
   4809 
   4810 While reading text from stdin, only an empty screen was shown.  Now show that
   4811 Vim is reading from stdin.
   4812 
   4813 The cursor shape wasn't set properly when returning to Insert mode, after
   4814 using a CTRL-O /asdf command which fails.  It would be OK after a few seconds.
   4815 Now it's OK right away.
   4816 
   4817 The 'isfname' default for DOS/Windows didn't include the '@' character.  File
   4818 names that contained "dir\@file" could not be edited.
   4819 
   4820 Win32 console: <C-S-Left> could cause a crash when compiled with Borland or
   4821 egcs. (Aaron)
   4822 
   4823 Unix and VMS: "#if HAVE_DIRENT_H" caused problems for some compilers.  Use
   4824 "#ifdef HAVE_DIRENT_H" instead. (Jones)
   4825 
   4826 When a matching tag is in the current file but has a search pattern that
   4827 doesn't match, the cursor would jump to the first line.
   4828 
   4829 Unix: Dependencies for pty.c were not included in Makefile.  Dependency of
   4830 ctags/config.h was not included (only matters for parallel make).
   4831 
   4832 Removed a few Uninitialized Memory Reads (potential crashes).  In do_call()
   4833 calling clear_var() when not evaluating.  In win32_expandpath() and
   4834 dos_expandpath() calling backslash_halve() past the end of a file name.
   4835 
   4836 Removed memory leaks: Set_vim_var_string() never freed the value.  The
   4837 next_list for a syntax keyword was never freed.
   4838 
   4839 On non-Unix systems, using a file name with wildcards without a match would
   4840 silently fail.  E.g., ":e *.sh".  Now give a "No match" error message.
   4841 
   4842 The life/life.mac, urm/urm.mac and hanoi/hanoi.mac files were not recognized
   4843 as Vim scripts.  Renamed them to *.vim.
   4844 
   4845 [Note: some numbered patches are not relevant when upgrading from version 5.3,
   4846 they have been removed]
   4847 
   4848 Patch 5.4m.1
   4849 Problem:    When editing a file with a long name, would get the hit-enter
   4850 	    prompt, even though all settings are such that the name should be
   4851 	    truncated to avoid that.  filemess() was printing the file name
   4852 	    without truncating it.
   4853 Solution:   Truncate the message in filemess().  Use the same code as for
   4854 	    msg_trunc_attr(), which is moved to the new function
   4855 	    msg_may_trunc().
   4856 Files:	    src/message.c, src/proto/message.pro, src/fileio.c
   4857 
   4858 Patch 5.4m.3
   4859 Problem:    The Motif libraries were not found by configure for Digital Unix.
   4860 Solution:   Add "/usr/shlib" to the search path. (Andy Kahn)
   4861 Files:	    src/configure.in, src/configure
   4862 
   4863 Patch 5.4m.5
   4864 Problem:    Win32 GUI: When using the Save-As menu entry and selecting an
   4865 	    existing file in the file browser, would get a dialog to confirm
   4866 	    overwriting twice.  (Ed Krall)
   4867 Solution:   Removed the dialog from the file browser.  It would be nicer to
   4868 	    set the "forceit" flag and skip Vim's ":confirm" dialog, but it
   4869 	    requires quite a few changes to do that.
   4870 Files:	    src/gui_w32.c
   4871 
   4872 Patch 5.4m.6
   4873 Problem:    Win32 GUI: When reading text from stdin, e.g., "cat foo | gvim -",
   4874 	    a message box would pop up with "-stdin-" (when exiting). (Michael
   4875 	    Schaap)
   4876 Solution:   Don't switch off termcap mode for versions that are GUI-only.
   4877 	    They use another terminal to read from stdin.
   4878 Files:	    src/main.c, src/fileio.c
   4879 
   4880 Patch 5.4m.7
   4881 Problem:    Unix: running configure with --enable-gtk-check,
   4882 	    --enable-motif-check, --enable-athena-check or --enable-gtktest
   4883 	    had the reverse effect. (Thomas Koehler)
   4884 Solution:   Use $enable_gtk_check variable correctly in AC_ARG_ENABLE().
   4885 Files:	    src/configure.in, src/configure
   4886 
   4887 Patch 5.4m.9
   4888 Problem:    Multi-byte: With wrapping lines, the cursor was sometimes 2
   4889 	    characters to the left.  Syntax highlighting was wrong when a
   4890 	    double-byte character was split for a wrapping line.  When
   4891 	    'showbreak' was on the splitting also didn't work.
   4892 Solution:   Adjust getvcol() and win_line(). (Chong-Dae Park)
   4893 Files:	    src/charset.c, src/screen.c
   4894 
   4895 Patch 5.4m.11
   4896 Problem:    The ":call" command didn't check for illegal trailing characters.
   4897 	    (Stefan Roemer)
   4898 Solution:   Add the check in do_call().
   4899 Files:	    src/eval.c
   4900 
   4901 Patch 5.4m.13
   4902 Problem:    With the ":s" command:
   4903 	    1. When performing a substitute command, the mouse would be
   4904 	       disabled and enabled for every substitution.
   4905 	    2. The cursor position could be beyond the end of the line.
   4906 	       Calling line_breakcheck() could try to position the cursor,
   4907 	       which causes a crash in the Win32 GUI.
   4908 	    3. When using ":s" in a ":g" command, the cursor was not put on
   4909 	       the first non-white in the line.
   4910 	    4. There was a hit-enter prompt when confirming the substitution
   4911 	       and the replacement was a bit longer.
   4912 Solution:   1. Only disable/enable the mouse when asking for confirmation.
   4913 	    2. Always put the cursor on the first character, it is going to be
   4914 	       moved to the first non-blank anyway.
   4915 	       Don't use the cursor position in gui_mch_draw_hollow_cursor(),
   4916 	       get the character from the screen buffer.
   4917 	    3. Added global_need_beginline flag to call beginline() after ":g"
   4918 	       has finished all substitutions.
   4919 	    4. Clear the need_wait_return flag after prompting the user.
   4920 Files:	    src/ex_cmds.c, src/gui_w32.c
   4921 
   4922 Patch 5.4m.14
   4923 Problem:    When doing "vim xxx", ":opt", ":only" and then ":e xxx" we end
   4924 	    up with two swapfiles for "xxx".  That is caused by the ":bdel"
   4925 	    command which is executed when unloading the option-window.
   4926 	    Also, there was no check if closing a buffer made the new one
   4927 	    invalid, this could cause a crash.
   4928 Solution:   When closing a buffer causes the current buffer to be deleted,
   4929 	    use the new buffer to replace it.  Also detect that the new buffer
   4930 	    has become invalid as a side effect of closing the current one.
   4931 	    Make autocommand that calls ":bdel" in optwin.vim nested, so that
   4932 	    the buffer loading it triggers also executes autocommands.
   4933 	    Also added a test for this in test13.
   4934 Files:	    runtime/optwin.vim, src/buffer.c, src/ex_cmds.c, src/globals.h
   4935 	    src/testdir/test13.in, src/testdir/test13.ok
   4936 
   4937 Patch 5.4m.15
   4938 Problem:    When using a BufEnter autocommand to reload the syntax file,
   4939 	    conversion to HTML caused a crash. (Sung-Hyun Nam)
   4940 Solution:   When using ":syntax clear" the current stack of syntax items was
   4941 	    not cleared.  This will cause memory to be used that has already
   4942 	    been freed.  Added call to invalidate_current_state() in
   4943 	    syntax_clear().
   4944 Files:	    src/syntax.c
   4945 
   4946 Patch 5.4m.17
   4947 Problem:    When omitting a ')' in an expression it would not be seen as a
   4948 	    failure.
   4949 	    When detecting an error inside (), there would be an error message
   4950 	    for a missing ')' too.
   4951 	    When using ":echo 1+|echo 2" there was no error message. (Roemer)
   4952 	    When using ":exe 1+" there was no error message.
   4953 	    When using ":return 1+" there was no error message.
   4954 Solution:   Fix do_echo(), do_execute() and do_return() to give an error
   4955 	    message when eval1() returns FAIL.
   4956 	    Fix eval6() to handle trailing ')' correctly and return FAIL when
   4957 	    it's missing.
   4958 Files:	    src/eval.c
   4959 
   4960 Patch 5.4m.18
   4961 Problem:    When using input() from inside an expression entered with
   4962 	    "CTRL-R =" on the command line, there could be a crash.  And the
   4963 	    resulting command line was wrong.
   4964 Solution:   Added getcmdline_prompt(), which handles recursive use of
   4965 	    getcmdline() correctly.  It also sets the command line prompt.
   4966 	    Removed cmdline_prompt().  Also use getcmdline_prompt() for
   4967 	    getting the crypt key in get_crypt_key().
   4968 Files:	    src/proto/ex_getln.pro, src/ex_getln.c, src/eval.c, src/misc2.c
   4969 
   4970 Patch 5.4m.21
   4971 Problem:    When starting up, the screen structures were first allocated at
   4972 	    the minimal size, then initializations were done with Rows
   4973 	    possibly different from screen_Rows.  Caused a crash in rare
   4974 	    situations (GTK with XIM and fontset).
   4975 Solution:   Call screenalloc() in main() only after calling ui_get_winsize().
   4976 	    Also avoids a potential delay because of calling screenclear()
   4977 	    while "starting" is non-zero.
   4978 Files:	    src/main.c
   4979 
   4980 Patch 5.4m.22
   4981 Problem:    In the GUI it was possible that the screen was resized and the
   4982 	    screen structures re-allocated while redrawing the screen.  This
   4983 	    could cause a crash (hard to reproduce).  The call sequence goes
   4984 	    through update_screen() .. syntax_start() .. ui_breakcheck() ..
   4985 	    gui_resize_window() .. screenalloc().
   4986 Solution:   Set updating_screen while redrawing.  If the window is resized
   4987 	    remember the new size and handle it only after redrawing is
   4988 	    finished.
   4989 	    This also fixes that resizing the screen while still redrawing
   4990 	    (slow syntax highlighting) would not work properly.
   4991 	    Also disable display_hint, it was never used.
   4992 Files:	    src/globals.h, src/gui.c, src/screen.c, src/proto/gui.pro
   4993 
   4994 Patch 5.4m.23
   4995 Problem:    When using expand("<cword>") when there was no word under the
   4996 	    cursor, would get an error message.  Same for <cWORD> and <cfile>.
   4997 Solution:   Don't give an error message, return an empty string.
   4998 Files:	    src/eval.c
   4999 
   5000 Patch 5.4m.24
   5001 Problem:    ":help \|" didn't find anything.  It was translated to "/\\|".
   5002 Solution:   Translate "\|" into "\\bar".  First check the table for specific
   5003 	    translations before checking for "\x".
   5004 Files:	    src/ex_cmds.c
   5005 
   5006 Patch 5.4m.25
   5007 Problem:    Unix: When using command line completion on files that contain
   5008 	    ''', '"' or '|' the file name could not be used.
   5009 	    Adding this file name to the Buffers menu caused an error message.
   5010 Solution:   Insert a backslash before these three characters.
   5011 	    Adjust Mungename() function to insert a backslash before '|'.
   5012 Files:	    src/ex_getln.c, runtime/menu.vim
   5013 
   5014 Patch 5.4m.26
   5015 Problem:    When using a mapping of two function keys, e.g., <F1><F1>, and
   5016 	    only the first char of the second key has been read, the mapping
   5017 	    would not be recognized.  Noticed on some Unix systems with xterm.
   5018 Solution:   Add 'K' flag to 'cpoptions' to wait for the whole key code, even
   5019 	    when halfway a mapping.
   5020 Files:	    src/option.h, src/term.c
   5021 
   5022 Patch 5.4m.27
   5023 Problem:    When making test33 without the lisp feature it hangs. Interrupting
   5024 	    the execution of the script then might cause a crash.
   5025 Solution:   In inchar(), after closing a script, don't use buf[] anymore.
   5026 	    closescript() has freed typebuf[] and buf[] might be pointing
   5027 	    inside typebuf[].
   5028 	    Avoid that test33 hangs when the lisp feature is missing.
   5029 Files:	    src/getchar.c src/testdir/test33.in
   5030 
   5031 "os2" was missing from the feature list.  Useful for has("os2").
   5032 
   5033 BeOS:
   5034 - Included patches from Richard Offer for BeOS R4.5.
   5035 - menu code didn't work right.  Crashed in the Buffers menu.  The window title
   5036   wasn't set. (Offer)
   5037 
   5038 Patch 5.4n.3
   5039 Problem:    C-indenting was wrong after "  } else".  The white space was not
   5040 	    skipped.  Visible when 'cino' has "+10".
   5041 Solution:   Skip white space before calling cin_iselse(). (Norbert Zeh)
   5042 Files:	    src/misc1.c
   5043 
   5044 Patch 5.4n.4
   5045 Problem:    When the 't' flag in 'cpoptions' is included, after a
   5046 	    ":nohlsearch" the search highlighting would not be enabled again
   5047 	    after a tag search. (Norbert Zeh)
   5048 Solution:   When setting the new search pattern in jumpto_tag(), don't restore
   5049 	    no_hlsearch.
   5050 Files:	    src/tag.c
   5051 
   5052 Patch 5.4n.5
   5053 Problem:    When using ":normal" from a CursorHold autocommand Vim hangs.  The
   5054 	    autocommand is executed down from vgetc().  Calling vgetc()
   5055 	    recursively to execute the command doesn't work then.
   5056 Solution:   Forbid the use of ":normal" when vgetc_busy is set.  Give an error
   5057 	    message when this happens.
   5058 Files:	    src/ex_docmd.c, runtime/doc/autocmd.txt
   5059 
   5060 Patch 5.4n.6
   5061 Problem:    "gv" could reselect a Visual that starts and/or ends past the end
   5062 	    of a line. (Robert Webb)
   5063 Solution:   Check that the start and end of the Visual area are on a valid
   5064 	    character by calling adjust_cursor().
   5065 Files:	    src/normal.c
   5066 
   5067 Patch 5.4n.8
   5068 Problem:    When a mark was on a non existing line (e.g., when the .viminfo
   5069 	    was edited), jumping to it caused ml_get errors. (Alexey
   5070 	    Marinichev).
   5071 Solution:   Added check_cursor_lnum() in nv_gomark().
   5072 Files:	    src/normal.c
   5073 
   5074 Patch 5.4n.9
   5075 Problem:    ":-2" moved the cursor to a negative line number. (Ralf Schandl)
   5076 Solution:   Give an error message for a negative line number.
   5077 Files:	    src/ex_docmd.c
   5078 
   5079 Patch 5.4n.10
   5080 Problem:    Win32 GUI: At the hit-enter prompt, it was possible to scroll the
   5081 	    text.  This erased the prompt and made Vim look like it is in
   5082 	    Normal mode, while it is actually still waiting for a <CR>.
   5083 Solution:   Disallow scrolling at the hit-enter prompt for systems that use
   5084 	    on the fly scrolling.
   5085 Files:	    src/message.c
   5086 
   5087 Patch 5.4n.14
   5088 Problem:    Win32 GUI: When using ":winsize 80 46" and the height is more than
   5089 	    what fits on the screen, the window size was made smaller than
   5090 	    asked for (that's OK) and Vim crashed (that's not OK)>
   5091 Solution:   Call check_winsize() from gui_set_winsize() to resize the windows.
   5092 Files:	    src/gui.c
   5093 
   5094 Patch 5.4n.16
   5095 Problem:    Win32 GUI: The <F10> key both selected the menu and was handled as
   5096 	    a key hit.
   5097 Solution:   Apply 'winaltkeys' to <F10>, like it is used for Alt keys.
   5098 Files:	    src/gui_w32.c
   5099 
   5100 Patch 5.4n.17
   5101 Problem:    Local buffer variables were freed when the buffer is unloaded.
   5102 	    That's not logical, since options are not freed. (Ron Aaron)
   5103 Solution:   Free local buffer variables only when deleting the buffer.
   5104 Files:	    src/buffer.c
   5105 
   5106 Patch 5.4n.19
   5107 Problem:    Doing ":e" (without argument) in an option-window causes trouble.
   5108 	    The mappings for <CR> and <Space> are not removed.  When there is
   5109 	    another buffer loaded, the swap file for it gets mixed up.
   5110 	    (Steve Mueller)
   5111 Solution:   Also remove the mappings at the BufUnload event, if they are still
   5112 	    present.
   5113 	    When re-editing the same file causes the current buffer to be
   5114 	    deleted, don't try editing it.
   5115 	    Also added a test for this situation.
   5116 Files:	    runtime/optwin.vim, src/ex_cmds.c, src/testdir/test13.in,
   5117 	    src/testdir/test13.ok
   5118 
   5119 Patch 5.4n.24
   5120 Problem:    BeOS: configure never enabled the GUI, because $with_x was "no".
   5121 	    Unix prototypes caused problems, because Display and Widget are
   5122 	    undefined.
   5123 	    Freeing fonts on exit caused a crash.
   5124 Solution:   Only disable the GUI when $with_x is "no" and  $BEOS is not "yes".
   5125 	    Add dummy defines for Display and Widget in proto.h.
   5126 	    Don't free the fonts in gui_exit() for BeOS.
   5127 Files:	    src/configure.in, src/configure, src/proto.h, src/gui.c.
   5128 
   5129 
   5130 The runtime/vim48x48.xpm icon didn't have a transparent background. (Schild)
   5131 
   5132 Some versions of the mingw32/egcs compiler didn't have WINBASEAPI defined.
   5133 (Aaron)
   5134 
   5135 VMS:
   5136 - mch_setenv() had two arguments instead of three.
   5137 - The system vimrc and gvimrc files were called ".vimrc" and ".gvimrc".
   5138   Removed the dot.
   5139 - call to RealWaitForChar() had one argument too many. (Campbell)
   5140 - WaitForChar() is static, removed the prototype from proto/os_vms.pro.
   5141 - Many file accesses failed, because Unix style file names were used.
   5142   Translate file names to VMS style by using vim_fopen().
   5143 - Filtering didn't work, because the temporary file name was generated wrong.
   5144 - There was an extra newline every 9192 characters when writing a file.  Work
   5145   around it by writing line by line. (Campbell)
   5146 - os_vms.c contained "# typedef int DESC".  Should be "typedef int DESC;".
   5147   Only mattered for generating prototypes.
   5148 - Added file name translation to many places.  Made easy by defining macros
   5149   mch_access(), mch_fopen(), mch_fstat(), mch_lstat() and mch_stat().
   5150 - Set default for 'tagbsearch' to off, because binary tag searching apparently
   5151   doesn't work for VMS.
   5152 - make mch_get_host_name() work with /dec and /standard=vaxc. (Campbell)
   5153 
   5154 
   5155 Patch 5.4o.2
   5156 Problem:    Crash when using "gf" on "file.c://comment here". (Scott Graham)
   5157 Solution:   Fix wrong use of pointers in get_file_name_in_path().
   5158 Files:	    src/window.c
   5159 
   5160 Patch 5.4o.3
   5161 Problem:    The horizontal scrollbar was not sized correctly when 'number' is
   5162 	    set and 'wrap' not set.
   5163 	    Athena: Horizontal scrollbar wasn't updated when the cursor was
   5164 	    positioned with a mouse click just after dragging.
   5165 Solution:   Subtract 8 from the size when 'number' set and 'wrap' not set.
   5166 	    Reset gui.dragged_sb when a mouse click is received.
   5167 Files:	    src/gui.c
   5168 
   5169 Patch 5.4o.4
   5170 Problem:    When running in an xterm and $WINDOWID is set to an illegal value,
   5171 	    Vim would exit with "Vim: Got X error".
   5172 Solution:   When using the display which was opened for the xterm clipboard,
   5173 	    check if x11_window is valid by trying to obtain the window title.
   5174 	    Also add a check in setup_xterm_clip(), for when using X calls to
   5175 	    get the pointer position in an xterm.
   5176 Files:	    src/os_unix.c
   5177 
   5178 Patch 5.4o.5
   5179 Problem:    Motif version with Lesstif: When removing the menubar and then
   5180 	    using a menu shortcut key, Vim would crash. (raf)
   5181 Solution:   Disable the menu mnemonics when the menu bar is removed.
   5182 Files:	    src/gui_motif.c
   5183 
   5184 Patch 5.4o.9
   5185 Problem:    The DOS install.exe program used the "move" program.  That doesn't
   5186 	    work on Windows NT, where "move" is internal to cmd.exe.
   5187 Solution:   Don't use an external program for moving the executables.  Use C
   5188 	    functions to copy the file and delete the original.
   5189 Files:	    src/dosinst.c
   5190 
   5191 Motif and Athena obtained the status area height differently from GTK.  Moved
   5192 status_area_enabled from global.h to gui_x11.c and call
   5193 xim_get_status_area_height() to get the status area height.
   5194 
   5195 Patch 5.4p.1
   5196 Problem:    When using auto-select, and the "gv" command is used, would not
   5197 	    always obtain ownership of the selection.  Caused by the Visual
   5198 	    area still being the same, but ownership taken away by another
   5199 	    program.
   5200 Solution:   Reset the clipboard Visual mode to force updating the selection.
   5201 Files:	    src/normal.c
   5202 
   5203 Patch 5.4p.2
   5204 Problem:    Motif and Athena with XIM: Typing 3-byte
   5205 	    <multibyte><multibyte><space> doesn't work correctly with Ami XIM.
   5206 Solution:   Avoid using key_sym XK_VoidSymbol. (Nam)
   5207 Files:	    src/multbyte.c, src/gui_x11.c
   5208 
   5209 Patch 5.4p.4
   5210 Problem:    Win32 GUI: The scrollbar values were reduced for a file with more
   5211 	    than 32767 lines.  But this info was kept global for all
   5212 	    scrollbars, causing a mixup between the windows.
   5213 	    Using the down arrow of a scrollbar in a large file didn't work.
   5214 	    Because of round-off errors there is no scroll at all.
   5215 Solution:   Give each scrollbar its own scroll_shift field.  When the down
   5216 	    arrow is used, scroll several lines.
   5217 Files:	    src/gui.h, src/gui_w32.c
   5218 
   5219 Patch 5.4p.5
   5220 Problem:    When changing buffers in a BufDelete autocommand, there could be
   5221 	    ml_line errors and/or a crash. (Schandl)  Was caused by deleting
   5222 	    the current buffer.
   5223 Solution:   When the buffer to be deleted unexpectedly becomes the current
   5224 	    buffer, don't delete it.
   5225 	    Also added a check for this in test13.
   5226 Files:	    src/buffer.c, src/testdir/test13.in, src/testdir/test13.ok
   5227 
   5228 Patch 5.4p.7
   5229 Problem:    Win32 GUI: When using 'mousemodel' set to "popup_setpos" and
   5230 	    clicking the right mouse button outside of the selected area, the
   5231 	    selected area wasn't removed until the popup menu has gone.
   5232 	    (Aaron)
   5233 Solution:   Set the cursor and update the display before showing the popup
   5234 	    menu.
   5235 Files:	    src/normal.c
   5236 
   5237 Patch 5.4p.8
   5238 Problem:    The generated bugreport didn't contain information about
   5239 	    $VIMRUNTIME and whether runtime files actually exist.
   5240 Solution:   Added a few checks to the bugreport script.
   5241 Files:	    runtime/bugreport.vim
   5242 
   5243 Patch 5.4p.9
   5244 Problem:    The windows install.exe created a wrong entry in the popup menu.
   5245 	    The "%1" was "".  The full directory was included, even when the
   5246 	    executable had been moved elsewhere. (Ott)
   5247 Solution:   Double the '%' to get one from printf.  Only include the path to
   5248 	    gvim.exe when it wasn't moved and it's not in $PATH.
   5249 Files:	    src/dosinst.c
   5250 
   5251 Patch 5.4p.10
   5252 Problem:    Win32: On top of 5.4p.9: The "Edit with Vim" entry sometimes used
   5253 	    a short file name for a directory.
   5254 Solution:   Change the "%1" to "%L" in the registry entry.
   5255 Files:	    src/dosinst.c
   5256 
   5257 Patch 5.4p.11
   5258 Problem:    Motif, Athena and GTK: When closing the GUI window when there is a
   5259 	    changed buffer, there was only an error message and Vim would not
   5260 	    exit.
   5261 Solution:   Put up a dialog, like for ":confirm qa".  Uses the code that was
   5262 	    already used for MS-Windows.
   5263 Files:	    src/gui.c, src/gui_w32.c
   5264 
   5265 Patch 5.4p.12
   5266 Problem:    Win32: Trying to expand a string that is longer than 256
   5267 	    characters could cause a crash. (Steed)
   5268 Solution:   For the buffer in win32_expandpath() don't use a fixed size array,
   5269 	    allocate it.
   5270 Files:	    src/os_win32.c
   5271 
   5272 MSDOS: Added "-Wall" to Makefile.djg compile flags.  Function prototypes for
   5273 fname_case() and mch_update_cursor() were missing.  "fd" was unused in
   5274 mf_sync().  "puiLocation" was unused in myputch().  "newcmd" unused in
   5275 mch_call_shell() for DJGPP version.
   5276 
   5277 ==============================================================================
   5278 VERSION 5.5						*version-5.5*
   5279 
   5280 Version 5.5 is a bug-fix version of 5.4.
   5281 
   5282 
   5283 Changed							*changed-5.5*
   5284 -------
   5285 
   5286 The DJGPP version is now compiled with "-O2" instead of "-O4" to reduce the
   5287 size of the executables.
   5288 
   5289 Moved the src/STYLE file to runtime/doc/develop.txt.  Added the design goals
   5290 to it.
   5291 
   5292 'backspace' is now a string option.  See patch 5.4.15.
   5293 
   5294 
   5295 Added							*added-5.5*
   5296 -----
   5297 
   5298 Included Exuberant Ctags version 3.3. (Darren Hiebert)
   5299 
   5300 In runtime/mswin.vim, map CTRL-Q to CTRL-V, so that CTRL-Q can be used
   5301 everywhere to do what CTRL-V used to do.
   5302 
   5303 Support for decompression of bzip2 files in vimrc_example.vim.
   5304 
   5305 When a patch is included, the patch number is entered in a table in version.c.
   5306 This allows skipping a patch without breaking a next one.
   5307 
   5308 Support for mouse scroll wheel in X11.  See patch 5.5a.14.
   5309 
   5310 line2byte() can be used to get the size of the buffer.  See patch 5.4.35.
   5311 
   5312 The CTRL-R CTRL-O r and CTRL-R CTRL-P r commands in Insert mode are used to
   5313 insert a register literally.  See patch 5.4.48.
   5314 
   5315 Uninstall program for MS-Windows.  To be able to remove the registry entries
   5316 for "Edit with Vim".  It is registered to be run from the "Add/Remove
   5317 programs" application.  See patch 5.4.x7.
   5318 
   5319 
   5320 Fixed							*fixed-5.5*
   5321 -----
   5322 
   5323 When using vimrc_example.vim: An error message when the cursor is on a line
   5324 higher than the number of lines in the compressed file.  Move the autocommand
   5325 for jumping to the last known cursor position to after the decompressing
   5326 autocommands.
   5327 
   5328 ":mkexrc" and ":mksession" wrote the current value of 'textmode'.  That may
   5329 mark a file as modified, which causes problems.  This is a buffer-specific
   5330 setting, it should not affect all files.
   5331 
   5332 "vim --version" wrote two empty lines.
   5333 
   5334 Unix: The alarm signal could kill Vim.  It is generated by the Perl alarm()
   5335 function.  Ignore SIGALRM.
   5336 
   5337 Win32 GUI: Toolbar still had the yellow bitmap for running a Vim script.
   5338 
   5339 BeOS: "tmo" must be bigtime_t, instead of double. (Seibert)
   5340 
   5341 Patch 5.4.1
   5342 Problem:    Test11 fails when $GZIP is set to "-v". (Matthew Jackson)
   5343 Solution:   Set $GZIP to an empty string.
   5344 Files:	    src/testdir/test11.in
   5345 
   5346 Patch 5.4.2
   5347 Problem:    Typing <Esc> at the crypt key prompt caused a crash. (Kallingal)
   5348 Solution:   Check for a NULL pointer returned from get_crypt_key().
   5349 Files:	    src/fileio.c
   5350 
   5351 Patch 5.4.3
   5352 Problem:    Python: Trying to use the name of an unnamed buffer caused a
   5353 	    crash. (Daniel Burrows)
   5354 Solution:   Check for b_fname being a NULL pointer.
   5355 Files:	    src/if_python.c
   5356 
   5357 Patch 5.4.4
   5358 Problem:    Win32: When compiled without toolbar, but the 'T' flag is in
   5359 	    'guioptions', there would be an empty space for the toolbar.
   5360 Solution:   Add two #ifdefs where checking for the 'T' flag. (Vince Negri)
   5361 Files:	    src/gui.c
   5362 
   5363 Patch 5.4.5
   5364 Problem:    Athena GUI: Using the Buffers.Refresh menu entry caused a crash.
   5365 	    Looks like any ":unmenu" command may cause trouble.
   5366 Solution:   Disallow ":unmenu" in the Athena version.  Disable the Buffers
   5367 	    menu, because the Refresh item would not work.
   5368 Files:	    src/menu.c, runtime/menu.vim
   5369 
   5370 Patch 5.4.6
   5371 Problem:    GTK GUI: Using ":gui" in the .gvimrc file caused an error.  Only
   5372 	    happens when the GUI forks.
   5373 Solution:   Don't fork in a recursive call of gui_start().
   5374 Files:	    src/gui.c
   5375 
   5376 Patch 5.4.7
   5377 Problem:    Typing 'q' at the more prompt for the ATTENTION message causes the
   5378 	    file loading to be interrupted. (Will Day)
   5379 Solution:   Reset got_int after showing the ATTENTION message.
   5380 Files:	    src/memline.c
   5381 
   5382 Patch 5.4.8
   5383 Problem:    Edit some file, ":he", ":opt": options from help window are shown,
   5384 	    but pressing space updates from the other window. (Phillipps)
   5385 	    Also: When there are changes in the option-window, ":q!" gives an
   5386 	    error message.
   5387 Solution:   Before creating the option-window, go to a non-help window.
   5388 	    Use ":bdel!" to delete the buffer.
   5389 Files:	    runtime/optwin.vim
   5390 
   5391 Patch 5.4.9
   5392 	    Just updates version.h.  The real patch has been moved to 5.4.x1.
   5393 	    This patch is just to keep the version number correct.
   5394 
   5395 Patch 5.4.10
   5396 Problem:    GTK GUI: When $DISPLAY is invalid, "gvim -f" just exits.  It
   5397 	    should run in the terminal.
   5398 Solution:   Use gtk_init_check() instead of gtk_init().
   5399 Files:	    src/gui_gtk_x11.c
   5400 
   5401 Patch 5.4.11
   5402 Problem:    When using the 'S' flag in 'cpoptions', 'tabstop' is not copied to
   5403 	    the next buffer for some commands, e.g., ":buffer".
   5404 Solution:   When the BCO_NOHELP flag is given to buf_copy_options(), still
   5405 	    copy the options used by do_help() when neither the "from" or "to"
   5406 	    buffer is a help buffer.
   5407 Files:	    src/option.c
   5408 
   5409 Patch 5.4.12
   5410 Problem:    When using 'smartindent', there would be no extra indent if the
   5411 	    current line did not have any indent already. (Hanus Adler)
   5412 Solution:   There was a wrongly placed "else", that previously matched with
   5413 	    the "if" that set trunc_line.  Removed the "else" and added a
   5414 	    check for trunc_line to be false.
   5415 Files:	    src/misc1.c
   5416 
   5417 Patch 5.4.13
   5418 Problem:    New SGI C compilers need another option for optimisation.
   5419 Solution:   Add a check in configure for "-OPT:Olimit". (Chin A Young)
   5420 Files:	    src/configure.in, src/configure
   5421 
   5422 Patch 5.4.14
   5423 Problem:    Motif GUI: When the popup menu is present, a tiny window appears
   5424 	    on the desktop for some users.
   5425 Solution:   Set the menu widget ID for a popup menu to 0. (Thomas Koehler)
   5426 Files:	    src/gui_motif.c
   5427 
   5428 Patch 5.4.15
   5429 Problem:    Since 'backspace' set to 0 has been made Vi compatible, it is no
   5430 	    longer possible to only allow deleting autoindent.
   5431 Solution:   Make 'backspace' a list of parts, to allow each kind of
   5432 	    backspacing separately.
   5433 Files:	    src/edit.c, src/option.c, src/option.h, src/proto/option.pro,
   5434 	    runtime/doc/option.txt, runtime/doc/insert.txt
   5435 
   5436 Patch 5.4.16
   5437 Problem:    Multibyte: Locale zh_TW.Big5 was not checked for in configure.
   5438 Solution:   Add zh_TW.Big5 to configure check. (Chih-Tsun Huang)
   5439 Files:	    src/configure.in, src/configure
   5440 
   5441 Patch 5.4.17
   5442 Problem:    GUI: When started from inside gvim with ":!gvim", Vim would not
   5443 	    start.  ":!gvim -f" works fine.
   5444 Solution:   After forking, wait a moment in the parent process, to give the
   5445 	    child a chance to set its process group.
   5446 Files:	    src/gui.c
   5447 
   5448 Patch 5.4.18
   5449 Problem:    Python: The clear_history() function also exists in a library.
   5450 Solution:   Rename clear_history() to clear_hist().
   5451 Files:	    src/ex_getln.c, src/eval.c, src/proto/ex_getln.pro
   5452 
   5453 Patch 5.4.19
   5454 Problem:    In a terminal with 25 lines, there is a more prompt after the
   5455 	    ATTENTION message.  When hitting 'q' here the dialog prompt
   5456 	    doesn't appear and file loading is interrupted. (Will Day)
   5457 Solution:   Don't allow quitting the printing of a message for the dialog
   5458 	    prompt.  Added the msg_noquit_more flag for this.
   5459 Files:	    src/message.c
   5460 
   5461 Patch 5.4.20
   5462 Problem:    GTK: When starting gvim, would send escape sequences to the
   5463 	    terminal to switch the cursor off and on.
   5464 Solution:   Don't call msg_start() if the GUI is expected to start.
   5465 Files:	    src/main.c
   5466 
   5467 Patch 5.4.21
   5468 Problem:    Motif: Toplevel menu ordering was wrong when using tear-off items.
   5469 Solution:   Don't add one to the index for a toplevel menu.
   5470 Files:	    src/gui_motif.c
   5471 
   5472 Patch 5.4.22
   5473 Problem:    In Insert mode, <C-Left>, <S-Left>, <C-Right> and <S-Right> didn't
   5474 	    update the column used for vertical movement.
   5475 Solution:   Set curwin->w_set_curswant for those commands.
   5476 Files:	    src/edit.c
   5477 
   5478 Patch 5.4.23
   5479 Problem:    When a Visual selection is lost to another program, and then the
   5480 	    same text is Visually selected again, the clipboard ownership
   5481 	    wasn't regained.
   5482 Solution:   Set clipboard.vmode to NUL to force regaining the clipboard.
   5483 Files:	    src/normal.c
   5484 
   5485 Patch 5.4.24
   5486 Problem:    Encryption: When using ":r file" while 'key' has already entered,
   5487 	    the 'key' option would be messed up.  When writing the file it
   5488 	    would be encrypted with an unknown key and lost! (Brad Despres)
   5489 Solution:   Don't free cryptkey when it is equal to the 'key' option.
   5490 Files:	    src/fileio.c
   5491 
   5492 Patch 5.4.25
   5493 Problem:    When 'cindent' is set, but 'autoindent' isn't, comments are not
   5494 	    properly indented when starting a new line. (Mitterand)
   5495 Solution:   When there is a comment leader for the new line, but 'autoindent'
   5496 	    isn't set, do C-indenting.
   5497 Files:	    src/misc1.c
   5498 
   5499 Patch 5.4.26
   5500 Problem:    Multi-byte: a multibyte character is never recognized in a file
   5501 	    name, causing a backslash before it to be removed on Windows.
   5502 Solution:   Assume that a leading-byte character is a file name character in
   5503 	    vim_isfilec().
   5504 Files:	    src/charset.c
   5505 
   5506 Patch 5.4.27
   5507 Problem:    Entries in the PopUp[nvic] menus were added for several modes, but
   5508 	    only deleted for the mode they were used for.  This resulted in
   5509 	    the  entry remaining in the PopUp menu.
   5510 	    When removing a PopUp[nvic] menu, the name had been truncated,
   5511 	    could result in greying-out the whole PopUp menu.
   5512 Solution:   Remove entries for all modes from the PopUp[nvic] menus.  Remove
   5513 	    the PopUp[nvic] menu entries first, before the name is changed.
   5514 Files:	    src/menu.c
   5515 
   5516 Patch 5.4.28
   5517 Problem:    When using a BufWritePre autocommand to change 'fileformat', the
   5518 	    new value would not be used for writing the file.
   5519 Solution:   Check 'fileformat' after executing the autocommands instead of
   5520 	    before.
   5521 Files:	    src/fileio.c
   5522 
   5523 Patch 5.4.29
   5524 Problem:    Athena GUI: When removing the 'g' flag from 'guioptions', using a
   5525 	    menu can result in a crash.
   5526 Solution:   Always grey-out menus for Athena, don't hide them.
   5527 Files:	    src/menu.c
   5528 
   5529 Patch 5.4.30
   5530 Problem:    BeOS: Suspending Vim with CTRL-Z didn't work (killed Vim).  The
   5531 	    first character typed after ":sh" goes to Vim, instead of the
   5532 	    started shell.
   5533 Solution:   Don't suspend Vim, start a new shell.  Kill the async read thread
   5534 	    when starting a new shell.  It will be restarted later. (Will Day)
   5535 Files:	    src/os_unix.c, src/ui.c
   5536 
   5537 Patch 5.4.31
   5538 Problem:    GUI: When 'mousefocus' is set, moving the mouse over where a
   5539 	    window boundary was, causes a hit-enter prompt to be finished.
   5540 	    (Jeff Walker)
   5541 Solution:   Don't use 'mousefocus' at the hit-enter prompt.  Also ignore it
   5542 	    for the more prompt and a few other situations.  When an operator
   5543 	    is pending, abort it first.
   5544 Files:	    src/gui.c
   5545 
   5546 Patch 5.4.32
   5547 Problem:    Unix: $LDFLAGS was not passed to configure.
   5548 Solution:   Pass $LDFLAGS to configure just like $CFLAGS. (Jon Miner)
   5549 Files:	    src/Makefile
   5550 
   5551 Patch 5.4.33
   5552 Problem:    Unix: After expanding an environment variable with the shell, the
   5553 	    next expansion would also use the shell, even though it is not
   5554 	    needed.
   5555 Solution:   Reset "recursive" before returning from gen_expand_wildcards().
   5556 Files:	    src/misc1.c
   5557 
   5558 Patch 5.4.34 (also see 5.4.x5)
   5559 Problem:    When editing a file, and the file name is relative to a directory
   5560 	    above the current directory, the file name was made absolute.
   5561 	    (Gregory Margo)
   5562 Solution:   Add an argument to shorten_fnames() which indicates if all file
   5563 	    names should be shortened, or only absolute names.  In main() only
   5564 	    use shorten_fnames() to shorten absolute names.
   5565 Files:	    src/ex_docmd.c, src/fileio.c, src/main.c, src/proto/fileio.pro
   5566 
   5567 Patch 5.4.35
   5568 Problem:    There is no function to get the current file size.
   5569 Solution:   Allow using line2byte() with the number of lines in the file plus
   5570 	    one.  This returns the offset of the line past the end of the
   5571 	    file, which is the file size plus one.
   5572 Files:	    src/eval.c, runtime/doc/eval.txt
   5573 
   5574 Patch 5.4.36
   5575 Problem:    Comparing strings while ignoring case didn't work correctly for
   5576 	    some machines. (Mide Steed)
   5577 Solution:   vim_stricmp() and vim_strnicmp() only returned 0 or 1.  Changed
   5578 	    them to return -1 when the first argument is smaller.
   5579 Files:	    src/misc2.c
   5580 
   5581 Patch 5.4.37 (also see 5.4.40 and 5.4.43)
   5582 Problem:    Long strings from the viminfo file are truncated.
   5583 Solution:   When writing a long string to the viminfo file, first write a line
   5584 	    with the length, then the string itself in a second line.
   5585 Files:	    src/eval.c, src/ex_cmds.c, src/ex_getln.c, src/mark.c, src/ops.c,
   5586 	    src/search.c, src/proto/ex_cmds.pro, runtime/syntax/viminfo.vim
   5587 
   5588 Patch 5.4.38
   5589 Problem:    In the option-window, ":set go&" resulted in 'go' being handled
   5590 	    like a boolean option.
   5591 	    Mappings for <Space> and <CR> were overruled by the option-window.
   5592 Solution:   When the value of an option isn't 0 or 1, don't handle it like a
   5593 	    boolean option.
   5594 	    Save and restore mappings for <Space> and <CR> when entering and
   5595 	    leaving the option-window.
   5596 Files:	    runtime/optwin.vim
   5597 
   5598 Patch 5.4.39
   5599 Problem:    When setting a hidden option, spaces before the equal sign were
   5600 	    not skipped and cause an error message.  E.g., ":set csprg =cmd".
   5601 Solution:   When skipping over a hidden option, check for a following "=val"
   5602 	    and skip it too.
   5603 Files:	    src/option.c
   5604 
   5605 Patch 5.4.40 (depends on 5.4.37)
   5606 Problem:    Compiler error for "atol(p + 1)". (Axel Kielhorn)
   5607 Solution:   Add a typecast: "atol((char *)p + 1)".
   5608 Files:	    src/ex_cmds.c
   5609 
   5610 Patch 5.4.41
   5611 Problem:    Some commands that were not included would give an error message,
   5612 	    even when after "if 0".
   5613 Solution:   Don't give an error message for an unsupported command when not
   5614 	    executing the command.
   5615 Files:	    src/ex_docmd.c
   5616 
   5617 Patch 5.4.42
   5618 Problem:    ":w" would also cause a truncated message to appear in the message
   5619 	    history.
   5620 Solution:   Don't put a kept message in the message history when it starts
   5621 	    with "<".
   5622 Files:	    src/message.c
   5623 
   5624 Patch 5.4.43 (depends on 5.4.37)
   5625 Problem:    Mixing long lines with multiple lines in a register causes errors
   5626 	    when writing the viminfo file. (Robinson)
   5627 Solution:   When reading the viminfo file to skip register contents, skip
   5628 	    lines that start with "<".
   5629 Files:	    src/ops.c
   5630 
   5631 Patch 5.4.44
   5632 Problem:    When 'whichwrap' includes '~', a "~" command that goes on to the
   5633 	    next line cannot be properly undone. (Zellner)
   5634 Solution:   Save each line for undo in n_swapchar().
   5635 Files:	    src/normal.c
   5636 
   5637 Patch 5.4.45 (also see 5.4.x8)
   5638 Problem:    When expand("$ASDF") fails, there is an error message.
   5639 Solution:   Remove the global expand_interactively.  Pass a flag down to skip
   5640 	    the error message.
   5641 	    Also: expand("$ASDF") returns an empty string if $ASDF isn't set.
   5642 	    Previously it returned "$ASDF" when 'shell' is "sh".
   5643 	    Also: system() doesn't print an error when the command returns an
   5644 	    error code.
   5645 Files:	    many
   5646 
   5647 Patch 5.4.46
   5648 Problem:    Backspacing did not always use 'softtabstop' after hitting <CR>,
   5649 	    inserting a register, moving the cursor, etc.
   5650 Solution:   Reset inserted_space much more often in edit().
   5651 Files:	    src/edit.c
   5652 
   5653 Patch 5.4.47
   5654 Problem:    When executing BufWritePre or BufWritePost autocommands for a
   5655 	    hidden buffer, the cursor could be moved to a non-existing
   5656 	    position. (Vince Negri)
   5657 Solution:   Save and restore the cursor and topline for the current window
   5658 	    when it is going to be used to execute autocommands for a hidden
   5659 	    buffer.  Use an existing window for the buffer when it's not
   5660 	    hidden.
   5661 Files:	    src/fileio.c
   5662 
   5663 Patch 5.4.48
   5664 Problem:    A paste with the mouse in Insert mode was not repeated exactly the
   5665 	    same with ".".  For example, when 'autoindent' is set and pasting
   5666 	    text with leading indent. (Perry)
   5667 Solution:   Add the CTRL-R CTRL-O r and CTRL-R CTRL-P r commands in Insert
   5668 	    mode, which insert the contents of a register literally.
   5669 Files:	    src/edit.c, src/normal.c, runtime/doc/insert.txt
   5670 
   5671 Patch 5.4.49
   5672 Problem:    When pasting text with [ <MiddleMouse>, the cursor could end up
   5673 	    after the last character of the line.
   5674 Solution:   Correct the cursor position for the change in indent.
   5675 Files:	    src/ops.c
   5676 
   5677 Patch 5.4.x1 (note: Replaces patch 5.4.9)
   5678 Problem:    Win32 GUI: menu hints were never used, because WANT_MENU is not
   5679 	    defined until vim.h is included.
   5680 Solution:   Move the #ifdef WANT_MENU from where MENUHINTS is defined to where
   5681 	    it is used.
   5682 Files:	    src/gui_w32.c
   5683 
   5684 Patch 5.4.x2
   5685 Problem:    BeOS: When pasting text, one character was moved to the end.
   5686 Solution:   Re-enable the BeOS code in fill_input_buf(), and fix timing out
   5687 	    with acquire_sem_etc(). (Will Day)
   5688 Files:	    src/os_beos.c, src/ui.c
   5689 
   5690 Patch 5.4.x3
   5691 Problem:    Win32 GUI: When dropping a directory on a running gvim it crashes.
   5692 Solution:   Avoid using a NULL file name.  Also display a message to indicate
   5693 	    that the current directory was changed.
   5694 Files:	    src/gui_w32.c
   5695 
   5696 Patch 5.4.x4
   5697 Problem:    Win32 GUI: Removing an item from the popup menu doesn't work.
   5698 Solution:   Don't remove the item from the menubar, but from the parent popup
   5699 	    menu.
   5700 Files:	    src/gui_w32.c
   5701 
   5702 Patch 5.4.x5 (addition to 5.4.34)
   5703 Files:	    src/gui_w32.c
   5704 
   5705 Patch 5.4.x6
   5706 Problem:    Win32: Expanding (dir)name starting with a dot doesn't work.
   5707 	    (McCormack)  Only when there is a path before it.
   5708 Solution:   Fix the check, done before expansion, if the file name pattern
   5709 	    starts with a dot.
   5710 Files:	    src/os_win32.c
   5711 
   5712 Patch 5.4.x7
   5713 Problem:    Win32 GUI: Removing "Edit with Vim" from registry is difficult.
   5714 Solution:   Add uninstall program to remove the registry keys. It is installed
   5715 	    in the "Add/Remove programs" list for ease of use.
   5716 	    Also: don't set $VIM when the executable is with the runtime files.
   5717 	    Also: Add a text file with a step-by-step description of how to
   5718 	    uninstall Vim for DOS and Windows.
   5719 Files:	    src/uninstal.c, src/dosinst.c, src/Makefile.w32, uninstal.txt
   5720 
   5721 Patch 5.4.x8 (addition to 5.4.45)
   5722 Files:	    many
   5723 
   5724 Patch 5.4.x9
   5725 Problem:    Win32 GUI: After executing an external command, focus is not
   5726 	    always regained (when using focus-follows-mouse).
   5727 Solution:   Add SetFocus() in mch_system(). (Mike Steed)
   5728 Files:	    src/os_win32.c
   5729 
   5730 
   5731 Patch 5.5a.1
   5732 Problem:    ":let @* = @:" did not work.  The text was not put on the
   5733 	I   clipboard.  (Fisher)
   5734 Solution:   Own the clipboard and put the text on it.
   5735 Files:	    src/ops.c
   5736 
   5737 Patch 5.5a.2
   5738 Problem:    append() did not mark the buffer modified.  Marks below the
   5739 	    new line were not adjusted.
   5740 Solution:   Fix the f_append() function.
   5741 Files:	    src/eval.c
   5742 
   5743 Patch 5.5a.3
   5744 Problem:    Editing compressed ".gz" files doesn't work on non-Unix systems,
   5745 	    because there is no "mv" command.
   5746 Solution:   Add the rename() function and use it instead of ":!mv".
   5747 	    Also: Disable the automatic jump to the last position, because it
   5748 	    changes the jumplist.
   5749 Files:	    src/eval.c, runtime/doc/eval.txt, runtime/vimrc_example.vim
   5750 
   5751 Patch 5.5a.4
   5752 Problem:    When using whole-line completion in insert mode while the cursor
   5753 	    is in the indent, get "out of memory" error. (Stekrt)
   5754 Solution:   Don't allocate a negative amount of memory in ins_complete().
   5755 Files:	    src/edit.c
   5756 
   5757 Patch 5.5a.5
   5758 Problem:    Win32: The 'path' option can hold only up to 256 characters,
   5759 	    because _MAX_PATH is 256.  (Robert Webb)
   5760 Solution:   Use a fixed path length of 1024.
   5761 Files:	    src/os_win32.h
   5762 
   5763 Patch 5.5a.6
   5764 Problem:    Compiling with gcc on Win32, using the Unix Makefile, didn't work.
   5765 Solution:   Add $(SUFFIX) to all places where an executable is used.  Also
   5766 	    pass it to ctags.  (Reynolds)
   5767 Files:	    src/Makefile
   5768 
   5769 Patch 5.5a.7
   5770 Problem:    When using "cat | vim -" in an xterm, the xterm version reply
   5771 	    would end up in the file.
   5772 Solution:   Read the file from stdin before switching the terminal to RAW
   5773 	    mode.  Should also avoid problems with programs that use a
   5774 	    specific terminal setting.
   5775 	    Also: when using the GUI, print "Reading from stdin..." in the GUI
   5776 	    window, to give a hint why it doesn't do anything.
   5777 Files:	    src/main.c, src/fileio.c
   5778 
   5779 Patch 5.5a.8
   5780 Problem:    On multi-threaded Solaris, suspending doesn't work.
   5781 Solution:   Call pause() when the SIGCONT signal was not received after
   5782 	    sending the SIGTSTP signal. (Nagano)
   5783 Files:	    src/os_unix.c
   5784 
   5785 Patch 5.5a.9
   5786 Problem:    'winaltkeys' could be set to an empty argument, which is illegal.
   5787 Solution:   Give an error message when doing ":set winaltkeys=".
   5788 Files:	    src/option.c
   5789 
   5790 Patch 5.5a.10
   5791 Problem:    Win32 console: Using ALTGR on a German keyboard to produce "}"
   5792 	    doesn't work, because the 8th bit is set when ALT is pressed.
   5793 Solution:   Don't set the 8th bit when ALT and CTRL are used. (Leipert)
   5794 Files:	    src/os_win32.c
   5795 
   5796 Patch 5.5a.11
   5797 Problem:    Tcl: Configure always uses tclsh8.0.
   5798 	    Also: Loading a library doesn't work.
   5799 Solution:   Add "--with-tclsh" configure argument to allow specifying another
   5800 	    name for the tcl shell.
   5801 	    Call Tcl_Init() in tclinit() to make loading libraries work.
   5802 	    (Johannes Zellner)
   5803 Files:	    src/configure.in, src/configure, src/if_tcl.c
   5804 
   5805 Patch 5.5a.12
   5806 Problem:    The "user_commands" feature is called "user-commands".
   5807 Solution:   Replace "user-commands" with "user_commands". (Kim Sung-bom)
   5808 	    Keep "user-commands" for the has() function, to remain backwards
   5809 	    compatible with 5.4.
   5810 Files:	    src/eval.c, src/version.c
   5811 
   5812 Patch 5.5a.13
   5813 Problem:    OS/2: When $HOME is not defined, "C:/" is used for the viminfo
   5814 	    file.  That is very wrong when OS/2 is on another partition.
   5815 Solution:   Use $VIM for the viminfo file when it is defined, like for MSDOS.
   5816 	    Also: Makefile.os2 didn't depend on os_unix.h.
   5817 Files:	    src/os_unix.h, src/Makefile.os2
   5818 
   5819 Patch 5.5a.14
   5820 Problem:    Athena, Motif and GTK: The Mouse scroll wheel doesn't work.
   5821 Solution:   Interpret a click of the wheel as a key press of the <MouseDown>
   5822 	    or <MouseUp> keys.  Default behavior is to scroll three lines, or
   5823 	    a full page when Shift is used.
   5824 Files:	    src/edit.c, src/ex_getln.c, src/gui.c, src/gui_gtk_x11.c,
   5825 	    src/gui_x11.c, src/keymap.h, src/message.c, src/misc1.c,
   5826 	    src/misc2.c, src/normal.c,  src/proto/normal.pro, src/vim.h,
   5827 	    runtime/doc/scroll.txt
   5828 
   5829 Patch 5.5a.15
   5830 Problem:    Using CTRL-A in Insert mode doesn't work correctly when the insert
   5831 	    started with the <Insert> key. (Andreas Rohrschneider)
   5832 Solution:   Replace <Insert> with "i" before setting up the redo buffer.
   5833 Files:	    src/normal.c
   5834 
   5835 Patch 5.5a.16
   5836 Problem:    VMS: GUI does not compile and run.
   5837 Solution:   Various fixes. (Zoltan Arpadffy)
   5838 	    Moved functions from os_unix.c to ui.c, so that VMS can use them
   5839 	    too: open_app_context(), x11_setup_atoms() and clip_x11* functions.
   5840 	    Made xterm_dpy global, it's now used by ui.c and os_unix.c.
   5841 	    Use gethostname() always, sys_hostname doesn't exist.
   5842 Files:	    src/globals.h, src/gui_x11.c, src/os_vms.mms, src/os_unix.c,
   5843 	    src/os_vms.c, src/ui.c, src/proto/os_unix.pro, src/proto/ui.pro
   5844 
   5845 Renamed AdjustCursorForMultiByteCharacter() to AdjustCursorForMultiByteChar()
   5846 to avoid symbol length limit of 31 characters. (Steve P. Wall)
   5847 
   5848 Patch 5.5b.1
   5849 Problem:    SASC complains about dead assignments and implicit type casts.
   5850 Solution:   Removed the dead assignments.  Added explicit type casts.
   5851 Files:	    src/buffer.c, src/edit.c, src/eval.c, src/ex_cmds.c,
   5852 	    src/ex_getln.c, src/fileio.c, src/getchar.c, src/memline.c,
   5853 	    src/menu.c, src/misc1.c, src/normal.c, src/ops.c, src/quickfix.c,
   5854 	    src/screen.c
   5855 
   5856 Patch 5.5b.2
   5857 Problem:    When using "CTRL-O O" in Insert mode, hit <Esc> and then "o" in
   5858 	    another line truncates that line. (Devin Weaver)
   5859 Solution:   When using a command that starts Insert mode from CTRL-O, reset
   5860 	    "restart_edit" first.  This avoids that edit() is called with a
   5861 	    mix of starting a new edit command and restarting a previous one.
   5862 Files:	    src/normal.c
   5863 
   5864 ==============================================================================
   5865 VERSION 5.6						*version-5.6*
   5866 
   5867 Version 5.6 is a bug-fix version of 5.5.
   5868 
   5869 
   5870 Changed							*changed-5.6*
   5871 -------
   5872 
   5873 Small changes to OleVim files. (Christian Schaller)
   5874 
   5875 Inserted "/**/" between patch numbers in src/version.c.  This allows for one
   5876 line of context, which some versions of patch need.
   5877 
   5878 Reordered the Syntax menu to avoid long submenus.  Removed keyboard shortcuts
   5879 for alphabetical items to avoid a clash with fixed items.
   5880 
   5881 
   5882 Added							*added-5.6*
   5883 -----
   5884 
   5885 Included Exuberant Ctags version 3.4. (Darren Hiebert)
   5886 
   5887 OpenWithVim in Python. (Christian Schaller)
   5888 
   5889 Win32 GUI: gvimext.dll, for the context menu "Edit with Vim" entry.  Avoids
   5890 the reported problems with the MS Office taskbar.  Now it's a Shell Extension.
   5891 (Tianmiao Hu)
   5892 
   5893 New syntax files:
   5894 abel		Abel (John Cook)
   5895 aml		Arc Macro Language (Nikki Knuit)
   5896 apachestyle	Apache-style config file (Christian Hammers)
   5897 cf		Cold Fusion (Jeff Lanzarotta)
   5898 ctrlh		files with CTRL-H sequences (Bram Moolenaar)
   5899 cupl		CUPL (John Cook)
   5900 cuplsim		CUPL simulation (John Cook)
   5901 erlang		Erlang (Kresimir Marzic)
   5902 gedcom		Gedcom (Paul Johnson)
   5903 icon		Icon (Wendell Turner)
   5904 ist		MakeIndex style (Peter Meszaros)
   5905 jsp		Java Server Pages (Rafael Garcia-Suarez)
   5906 rcslog		Rcslog (Joe Karthauser)
   5907 remind		Remind (Davide Alberani)
   5908 sqr		Structured Query Report Writer (Paul Moore)
   5909 tads		TADS (Amir Karger)
   5910 texinfo		Texinfo (Sandor Kopanyi)
   5911 xpm2		X Pixmap v2 (Steve Wall)
   5912 
   5913 The 'C' flag in 'cpoptions' can be used to switch off concatenation for
   5914 sourced lines.  See patch 5.5.013 below. |line-continuation|
   5915 
   5916 "excludenl" argument for the ":syntax" command.  See patch 5.5.032 below.
   5917 |:syn-excludenl|
   5918 
   5919 Implemented |z+| and |z^| commands.  See patch 5.5.050 below.
   5920 
   5921 Vim logo in Corel Draw format.  Can be scaled to any resolution.
   5922 
   5923 
   5924 Fixed							*fixed-5.6*
   5925 -----
   5926 
   5927 Using this mapping in Select mode, terminated completion:
   5928 ":vnoremap <C-N> <Esc>a<C-N>" (Benji Fisher)
   5929 Ignore K_SELECT in ins_compl_prep().
   5930 
   5931 VMS (Zoltan Arpadffy, David Elins):
   5932 - ioctl() in pty.c caused trouble, #ifndef VMS added.
   5933 - Cut & paste mismatch corrected.
   5934 - Popup menu line crash corrected.  (Patch 5.5.047)
   5935 - Motif directories during open and save as corrected.
   5936 - Handle full file names with version numbers. (Patch 5.5.046)
   5937 - Directory handling (CD command etc.)
   5938 - Corrected file name conversion VMS to Unix and v.v.
   5939 - Recovery was not working.
   5940 - Terminal and signal handling was outdated compared to os_unix.c.
   5941 - Improved os_vms.txt.
   5942 
   5943 Configure used fprintf() instead of printf() to check for __DATE__ and
   5944 __TIME__. (John Card II)
   5945 
   5946 BeOS: Adjust computing the char_height and char_ascent.  Round them up
   5947 separately, avoids redrawing artifacts. (Mike Steed)
   5948 
   5949 Fix a few multibyte problems in menu_name_skip(), set_reg_ic(), searchc() and
   5950 findmatchlimit(). (Taro Muraoka)
   5951 
   5952 GTK GUI:
   5953 - With GTK 1.2.5 and later the scrollbars were not redrawn correctly.
   5954 - Adjusted the gtk_form_draw() function.
   5955 - SNiFF connection didn't work.
   5956 - 'mousefocus' was not working. (Dalecki)
   5957 - Some keys were not working with modifiers: Shift-Tab, Ctrl-Space and CTRL-@.
   5958 
   5959 
   5960 Patch 5.5.001
   5961 Problem:    Configure in the top directory did not pass on an argument with a
   5962 	    space correctly.  For example "./configure --previs="/My home".
   5963 	    (Stephane Chazelas)
   5964 Solution:   Use '"$@"' instead of '$*' to pass on the arguments.
   5965 Files:	    configure
   5966 
   5967 Patch 5.5.002
   5968 Problem:    Compilation error for using "fds[] & POLLIN". (Jeff Walker)
   5969 Solution:   Use "fds[].revents & POLLIN".
   5970 Files:	    src/os_unix.c
   5971 
   5972 Patch 5.5.003
   5973 Problem:    The autoconf check for sizeof(int) is wrong on machines where
   5974 	    sizeof(size_t) != sizeof(int).
   5975 Solution:   Use our own configure check.  Also fixes the warning for
   5976 	    cross-compiling.
   5977 Files:	    src/configure.in, src/configure
   5978 
   5979 Patch 5.5.004
   5980 Problem:    On Unix it's not possible to interrupt ":sleep 100".
   5981 Solution:   Switch terminal to cooked mode while asleep, to allow a SIGINT to
   5982 	    wake us up.  But switch off echo, added TMODE_SLEEP.
   5983 Files:	    src/term.h, src/os_unix.c
   5984 
   5985 Patch 5.5.005
   5986 Problem:    When using <f-args> with a user command, an empty argument to the
   5987 	    command resulted in one empty string, while no string was
   5988 	    expected.
   5989 Solution:   Catch an empty argument and pass no argument to the function.
   5990 	    (Paul Moore)
   5991 Files:	    src/ex_docmd.c
   5992 
   5993 Patch 5.5.006
   5994 Problem:    Python: When platform-dependent files are in another directory
   5995 	    than the platform-independent files it doesn't work.
   5996 Solution:   Also check the executable directory, and add it to CFLAGS. (Tessa
   5997 	    Lau)
   5998 Files:	    src/configure.in, src/configure
   5999 
   6000 Patch 5.5.007 (extra)
   6001 Problem:    Win32 OLE: Occasional crash when exiting while still being used
   6002 	    via OLE.
   6003 Solution:   Move OleUninitialize() to before deleting the application object.
   6004 	    (Vince Negri)
   6005 Files:	    src/if_ole.cpp
   6006 
   6007 Patch 5.5.008
   6008 Problem:    10000@@ takes a long time and cannot be interrupted.
   6009 Solution:   Check for CTRL-C typed while in the loop to push the register.
   6010 Files:	    src/normal.c
   6011 
   6012 Patch 5.5.009
   6013 Problem:    Recent Sequent machines don't link with "-linet". (Kurtis Rader)
   6014 Solution:   Remove configure check for Sequent.
   6015 Files:	    src/configure.in, src/configure
   6016 
   6017 Patch 5.5.010
   6018 Problem:    Ctags freed a memory block twice when exiting.  When out of
   6019 	    memory, a misleading error message was given.
   6020 Solution:   Update to ctags 3.3.2.  Also fixes a few other problems. (Darren
   6021 	    Hiebert)
   6022 Files:	    src/ctags/*
   6023 
   6024 Patch 5.5.011
   6025 Problem:    After "CTRL-V s", the cursor jumps back to the start, while all
   6026 	    other operators leave the cursor on the last changed character.
   6027 	    (Xiangjiang Ma)
   6028 Solution:   Position cursor on last changed character, if possible.
   6029 Files:	    src/ops.c
   6030 
   6031 Patch 5.5.012
   6032 Problem:    Using CTRL-] in Visual mode doesn't work when the text includes a
   6033 	    space (just where it's useful). (Stefan Bittner)
   6034 Solution:   Don't escape special characters in a tag name with a backslash.
   6035 Files:	    src/normal.c
   6036 
   6037 Patch 5.5.013
   6038 Problem:    The ":append" and ":insert" commands allow using a leading
   6039 	    backslash in a line.  The ":source" command concatenates those
   6040 	    lines. (Heinlein)
   6041 Solution:   Add the 'C' flag in 'cpoptions' to switch off concatenation.
   6042 Files:	    src/ex_docmd.c, src/option.h, runtime/doc/options.txt,
   6043 	    runtime/filetype.vim, runtime/scripts.vim
   6044 
   6045 Patch 5.5.014
   6046 Problem:    When executing a register with ":@", the ":append" command would
   6047 	    get text lines with a ':' prepended. (Heinlein)
   6048 Solution:   Remove the ':' characters.
   6049 Files:	    src/ex_docmd.c, src/ex_getln.c, src/globals.h
   6050 
   6051 Patch 5.5.015
   6052 Problem:    When using ":g/pat/p", it's hard to see where the output starts,
   6053 	    the ":g" command is overwritten.  Vi keeps the ":g" command.
   6054 Solution:   Keep the ":g" command, but allow overwriting it with the report
   6055 	    for the number of changes.
   6056 Files:	    src/ex_cmds.c
   6057 
   6058 Patch 5.5.016 (extra)
   6059 Problem:    Win32: Using regedit to install Vim in the popup menu requires the
   6060 	    user to confirm this in a dialog.
   6061 Solution:   Use "regedit /s" to avoid the dialog
   6062 Files:	    src/dosinst.c
   6063 
   6064 Patch 5.5.017
   6065 Problem:    If an error occurs when closing the current window, Vim could get
   6066 	    stuck in the error handling.
   6067 Solution:   Don't set curwin to NULL when closing the current window.
   6068 Files:	    src/window.c
   6069 
   6070 Patch 5.5.018
   6071 Problem:    Absolute paths in shell scripts do not always work.
   6072 Solution:   Use /usr/bin/env to find out the path.
   6073 Files:	    runtime/doc/vim2html.pl, runtime/tools/efm_filter.pl,
   6074 	    runtime/tools/shtags.pl
   6075 
   6076 Patch 5.5.019
   6077 Problem:    A function call in 'statusline' stops using ":q" twice from
   6078 	    exiting, when the last argument hasn't been edited.
   6079 Solution:   Don't decrement quitmore when executing a function. (Madsen)
   6080 Files:	    src/ex_docmd.c
   6081 
   6082 Patch 5.5.020
   6083 Problem:    When the output of CTRL-D completion in the commandline goes all
   6084 	    the way to the last column, there is an empty line.
   6085 Solution:   Don't add a newline when the cursor wrapped already. (Madsen)
   6086 Files:	    src/ex_getln.c
   6087 
   6088 Patch 5.5.021
   6089 Problem:    When checking if a file name in the tags file is relative,
   6090 	    environment variables were not expanded.
   6091 Solution:   Expand the file name before checking if it is relative. (Madsen)
   6092 Files:	    src/tag.c
   6093 
   6094 Patch 5.5.022
   6095 Problem:    When setting or resetting 'paste' the ruler wasn't updated.
   6096 Solution:   Update the status lines when 'ruler' changes because of 'paste'.
   6097 Files:	    src/option.c
   6098 
   6099 Patch 5.5.023
   6100 Problem:    When editing a new file and autocommands change the cursor
   6101 	    position, the cursor was moved back to the first non-white, unless
   6102 	    'startofline' was reset.
   6103 Solution:   Keep the new column, just like the line number.
   6104 Files:	    src/ex_cmds.c
   6105 
   6106 Patch 5.5.024 (extra)
   6107 Problem:    Win32 GUI: When using confirm() to put up a dialog without a
   6108 	    default button, the dialog would not have keyboard focus.
   6109 	    (Krishna)
   6110 Solution:   Always set focus to the dialog window.  Only set focus to a button
   6111 	    when a default one is specified.
   6112 Files:	    src/gui_w32.c
   6113 
   6114 Patch 5.5.025
   6115 Problem:    When using "keepend" in a syntax region, a contained match that
   6116 	    includes the end-of-line could still force that region to
   6117 	    continue, if there is another contained match in between.
   6118 Solution:   Check the keepend_level in check_state_ends().
   6119 Files:	    src/syntax.c
   6120 
   6121 Patch 5.5.026
   6122 Problem:    When starting Vim in a white-on-black xterm, with 'bg' set to
   6123 	    "dark", and then starting the GUI with ":gui", setting 'bg' to
   6124 	    "light" in the gvimrc, the highlighting isn't set.  (Tsjokwing)
   6125 Solution:   Set the highlighting when 'bg' is changed in the gvimrc, even
   6126 	    though full_screen isn't set.
   6127 Files:	    src/option.c
   6128 
   6129 Patch 5.5.027
   6130 Problem:    Unix: os_unix.c doesn't compile when XTERM_CLIP is used but
   6131 	    WANT_TITLE isn't. (Barnum)
   6132 Solution:   Move a few functions that are used by the X11 title and clipboard
   6133 	    and put another "#if" around it.
   6134 Files:	    src/os_unix.c
   6135 
   6136 Patch 5.5.028 (extra)
   6137 Problem:    Win32 GUI: When a file is dropped on Win32 gvim while at the ":"
   6138 	    prompt, the file is edited but the command line is actually still
   6139 	    there, the cursor goes back to command line on the next command.
   6140 	    (Krishna)
   6141 Solution:   When dropping a file or directory on gvim while at the ":" prompt,
   6142 	    insert the name of the file/directory.  Allows using the
   6143 	    file/directory name for any Ex command.
   6144 Files:	    src/gui_w32.c
   6145 
   6146 Patch 5.5.029
   6147 Problem:    "das" at the end of the file didn't delete the last character of
   6148 	    the sentence.
   6149 Solution:   When there is no character after the sentence, make the operation
   6150 	    inclusive in current_sent().
   6151 Files:	    src/search.c
   6152 
   6153 Patch 5.5.030
   6154 Problem:    Unix: in os_unix.c, "term_str" is used, which is also defined in
   6155 	    vim.h as a macro. (wuxin)
   6156 Solution:   Renamed "term_str" to "buf" in do_xterm_trace().
   6157 Files:	    src/os_unix.c
   6158 
   6159 Patch 5.5.031 (extra)
   6160 Problem:    Win32 GUI: When exiting Windows, gvim will leave swap files behind
   6161 	    and will be killed ungracefully. (Krishna)
   6162 Solution:   Catch the WM_QUERYENDSESSION and WM_ENDSESSION messages and try to
   6163 	    exit gracefully.  Allow the user to cancel the shutdown if there
   6164 	    is a changed buffer.
   6165 Files:	    src/gui_w32.c
   6166 
   6167 Patch 5.5.032
   6168 Problem:    Patch 5.5.025 wasn't right.  And C highlighting was still not
   6169 	    working correctly for a #define.
   6170 Solution:   Added "excludenl" argument to ":syntax", to be able not to extend
   6171 	    a containing item when there is a match with the end-of-line.
   6172 Files:	    src/syntax.c, runtime/doc/syntax.txt, runtime/syntax/c.vim
   6173 
   6174 Patch 5.5.033
   6175 Problem:    When reading from stdin, a long line in viminfo would mess up the
   6176 	    file message.  readfile() uses IObuff for keep_msg, which could be
   6177 	    overwritten by anyone.
   6178 Solution:   Copy the message from IObuff to msg_buf and set keep_msg to that.
   6179 	    Also change vim_fgets() to not use IObuff any longer.
   6180 Files:	    src/fileio.c
   6181 
   6182 Patch 5.5.034
   6183 Problem:    "gvim -rv" caused a crash.  Using 't_Co' before it's set.
   6184 Solution:   Don't try to initialize the highlighting before it has been
   6185 	    initialized from main().
   6186 Files:	    src/syntax.c
   6187 
   6188 Patch 5.5.035
   6189 Problem:    GTK with XIM: Resizing with status area was messy, and
   6190 	    ":set guioptions+=b" didn't work.
   6191 Solution:   Make status area a separate widget, but not a separate window.
   6192 	    (Chi-Deok Hwang)
   6193 Files:	    src/gui_gtk_f.c, src/gui_gtk_x11.c, src/multbyte.c
   6194 
   6195 Patch 5.5.036
   6196 Problem:    The GZIP_read() function in $VIMRUNTIME/vimrc_example.vim to
   6197 	    uncompress a file did not do detection for 'fileformat'.  This is
   6198 	    because the filtering is done with 'binary' set.
   6199 Solution:   Split the filtering into separate write, filter and read commands.
   6200 Files:	    runtime/vimrc_example.vim
   6201 
   6202 Patch 5.5.037
   6203 Problem:    The "U" command didn't mark the buffer as changed. (McCormack)
   6204 Solution:   Set the 'modified' flag when using "U".
   6205 Files:	    src/undo.c
   6206 
   6207 Patch 5.5.038
   6208 Problem:    When typing a long ":" command, so that the screen scrolls up,
   6209 	    causes the hit-enter prompt, even though the user just typed
   6210 	    return to execute the command.
   6211 Solution:   Reset need_wait_return if (part of) the command was typed in
   6212 	    getcmdline().
   6213 Files:	    src/ex_getln.c
   6214 
   6215 Patch 5.5.039
   6216 Problem:    When using a custom status line, "%a" (file # of #) reports the
   6217 	    index of the current window for all windows.
   6218 Solution:   Pass a window pointer to append_arg_number(), and pass the window
   6219 	    being updated from build_stl_str_hl(). (Stephen P. Wall)
   6220 Files:	    src/buffer.c, src/screen.c, src/proto/buffer.pro
   6221 
   6222 Patch 5.5.040
   6223 Problem:    Multi-byte: When there is some error in xim_real_init(), it can
   6224 	    close XIM and return.  After this there can be a segv.
   6225 Solution:   Test "xic" for being non-NULL, don't set "xim" to NULL.  Also try
   6226 	    to find more matches for supported styles. (Sung-Hyun Nam)
   6227 Files:	    src/multbyte.c
   6228 
   6229 Patch 5.5.041
   6230 Problem:    X11 GUI: CTRL-_ requires the SHIFT key only on some machines.
   6231 Solution:   Translate CTRL-- to CTRL-_. (Robert Webb)
   6232 Files:	    src/gui_x11.c
   6233 
   6234 Patch 5.5.042
   6235 Problem:    X11 GUI: keys with ALT were assumed to be used for the menu, even
   6236 	    when the menu has been disabled by removing 'm' from 'guioptions'.
   6237 Solution:   Ignore keys with ALT only when gui.menu_is_active is set. (Raf)
   6238 Files:	    src/gui_x11.c
   6239 
   6240 Patch 5.5.043
   6241 Problem:    GTK: Handling of fontset fonts was not right when 'guifontset'
   6242 	    contains exactly 14 times '-'.
   6243 Solution:   Avoid setting fonts when working with a fontset. (Sung-Hyun Nam)
   6244 Files:	    src/gui_gtk_x11.c
   6245 
   6246 Patch 5.5.044
   6247 Problem:    pltags.pl contains an absolute path "/usr/local/bin/perl".  That
   6248 	    might not work everywhere.
   6249 Solution:   Use "/usr/bin/env perl" instead.
   6250 Files:	    runtime/tools/pltags.pl
   6251 
   6252 Patch 5.5.045
   6253 Problem:    Using "this_session" variable does not work, requires preceding it
   6254 	    with "v:".  Default filename for ":mksession" isn't mentioned
   6255 	    in the docs. (Fisher)
   6256 Solution:   Support using "this_session" to be backwards compatible.
   6257 Files:	    src/eval.c, runtime/doc/options.txt
   6258 
   6259 Patch 5.5.046 (extra)
   6260 Problem:    VMS: problems with path and filename.
   6261 Solution:   Truncate file name at last ';', etc. (Zoltan Arpadffy)
   6262 Files:	    src/buffer.c, src/fileio.c, src/gui_motif.c, src/os_vms.c,
   6263 	    src/proto/os_vms.pro
   6264 
   6265 Patch 5.5.047
   6266 Problem:    VMS: Crash when using the popup menu
   6267 Solution:   Turn the #define MENU_MODE_CHARS into an array. (Arpadffy)
   6268 Files:	    src/structs.h, src/menu.c
   6269 
   6270 Patch 5.5.048
   6271 Problem:    HP-UX 11: Compiling doesn't work, because both string.h and
   6272 	    strings.h are included. (Squassabia)
   6273 Solution:   The configure test for including both string.h and strings.h
   6274 	    must include <Xm/Xm.h> first, because it causes problems.
   6275 Files:	    src/configure.in, src/configure, src/config.h.in
   6276 
   6277 Patch 5.5.049
   6278 Problem:    Unix: When installing Vim, the protection bits of files might be
   6279 	    influenced by the umask.
   6280 Solution:   Add $(FILEMOD) to Makefile. (Shetye)
   6281 Files:	    src/Makefile
   6282 
   6283 Patch 5.5.050
   6284 Problem:    "z+" and "z^" commands are missing.
   6285 Solution:   Implemented "z+" and "z^".
   6286 Files:	    src/normal.c, runtime/doc/scroll.txt, runtime/doc/index.txt
   6287 
   6288 Patch 5.5.051
   6289 Problem:    Several Unix systems have a problem with the optimization limits
   6290 	    check in configure.
   6291 Solution:   Removed the configure check, let the user add it manually in
   6292 	    Makefile or the environment.
   6293 Files:	    src/configure.in, src/configure, src/Makefile
   6294 
   6295 Patch 5.5.052
   6296 Problem:    Crash when using a cursor key at the ATTENTION prompt. (Alberani)
   6297 Solution:   Ignore special keys at the console dialog.  Also ignore characters
   6298 	    > 255 for other uses of tolower() and toupper().
   6299 Files:	    src/menu.c, src/message.c, src/misc2.c
   6300 
   6301 Patch 5.5.053
   6302 Problem:    Indenting is wrong after a function when 'cino' has "fs".  Another
   6303 	    problem when 'cino' has "{s".
   6304 Solution:   Put line after closing "}" of a function at the left margin.
   6305 	    Apply ind_open_extra in the right way after a '{'.
   6306 Files:	    src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok
   6307 
   6308 Patch 5.5.054
   6309 Problem:    Unix: ":e #" doesn't work if the alternate file name contains a
   6310 	    space or backslash. (Hudacek)
   6311 Solution:   When replacing "#", "%" or other items that stand for a file name,
   6312 	    prepend a backslash before special characters.
   6313 Files:	    src/ex_docmd.c
   6314 
   6315 Patch 5.5.055
   6316 Problem:    Using "<C-V>$r-" in blockwise Visual mode replaces one character
   6317 	    beyond the end of the line. (Zivkov)
   6318 Solution:   Only replace existing characters.
   6319 Files:	    src/ops.c
   6320 
   6321 Patch 5.5.056
   6322 Problem:    After "z20<CR>" messages were printed at the old command line
   6323 	    position once.  (Veselinovic)
   6324 Solution:   Set msg_row and msg_col when changing cmdline_row in
   6325 	    win_setheight().
   6326 Files:	    src/window.c
   6327 
   6328 Patch 5.5.057
   6329 Problem:    After "S<Esc>" it should be possible to restore the line with "U".
   6330 	    (Veselinovic)
   6331 Solution:   Don't call u_clearline() in op_delete() when changing only one
   6332 	    line.
   6333 Files:	    src/ops.c
   6334 
   6335 Patch 5.5.058
   6336 Problem:    Using a long search pattern and then "n" causes the hit-enter
   6337 	    prompt.  (Krishna)
   6338 Solution:   Truncate the echoed pattern, like other messages.  Moved code for
   6339 	    truncating from msg_attr() to msg_strtrunc().
   6340 Files:	    src/message.c, src/proto/message.pro, src/search.c
   6341 
   6342 Patch 5.5.059
   6343 Problem:    GTK GUI: When $term is invalid, using "gvim" gives an error
   6344 	    message, even though $term isn't really used.  (Robbins)
   6345 Solution:   When the GUI is about to start, skip the error messages for a
   6346 	    wrong $term.
   6347 Files:	    src/term.c
   6348 
   6349 Patch 5.5.060 (extra)
   6350 Problem:    Dos 32 bit: When a directory in 'backupdir' doesn't exist, ":w"
   6351 	    causes the file to be renamed to "axlqwqhy.ba~". (Matzdorf)
   6352 Solution:   The code to work around a LFN bug in Windows 95 doesn't handle a
   6353 	    non-existing target name correctly.  When renaming fails, make
   6354 	    sure the file has its original name.  Also do this for the Win32
   6355 	    version, although it's unlikely that it runs into this problem.
   6356 Files:	    src/os_msdos.c, src/os_win32.c
   6357 
   6358 Patch 5.5.061
   6359 Problem:    When using "\:" in a modeline, the backslash is included in the
   6360 	    option value. (Mohsin)
   6361 Solution:   Remove one backslash before the ':' in a modeline.
   6362 Files:	    src/buffer.c, runtime/doc/options.txt
   6363 
   6364 Patch 5.5.062 (extra)
   6365 Problem:    Win32 console: Temp files are created in the root of the current
   6366 	    drive, which may be read-only. (Peterson)
   6367 Solution:   Use the same mechanism of the GUI version: Use $TMP, $TEMP or the
   6368 	    current directory.  Cleaned up vim_tempname() a bit.
   6369 Files:	    src/fileio.c, src/os_win32.h, runtime/doc/os_dos.txt
   6370 
   6371 Patch 5.5.063
   6372 Problem:    When using whole-line completion in Insert mode, 'cindent' is
   6373 	    applied, even after changing the indent of the line.
   6374 Solution:   Don't reindent the completed line after inserting/removing indent.
   6375 	    (Robert Webb)
   6376 Files:	    src/edit.c
   6377 
   6378 Patch 5.5.064
   6379 Problem:    has("sniff") doesn't work correctly.
   6380 Solution:   Return 1 when Vim was compiled with the +sniff feature. (Pruemmer)
   6381 Files:	    src/eval.c
   6382 
   6383 Patch 5.5.065
   6384 Problem:    When dropping a file on Vim, the 'shellslash' option is not
   6385 	    effective. (Krishna)
   6386 Solution:   Fix the slashes in the dropped file names according to
   6387 	    'shellslash'.
   6388 Files:	    src/ex_docmd.c, runtime/doc/options.txt
   6389 
   6390 Patch 5.5.066
   6391 Problem:    For systems with backslash in file name: Setting a file name
   6392 	    option to a value starting with "\\machine" removed a backslash.
   6393 Solution:   Keep the double backslash for "\\machine", but do change
   6394 	    "\\\\machine" to "\\machine" for backwards compatibility.
   6395 Files:	    src/option.c, runtime/doc/options.txt
   6396 
   6397 Patch 5.5.067
   6398 Problem:    With 'hlsearch' set, the pattern "\>" doesn't highlight the first
   6399 	    match in a line. (Benji Fisher)
   6400 Solution:   Fix highlighting an empty match.  Also highlight the first
   6401 	    character in an empty line for "$".
   6402 Files:	    src/screen.c
   6403 
   6404 Patch 5.5.068
   6405 Problem:    Crash when a ":while" is used with an argument that has an error.
   6406 	    (Sylvain Viart)
   6407 Solution:   Was using an uninitialized index in the cs_line[] array.  The
   6408 	    crash only happened when the index was far off.  Made sure the
   6409 	    uninitialized index isn't used.
   6410 Files:	    src/ex_docmd.c
   6411 
   6412 Patch 5.5.069
   6413 Problem:    Shifting lines in blockwise Visual mode didn't set the 'modified'
   6414 	    flag.
   6415 Solution:   Do set the 'modified' flag.
   6416 Files:	    src/ops.c
   6417 
   6418 Patch 5.5.070
   6419 Problem:    When editing a new file, creating that file outside of Vim, then
   6420 	    editing it again, ":w" still warns for overwriting an existing
   6421 	    file. (Nam)
   6422 Solution:   The BF_NEW flag in the "b_flags" field wasn't cleared properly.
   6423 Files:	    src/buffer.c, src/fileio.c
   6424 
   6425 Patch 5.5.071
   6426 Problem:    Using a matchgroup in a ":syn region", which is the same syntax
   6427 	    group as the region, didn't stop a contained item from matching in
   6428 	    the start pattern.
   6429 Solution:   Also push an item on the stack when the syntax ID of the
   6430 	    matchgroup is the same as the syntax ID of the region.
   6431 Files:	    src/syntax.c
   6432 
   6433 Patch 5.5.072 (extra)
   6434 Problem:    Dos 32 bit: When setting 'columns' to a too large value, Vim may
   6435 	    crash, and the DOS console too.
   6436 Solution:   Check that the value of 'columns' isn't larger than the number of
   6437 	    columns that the BIOS reports.
   6438 Files:	    src/os_msdos.c, src/proto/os_msdos.pro, src/option.c
   6439 
   6440 Patch 5.5.073 (extra)
   6441 Problem:    Win 32 GUI: The Find and Find/Replace dialogs didn't show the
   6442 	    "match case" checkbox.  The Find/Replace dialog didn't handle the
   6443 	    "match whole word" checkbox.
   6444 Solution:   Support the "match case" and "match whole word" checkboxes.
   6445 Files:	    src/gui_w32.c
   6446 
   6447 Patch 5.6a.001
   6448 Problem:    Using <C-End> with a count doesn't work like it does with "G".
   6449 	    (Benji Fisher)
   6450 Solution:   Accept a count for <C-End> and <C-Home>.
   6451 Files:	    src/normal.c
   6452 
   6453 Patch 5.6a.002
   6454 Problem:    The script for conversion to HTML was an older version.
   6455 Solution:   Add support for running 2html.vim on a color terminal.
   6456 Files:	    runtime/syntax/2html.vim
   6457 
   6458 Patch 5.6a.003
   6459 Problem:    Defining a function inside a function didn't give an error
   6460 	    message.  A missing ":endfunction" doesn't give an error message.
   6461 Solution:   Allow defining a function inside a function.
   6462 Files:	    src/eval.c, runtime/doc/eval.txt
   6463 
   6464 Patch 5.6a.004
   6465 Problem:    A missing ":endwhile" or ":endif" doesn't give an error message.
   6466 	    (Johannes Zellner)
   6467 Solution:   Check for missing ":endwhile" and ":endif" in sourced files.
   6468 	    Add missing ":endif" in file selection macros.
   6469 Files:	    src/ex_docmd.c, runtime/macros/file_select.vim
   6470 
   6471 Patch 5.6a.005
   6472 Problem:    'hlsearch' was not listed alphabetically.  The value of 'toolbar'
   6473 	    was changed when 'compatible' is set.
   6474 Solution:   Moved entry of 'hlsearch' in options[] table down.
   6475 	    Don't reset 'toolbar' option to the default value when
   6476 	    'compatible' is set.
   6477 Files:	    src/option.c
   6478 
   6479 Patch 5.6a.006
   6480 Problem:    Using a backwards range inside ":if 0" gave an error message.
   6481 Solution:   Don't complain about a range when it is not going to be used.
   6482 	    (Stefan Roemer)
   6483 Files:	    src/ex_docmd.c
   6484 
   6485 Patch 5.6a.007
   6486 Problem:    ":let" didn't show internal Vim variables.  (Ron Aaron)
   6487 Solution:   Do show ":v" variables for ":let" and ":let v:name".
   6488 Files:	    src/eval.c
   6489 
   6490 Patch 5.6a.008
   6491 Problem:    Selecting a syntax from the Syntax menu gives an error message.
   6492 Solution:   Replace "else if" in SetSyn() with "elseif".  (Ronald Schild)
   6493 Files:	    runtime/menu.vim
   6494 
   6495 Patch 5.6a.009
   6496 Problem:    When compiling with +extra_search but without +syntax, there is a
   6497 	    compilation error in screen.c. (Axel Kielhorn)
   6498 Solution:   Adjust the #ifdef for declaring and initializing "line" in
   6499 	    win_line().  Also solve compilation problem when +statusline is
   6500 	    used without +eval.  Another one when +cmdline_compl is used
   6501 	    without +eval.
   6502 Files:	    src/screen.c, src/misc2.c
   6503 
   6504 Patch 5.6a.010
   6505 Problem:    In a function, ":startinsert!" does not append to the end of the
   6506 	    line if a ":normal" command was used to move the cursor. (Fisher)
   6507 Solution:   Reset "w_set_curswant" to avoid that w_curswant is changed again.
   6508 Files:	    src/ex_docmd.c
   6509 
   6510 Patch 5.6a.011 (depends on 5.6a.004)
   6511 Problem:    A missing ":endif" or ":endwhile" in a function doesn't give an
   6512 	    error message.
   6513 Solution:   Give that error message.
   6514 Files:	    src/ex_docmd.c
   6515 
   6516 Patch 5.6a.012 (depends on 5.6a.008)
   6517 Problem:    Some Syntax menu entries caused a hit-enter prompt.
   6518 Solution:   Call a function to make the command shorter.  Also rename a few
   6519 	    functions to avoid name clashes.
   6520 Files:	    runtime/menu.vim
   6521 
   6522 Patch 5.6a.013
   6523 Problem:    Command line completion works different when another completion
   6524 	    was done earlier. (Johannes Zellner)
   6525 Solution:   Reset wim_index when starting a new completion.
   6526 Files:	    src/ex_getln.c
   6527 
   6528 Patch 5.6a.014
   6529 Problem:    Various warning messages when compiling and running lint with
   6530 	    different combinations of features.
   6531 Solution:   Fix the warning messages.
   6532 Files:	    src/eval.c, src/ex_cmds.c, src/ex_docmd.c, src/gui_gtk_x11.c,
   6533 	    src/option.c, src/screen.c, src/search.c, src/syntax.c,
   6534 	    src/feature.h, src/globals.h
   6535 
   6536 Patch 5.6a.015
   6537 Problem:    The vimtutor command doesn't always know the value of $VIMRUNTIME.
   6538 Solution:   Let Vim expand $VIMRUNTIME, instead of the shell.
   6539 Files:	    src/vimtutor
   6540 
   6541 Patch 5.6a.016 (extra)
   6542 Problem:    Mac: Window size is restricted when starting.  Cannot drag the
   6543 	    window all over the desktop.
   6544 Solution:   Get real screen size instead of assuming 640x400.  Do not use a
   6545 	    fixed number for the drag limits. (Axel Kielhorn)
   6546 Files:	    src/gui_mac.c
   6547 
   6548 Patch 5.6a.017
   6549 Problem:    The "Paste" entry in popup menu for Visual, Insert and Cmdline
   6550 	    mode is in the wrong position. (Stol)
   6551 Solution:   Add priority numbers for all Paste menu entries.
   6552 Files:	    runtime/menu.vim
   6553 
   6554 Patch 5.6a.018
   6555 Problem:    GTK GUI: submenu priority doesn't work.
   6556 	    Help dialog could be destroyed too soon.
   6557 	    When closing a dialog window (e.g. the "ATTENTION" one), Vim would
   6558 	    just hang.
   6559 	    When GTK theme is changed, Vim doesn't adjust to the new colors.
   6560 	    Argument for ":promptfind" isn't used.
   6561 Solution:   Fixed the mentioned problems.
   6562 	    Made the dialogs look&feel nicer.
   6563 	    Moved functions to avoid the need for a forward declaration.
   6564 	    Fixed reentrancy of the file browser dialog.
   6565 	    Added drag&drop support for GNOME.
   6566 	    Init the text for the Find/replace dialog from the last used
   6567 	    search string.  Set "match whole word" toggle button correctly.
   6568 	    Made repeat rate for drag outside of window depend on the
   6569 	    distance from the window.  (Marcin Dalecki)
   6570 	    Made the drag in Visual mode actually work.
   6571 	    Removed recursiveness protection from gui_mch_get_rgb(), it might
   6572 	    cause more trouble than it solves.
   6573 Files:	    src/ex_docmd.c, src/gui_gtk.c, src/gui_gtk_x11.c, src/ui.c,
   6574 	    src/proto/ui.pro, src/misc2.c
   6575 
   6576 Patch 5.6a.019
   6577 Problem:    When trying to recover through NFS, which uses a large block size,
   6578 	    Vim might think the swap file is empty, because mf_blocknr_max is
   6579 	    zero.  (Scott McDermott)
   6580 Solution:   When computing the number of blocks of the file in mf_open(),
   6581 	    round up instead of down.
   6582 Files:	    src/memfile.c
   6583 
   6584 Patch 5.6a.020
   6585 Problem:    GUI GTK: Could not set display for gvim.
   6586 Solution:   Add "-display" and "--display" arguments. (Marcin Dalecki)
   6587 Files:	    src/gui_gtk_x11.c
   6588 
   6589 Patch 5.6a.021
   6590 Problem:    Recovering still may not work when the block size of the device
   6591 	    where the swap file is located is larger than 4096.
   6592 Solution:   Read block 0 with the minimal block size.
   6593 Files:	    src/memline.c, src/memfile.c, src/vim.h
   6594 
   6595 Patch 5.6a.022 (extra)
   6596 Problem:    Win32 GUI: When an error in the vimrc causes a dialog to pop up
   6597 	    (e.g., for an existing swap file), Vim crashes. (David Elins)
   6598 Solution:   Before showing a dialog, open the main window.
   6599 Files:	    src/gui_w32.c
   6600 
   6601 Patch 5.6a.023
   6602 Problem:    Using expand("%:gs??/?") causes a crash. (Ron Aaron)
   6603 Solution:   Check for running into the end of the string in do_string_sub().
   6604 Files:	    src/eval.c
   6605 
   6606 Patch 5.6a.024
   6607 Problem:    Using an autocommand to delete a buffer when leaving it can cause
   6608 	    a crash when jumping to a tag. (Franz Gorkotte)
   6609 Solution:   In do_tag(), store tagstacklen before jumping to another buffer.
   6610 	    Check tagstackidx after jumping to another buffer.
   6611 	    Add extra check in win_split() if tagname isn't NULL.
   6612 Files:	    src/tag.c, src/window.c
   6613 
   6614 Patch 5.6a.025 (extra)
   6615 Problem:    Win32 GUI: The tables for toupper() and tolower() are initialized
   6616 	    too late. (Mike Steed)
   6617 Solution:   Move the initialization to win32_init() and call it from main().
   6618 Files:	    src/main.c, src/os_w32.c, src/proto/os_w32.pro
   6619 
   6620 Patch 5.6a.026
   6621 Problem:    When the SNiFF connection is open, shell commands hang. (Pruemmer)
   6622 Solution:   Skip a second wait() call if waitpid() already detected that the
   6623 	    child has exited.
   6624 Files:	    src/os_unix.c
   6625 
   6626 Patch 5.6a.027 (extra)
   6627 Problem:    Win32 GUI: The "Edit with Vim" popup menu entry causes problems
   6628 	    for the Office toolbar.
   6629 Solution:   Use a shell extension dll. (Tianmiao Hu)
   6630 	    Added it to the install and uninstal programs, replaces the old
   6631 	    "Edit with Vim" menu registry entries.
   6632 Files:	    src/dosinst.c, src/uninstal.c, gvimext/*, runtime/doc/gui_w32.txt
   6633 
   6634 Patch 5.6a.028 (extra)
   6635 Problem:    Win32 GUI: Dialogs and tear-off menus can't handle multibyte
   6636 	    characters.
   6637 Solution:   Adjust nCopyAnsiToWideChar() to handle multibyte characters
   6638 	    correctly.
   6639 Files:	    src/gui_w32.c
   6640 
   6641 ==============================================================================
   6642 VERSION 5.7						*version-5.7*
   6643 
   6644 Version 5.7 is a bug-fix version of 5.6.
   6645 
   6646 Changed							*changed-5.7*
   6647 -------
   6648 
   6649 Renamed src/INSTALL.mac to INSTALL_mac.txt to avoid it being recognized with a
   6650 wrong file type.  Also renamed src/INSTALL.amiga to INSTALL_ami.txt.
   6651 
   6652 
   6653 Added							*added-5.7*
   6654 -----
   6655 
   6656 New syntax files:
   6657 stp		Stored Procedures (Jeff Lanzarotta)
   6658 snnsnet, snnspat, snnsres	SNNS (Davide Alberani)
   6659 mel		MEL (Robert Minsk)
   6660 ruby		Ruby (Mirko Nasato)
   6661 tli		TealInfo (Kurt W. Andrews)
   6662 ora		Oracle config file (Sandor Kopanyi)
   6663 abaqus		Abaqus (Carl Osterwisch)
   6664 jproperties	Java Properties (Simon Baldwin)
   6665 apache		Apache config (Allan Kelly)
   6666 csp		CSP (Jan Bredereke)
   6667 samba		Samba config (Rafael Garcia-Suarez)
   6668 kscript		KDE script (Thomas Capricelli)
   6669 hb		Hyper Builder (Alejandro Forero Cuervo)
   6670 fortran		Fortran (rewritten) (Ajit J. Thakkar)
   6671 sml		SML (Fabrizio Zeno Cornelli)
   6672 cvs		CVS commit (Matt Dunford)
   6673 aspperl		ASP Perl (Aaron Hope)
   6674 bc		BC calculator (Vladimir Scholtz)
   6675 latte		Latte (Nick Moffitt)
   6676 wml		WML (Gerfried Fuchs)
   6677 
   6678 Included Exuberant ctags 3.5.1. (Darren Hiebert)
   6679 
   6680 "display" and "fold" arguments for syntax items.  For future extension, they
   6681 are ignored now.
   6682 
   6683 strftime() function for the Macintosh.
   6684 
   6685 macros/explorer.vim: A file browser script (M A Aziz Ahmed)
   6686 
   6687 
   6688 Fixed							*fixed-5.7*
   6689 -----
   6690 
   6691 The 16 bit MS-DOS version is now compiled with Bcc 3.1 instead of 4.0.  The
   6692 executable is smaller.
   6693 
   6694 When a "make test" failed, the output file was lost.  Rename it to
   6695 test99.failed to be able to see what went wrong.
   6696 
   6697 After sourcing bugreport.vim, it's not clear that bugreport.txt has been
   6698 written in the current directory.  Edit bugreport.txt to avoid that.
   6699 
   6700 Adding IME support when using Makefile.w32 didn't work. (Taro Muraoka)
   6701 
   6702 Win32 console: Mouse drags were passed on even when the mouse didn't move.
   6703 
   6704 Perl interface: In Buffers(), type of argument to SvPV() was int, should be
   6705 STRLEN. (Tony Leneis)
   6706 
   6707 Problem with prototype for index() on AIX 4.3.0.  Added check for _AIX43 in
   6708 os_unix.h. (Jake Hamby)
   6709 
   6710 Mappings in mswin.vim could break when some commands are mapped.  Add "nore"
   6711 to most mappings to avoid re-mapping.
   6712 
   6713 modify_fname() made a copy of a file name for ":p" when it already was a full
   6714 path name, which is a bit slow.
   6715 
   6716 Win32 with Borland C++ 5.5: Pass the path to the compiler on to xxd and ctags,
   6717 to avoid depending on $PATH.  Fixed "make clean".
   6718 
   6719 Many fixes to Macintosh specific parts: (mostly by Dany StAmant)
   6720 - Only one Help menu.
   6721 - No more crash when removing a menu item.
   6722 - Support as External Editor for Codewarrior (still some little glitches).
   6723 - Popup menu support.
   6724 - Fixed crash when pasting after application switch.
   6725 - Color from rgb.txt properly displayed.
   6726 - 'isprint' default includes all chars above '~'. (Axel Kielhorn)
   6727 - mac_expandpath() was leaking memory.
   6728 - Add digraphs table. (Axel Kielhorn)
   6729 - Multi-byte support: (Kenichi Asai)
   6730   Switch keyscript when going in/out of Insert mode.
   6731   Draw multibyte character correctly.
   6732   Don't use mblen() but highest bit of char to detect multibyte char.
   6733   Display value of multibyte in statusline (also for other systems).
   6734 - mouse button was not initialized properly to MOUSE_LEFT when
   6735   USE_CTRLCLICKMENU not defined.
   6736 - With Japanese SJIS characters: Make "w", "b", and "e" work
   6737   properly.  (Kenichi Asai)
   6738 - Replaced old CodeWarrior file os_mac.CW9.hqx with os_mac.cw5.sit.hqx.
   6739 
   6740 Fixes for VMS: (Zoltan Arpadffy) (also see patch 5.6.045 below)
   6741 - Added Makefile_vms.mms and vimrc.vms to src/testdir to be able to run the
   6742   tests.
   6743 - Various fixes.
   6744 - Set 'undolevels' to 1000 by default.
   6745 - Made mch_settitle() equivalent to the one in os_unix.c.
   6746 
   6747 RiscOS: A few prototypes for os_riscos.c were outdated.  Generate prototypes
   6748 automatically.
   6749 
   6750 
   6751 Previously released patches:
   6752 
   6753 Patch 5.6.001
   6754 Problem:    When using "set bs=0 si cin", Inserting "#<BS>" or "}<BS>" which
   6755 	    reduces the indent doesn't delete the "#" or "}". (Lorton)
   6756 Solution:   Adjust ai_col in ins_try_si().
   6757 Files:	    src/edit.c
   6758 
   6759 Patch 5.6.002
   6760 Problem:    When using the vim.vim syntax file, a comment with all uppercase
   6761 	    characters causes a hang.
   6762 Solution:   Adjust pattern for vimCommentTitle (Charles Campbell)
   6763 Files:	    runtime/syntax/vim.vim
   6764 
   6765 Patch 5.6.003
   6766 Problem:    GTK GUI: Loading a user defined toolbar bitmap gives a warning
   6767 	    about the colormap.  Probably because the window has not been
   6768 	    opened yet.
   6769 Solution:   Use gdk_pixmap_colormap_create_from_xpm() to convert the xpm file.
   6770 	    (Keith Radebaugh)
   6771 Files:	    src/gui_gtk.c
   6772 
   6773 Patch 5.6.004 (extra)
   6774 Problem:    Win32 GUI with IME: When setting 'guifont' to "*", the font
   6775 	    requester appears twice.
   6776 Solution:   In gui_mch_init_font() don't call get_logfont() but copy
   6777 	    norm_logfont from fh. (Yasuhiro Matsumoto)
   6778 Files:	    src/gui_w32.c
   6779 
   6780 Patch 5.6.005
   6781 Problem:    When 'winminheight' is zero, CTRL-W - with a big number causes a
   6782 	    crash.  (David Kotchan)
   6783 Solution:   Check for negative window height in win_setheight().
   6784 Files:	    src/window.c
   6785 
   6786 Patch 5.6.006
   6787 Problem:    GTK GUI: Bold font cannot always be used.  Memory is freed too
   6788 	    early in gui_mch_init_font().
   6789 Solution:   Move call to g_free() to after where sdup is used. (Artem Hodyush)
   6790 Files:	    src/gui_gtk_x11.c
   6791 
   6792 Patch 5.6.007 (extra)
   6793 Problem:    Win32 IME: Font is not changed when screen font is changed. And
   6794 	    IME composition window does not trace the cursor.
   6795 Solution:   Initialize IME font.  When cursor is moved, set IME composition
   6796 	    window with ImeSetCompositionWindow().  Add call to
   6797 	    ImmReleaseContext() in several places. (Taro Muraoka)
   6798 Files:	    src/gui.c, src/gui_w32.c, src/proto/gui_w32.pro
   6799 
   6800 Patch 5.6.008 (extra)
   6801 Problem:    Win32: When two files exist with the same name but different case
   6802 	    (through NFS or Samba), fixing the file name case could cause the
   6803 	    wrong one to be edited.
   6804 Solution:   Prefer a perfect match above a match while ignoring case in
   6805 	    fname_case().  (Flemming Madsen)
   6806 Files:	    src/os_win32.c
   6807 
   6808 Patch 5.6.009 (extra)
   6809 Problem:    Win32 GUI: Garbage in Windows Explorer help line when selecting
   6810 	    "Edit with Vim" popup menu entry.
   6811 Solution:   Only return the help line when called with the GCS_HELPTEXT flag.
   6812 	    (Tianmiao Hu)
   6813 Files:	    GvimExt/gvimext.cpp
   6814 
   6815 Patch 5.6.010
   6816 Problem:    A file name which contains a TAB was not read correctly from the
   6817 	    viminfo file and the ":ls" listing was not aligned properly.
   6818 Solution:   Parse the buffer list lines in the viminfo file from the end
   6819 	    backwards.  Count a Tab for two characters to align the ":ls" list.
   6820 Files:	    src/buffer.c
   6821 
   6822 Patch 5.6.011
   6823 Problem:    When 'columns' is huge (using a tiny font) and 'statusline' is
   6824 	    used, Vim can crash.
   6825 Solution:   Limit maxlen to MAXPATHL in win_redr_custom(). (John Mullin)
   6826 Files:	    src/screen.c
   6827 
   6828 Patch 5.6.012
   6829 Problem:    When using "zsh" for /bin/sh, toolcheck may hang until "exit" is
   6830 	    typed. (Kuratczyk)
   6831 Solution:   Add "-c exit" when checking for the shell version.
   6832 Files:	    src/toolcheck
   6833 
   6834 Patch 5.6.013
   6835 Problem:    Multibyte char in tooltip is broken.
   6836 Solution:   Consider multibyte char in replace_termcodes(). (Taro Muraoka)
   6837 Files:      src/term.c
   6838 
   6839 Patch 5.6.014
   6840 Problem:    When cursor is at the end of line and the character under cursor
   6841 	    is a multibyte character, "yl" doesn't yank 1 multibyte-char.
   6842 	    (Takuhiro Nishioka)
   6843 Solution:   Recognize a multibyte-char at end-of-line correctly in oneright().
   6844 	    (Taro Muraoka)
   6845 	    Also: make "+quickfix" in ":version" output appear alphabetically.
   6846 Files:	    src/edit.c
   6847 
   6848 Patch 5.6.015
   6849 Problem:    New xterm delete key sends <Esc>[3~ by default.
   6850 Solution:   Added <kDel> and <kIns> to make the set of keypad keys complete.
   6851 Files:	    src/edit.c, src/ex_getln.c, src/keymap.h, src/misc1.c,
   6852 	    src/misc2.c, src/normal.c, src/os_unix.c, src/term.c
   6853 
   6854 Patch 5.6.016
   6855 Problem:    When deleting a search string from history from inside a mapping,
   6856 	    another entry is deleted too. (Benji Fisher)
   6857 Solution:   Reset last_maptick when deleting the last entry of the search
   6858 	    history.  Also: Increment maptick when starting a mapping from
   6859 	    typed characters to avoid a just added search string being
   6860 	    overwritten or removed from history.
   6861 Files:	    src/ex_getln.c, src/getchar.c
   6862 
   6863 Patch 5.6.017
   6864 Problem:    ":s/e/\^M/" should replace an "e" with a CTRL-M, not split the
   6865 	    line. (Calder)
   6866 Solution:   Replace the backslash with a CTRL-V internally. (Stephen P. Wall)
   6867 Files:	    src/ex_cmds.c
   6868 
   6869 Patch 5.6.018
   6870 Problem:    ":help [:digit:]" takes a long time to jump to the wrong place.
   6871 Solution:   Insert a backslash to avoid the special meaning of '[]'.
   6872 Files:	    src/ex_cmds.c
   6873 
   6874 Patch 5.6.019
   6875 Problem:    "snd.c", "snd.java", etc. were recognized as "mail" filetype.
   6876 Solution:   Make pattern for mail filetype more strict.
   6877 Files:	    runtime/filetype.vim
   6878 
   6879 Patch 5.6.020 (extra)
   6880 Problem:    The DJGPP version eats processor time (Walter Briscoe).
   6881 Solution:   Call __dpmi_yield() in the busy-wait loop.
   6882 Files:	    src/os_msdos.c
   6883 
   6884 Patch 5.6.021
   6885 Problem:    When 'selection' is "exclusive", a double mouse click in Insert
   6886 	    mode doesn't select last char in line. (Lutz)
   6887 Solution:   Allow leaving the cursor on the NUL past the line in this case.
   6888 Files:	    src/edit.c
   6889 
   6890 Patch 5.6.022
   6891 Problem:    ":e \~<Tab>" expands to ":e ~\$ceelen", which doesn't work.
   6892 Solution:   Re-insert the backslash before the '~'.
   6893 Files:	    src/ex_getln.c
   6894 
   6895 Patch 5.6.023 (extra)
   6896 Problem:    Various warnings for the Ming compiler.
   6897 Solution:   Changes to avoid the warnings. (Bill McCarthy)
   6898 Files:	    src/ex_cmds.c, src/gui_w32.c, src/os_w32exe.c, src/os_win32.c,
   6899 	    src/syntax.c, src/vim.rc
   6900 
   6901 Patch 5.6.024 (extra)
   6902 Problem:    Win32 console: Entering CTRL-_ requires the shift key. (Kotchan)
   6903 Solution:   Specifically catch keycode 0xBD, like the GUI.
   6904 Files:	    src/os_win32.c
   6905 
   6906 Patch 5.6.025
   6907 Problem:    GTK GUI: Starting the GUI could be interrupted by a SIGWINCH.
   6908 	    (Nils Lohner)
   6909 Solution:   Repeat the read() call to get the gui_in_use value when
   6910 	    interrupted by a signal.
   6911 Files:	    src/gui.c
   6912 
   6913 Patch 5.6.026 (extra)
   6914 Problem:    Win32 GUI: Toolbar bitmaps are searched for in
   6915 	    $VIMRUNTIME/bitmaps, while GTK looks in $VIM/bitmaps. (Keith
   6916 	    Radebaugh)
   6917 Solution:   Use $VIM/bitmaps for both, because these are not part of the
   6918 	    distribution but defined by the user.
   6919 Files:	    src/gui_w32.c, runtime/doc/gui.txt
   6920 
   6921 Patch 5.6.027
   6922 Problem:    TCL: Crash when using a Tcl script (reported for Win32).
   6923 Solution:   Call Tcl_FindExecutable() in main(). (Brent Fulgham)
   6924 Files:	    src/main.c
   6925 
   6926 Patch 5.6.028
   6927 Problem:    Xterm patch level 126 sends codes for mouse scroll wheel.
   6928 	    Fully works with xterm patch level 131.
   6929 Solution:   Recognize the codes for button 4 (0x60) and button 5 (0x61).
   6930 Files:	    src/term.c
   6931 
   6932 Patch 5.6.029
   6933 Problem:    GTK GUI: Shortcut keys cannot be used for a dialog. (Johannes
   6934 	    Zellner)
   6935 Solution:   Add support for shortcut keys. (Marcin Dalecki)
   6936 Files:	    src/gui_gtk.c
   6937 
   6938 Patch 5.6.030
   6939 Problem:    When closing a window and 'ea' is set, Vim can crash. (Yasuhiro
   6940 	    Matsumoto)
   6941 Solution:   Set "curbuf" to a valid value in win_close().
   6942 Files:	    src/window.c
   6943 
   6944 Patch 5.6.031
   6945 Problem:    Multi-byte: When a double-byte character ends in CSI, Vim waits
   6946 	    for another character to be typed.
   6947 Solution:   Recognize the CSI as the second byte of a character and don't wait
   6948 	    for another one. (Yasuhiro Matsumoto)
   6949 Files:	    src/getchar.c
   6950 
   6951 Patch 5.6.032
   6952 Problem:    Functions with an argument that is a line number don't all accept
   6953 	    ".", "$", etc. (Ralf Arens)
   6954 Solution:   Add get_art_lnum() and use it for setline(), line2byte() and
   6955 	    synID().
   6956 Files:	    src/eval.c
   6957 
   6958 Patch 5.6.033
   6959 Problem:    Multi-byte: "f " sometimes skips to the second space.  (Sung-Hyun
   6960 	    Nam)
   6961 Solution:   Change logic in searchc() to skip trailing byte of a double-byte
   6962 	    character.
   6963 	    Also: Ask for second byte when searching for double-byte
   6964 	    character. (Park Chong-Dae)
   6965 Files:	    src/search.c
   6966 
   6967 Patch 5.6.034 (extra)
   6968 Problem:    Compiling with Borland C++ 5.5 fails on tolower() and toupper().
   6969 Solution:   Use TO_LOWER() and TO_UPPER() instead.  Also adjust the Makefile
   6970 	    to make using bcc 5.5 easier.
   6971 Files:	    src/edit.c, src/ex_docmd.c, src/misc1.c, src/Makefile.bor
   6972 
   6973 Patch 5.6.035
   6974 Problem:    Listing the"+comments" feature in the ":version" output depended
   6975 	    on the wrong ID. (Stephen P. Wall)
   6976 Solution:   Change "CRYPTV" to "COMMENTS".
   6977 Files:	    src/version.c
   6978 
   6979 Patch 5.6.036
   6980 Problem:    GTK GUI: Copy/paste text doesn't work between gvim and Eterm.
   6981 Solution:   Support TEXT and COMPOUND_TEXT selection targets. (ChiDeok Hwang)
   6982 Files:	    src/gui_gtk_x11.c
   6983 
   6984 Patch 5.6.037
   6985 Problem:    Multi-byte: Can't use "f" command with multibyte character in GUI.
   6986 Solution:   Enable XIM in Normal mode for the GUI. (Sung-Hyun Nam)
   6987 Files:	    src/gui_gtk_x11.c, src/multbyte.c
   6988 
   6989 Patch 5.6.038
   6990 Problem:    Multi-clicks in GUI are interpreted as a mouse wheel click.  When
   6991 	    'ttymouse' is "xterm" a mouse click is interpreted as a mouse
   6992 	    wheel click.
   6993 Solution:   Don't recognize the mouse wheel in check_termcode() in the GUI.
   6994 	    Use 0x43 for a mouse drag in do_xterm_trace(), not 0x63.
   6995 Files:	    src/term.c, src/os_unix.c
   6996 
   6997 Patch 5.6.039
   6998 Problem:    Motif GUI under KDE: When trying to logout, Vim hangs up the
   6999 	    system. (Hermann Rochholz)
   7000 Solution:   When handling the WM_SAVE_YOURSELF event, set the WM_COMMAND
   7001 	    property of the window to let the session manager know we finished
   7002 	    saving ourselves.
   7003 Files:	    src/gui_x11.c
   7004 
   7005 Patch 5.6.040
   7006 Problem:    When using ":s" command, matching the regexp is done twice.
   7007 Solution:   After copying the matched line, adjust the pointers instead of
   7008 	    finding the match again. (Loic Grenie)  Added vim_regnewptr().
   7009 Files:	    src/ex_cmds.c, src/regexp.c, src/proto/regexp.pro
   7010 
   7011 Patch 5.6.041
   7012 Problem:    GUI: Athena, Motif and GTK don't give more than 10 dialog buttons.
   7013 Solution:   Remove the limit on the number of buttons.
   7014 	    Also support the 'v' flag in 'guioptions'.
   7015 	    For GTK: Center the buttons.
   7016 Files:	    src/gui_athena.c, src/gui_gtk.c, src/gui_motif.c
   7017 
   7018 Patch 5.6.042
   7019 Problem:    When doing "vim -u vimrc" and vimrc contains ":q", the cursor in
   7020 	    the terminal can remain off.
   7021 Solution:   Call cursor_on() in mch_windexit().
   7022 Files:	    src/os_unix.c
   7023 
   7024 Patch 5.6.043 (extra)
   7025 Problem:    Win32 GUI: When selecting guifont with the dialog, 'guifont'
   7026 	    doesn't include the bold or italic attributes.
   7027 Solution:   Append ":i" and/or ":b" to 'guifont' in gui_mch_init_font().
   7028 Files:	    src/gui_w32.c
   7029 
   7030 Patch 5.6.044 (extra)
   7031 Problem:    MS-DOS and Windows: The line that dosinst.exe appends to
   7032 	    autoexec.bat to set PATH is wrong when Vim is in a directory with
   7033 	    an embedded space.
   7034 Solution:   Use double quotes for the value when there is an embedded space.
   7035 Files:	    src/dosinst.c
   7036 
   7037 Patch 5.6.045 (extra) (fixed version)
   7038 Problem:    VMS: Various small problems.
   7039 Solution:   Many small changes. (Zoltan Arpadffy)
   7040 	    File name modifier ":h" keeps the path separator.
   7041 	    File name modifier ":e" also removes version.
   7042 	    Compile with MAX_FEAT by default.
   7043 	    When checking for autocommands ignore version in file name.
   7044 	    Be aware of file names being case insensitive.
   7045 	    Added vt320 builtin termcap.
   7046 	    Be prepared for an empty default_vim_dir.
   7047 Files:	    runtime/gvimrc_example.vim, runtime/vimrc_example.vim,
   7048 	    runtime/doc/os_vms.txt, src/eval.c, src/feature.h, src/fileio.c,
   7049 	    src/gui_motif.c, src/gui_vms_conf.h, src/main.c, src/memline.c,
   7050 	    src/misc1.c, src/option.c, src/os_vms_conf.h, src/os_vms.c,
   7051 	    src/os_vms.h, src/os_vms.mms, src/tag.c, src/term.c, src/version.c
   7052 
   7053 Patch 5.6.046
   7054 Problem:    Systems with backslash in file name: With 'shellslash' set, "vim
   7055 	    */*.c" only uses a slash for the first file name.  (Har'El)
   7056 Solution:   Fix slashes in file name arguments after reading the vimrc file.
   7057 Files:	    src/option.c
   7058 
   7059 Patch 5.6.047
   7060 Problem:    $CPPFLAGS is not passed on to ctags configure.
   7061 Solution:   Add it. (Walter Briscoe)
   7062 Files:	    src/config.mk.in, src/Makefile
   7063 
   7064 Patch 5.6.048
   7065 Problem:    CTRL-R in Command-line mode is documented to insert text as typed,
   7066 	    but inserts text literally.
   7067 Solution:   Make CTRL-R insert text as typed, use CTRL-R CTRL-R to insert
   7068 	    literally.  This is consistent with Insert mode.  But characters
   7069 	    that end Command-line mode are inserted literally.
   7070 Files:	    runtime/doc/index.txt, runtime/doc/cmdline.txt, src/ex_getln.c,
   7071 	    src/ops.c, src/proto/ops.pro
   7072 
   7073 Patch 5.6.049
   7074 Problem:    Documentation for [!] after ":ijump" is wrong way around. (Benji
   7075 	    Fisher)
   7076 Solution:   Fix the documentation.  Also improve the code to check for a match
   7077 	    after a /* */ comment.
   7078 Files:	    runtime/doc/tagsearch.txt, src/search.c
   7079 
   7080 Patch 5.6.050
   7081 Problem:    Replacing is wrong when replacing a single-byte char with
   7082 	    double-byte char or the other way around.
   7083 Solution:   Shift the text after the character when it is replaced.
   7084 	    (Yasuhiro Matsumoto)
   7085 Files:	    src/normal.c, src/misc1.c
   7086 
   7087 Patch 5.6.051
   7088 Problem:    ":tprev" and ":tnext" don't give an error message when trying to
   7089 	    go before the first or beyond the last tag. (Robert Webb)
   7090 Solution:   Added error messages.  Also: Delay a second when a file-read
   7091 	    message is going to overwrite an error message, otherwise it won't
   7092 	    be seen.
   7093 Files:	    src/fileio.c, src/tag.c
   7094 
   7095 Patch 5.6.052
   7096 Problem:    Multi-byte: When an Ex command has a '|' or '"' as a second byte,
   7097 	    it terminates the command.
   7098 Solution:   Skip second byte of multibyte char when checking for '|' and '"'.
   7099 	    (Asai Kenichi)
   7100 Files:	    src/ex_docmd.c
   7101 
   7102 Patch 5.6.053
   7103 Problem:    CTRL-] doesn't work on a tag that contains a '|'. (Cesar Crusius)
   7104 Solution:   Escape '|', '"' and '\' in tag names when using CTRL-] and also
   7105 	    for command-line completion.
   7106 Files:	    src/ex_getln.c, src/normal.c
   7107 
   7108 Patch 5.6.054
   7109 Problem:    When using ":e" and ":e #" the cursor is put in the first column
   7110 	    when 'startofline' is set. (Cordell)
   7111 Solution:   Use the last known column when 'startofline' is set.
   7112 	    Also, use ECMD_LAST more often to simplify the code.
   7113 Files:	    src/buffer.c, src/ex_cmds.c, src/ex_docmd.c, src/proto/buffer.pro
   7114 
   7115 Patch 5.6.055
   7116 Problem:    When 'statusline' only contains a text without "%" and doesn't fit
   7117 	    in the window, Vim crashes. (Ron Aaron)
   7118 Solution:   Don't use the pointer for the first item if there is no item.
   7119 Files:	    src/screen.c
   7120 
   7121 Patch 5.6.056 (extra)
   7122 Problem:    MS-DOS: F11 and F12 don't work when 'bioskey' is set.
   7123 Solution:   Use enhanced keyboard functions. (Vince Negri)
   7124 	    Detect presence of enhanced keyboard and set bioskey_read and
   7125 	    bioskey_ready.
   7126 Files:	    src/os_msdos.c
   7127 
   7128 Patch 5.6.057 (extra)
   7129 Problem:    Win32 GUI: Multi-byte characters are wrong in dialogs and tear-off
   7130 	    menus.
   7131 Solution:   Use system font instead of a fixed font. (Matsumoto, Muraoka)
   7132 Files:	    src/gui_w32.c
   7133 
   7134 Patch 5.6.058
   7135 Problem:    When the 'a' flag is not in 'guioptions', non-Windows systems
   7136 	    copy Visually selected text to the clipboard/selection on a yank
   7137 	    or delete command anyway.  On Windows it isn't done even when the
   7138 	    'a' flag is included.
   7139 Solution:   Respect the 'a' flag in 'guioptions' on all systems.
   7140 Files:	    src/normal.c
   7141 
   7142 Patch 5.6.059 (extra)
   7143 Problem:    When moving the cursor over italic text and the characters spill
   7144 	    over to the cell on the right, that spill-over is deleted.
   7145 	    Noticed in the Win32 GUI, can happen on other systems too.
   7146 Solution:   Redraw italic text starting from a blank, like this is already
   7147 	    done for bold text. (Vince Negri)
   7148 Files:	    src/gui.c, src/gui.h, src/gui_w32.c
   7149 
   7150 Patch 5.6.060
   7151 Problem:    Some bold characters spill over to the cell on the left, that
   7152 	    spill-over can remain sometimes.
   7153 Solution:   Redraw a character when the next character was bold and needs
   7154 	    redrawing. (Robert Webb)
   7155 Files:	    src/screen.c
   7156 
   7157 Patch 5.6.061
   7158 Problem:    When xterm sends 8-bit controls, recognizing the version response
   7159 	    doesn't work.
   7160 	    When using CSI instead of <Esc>[ for the termcap color codes,
   7161 	    using 16 colors doesn't work. (Neil Bird)
   7162 Solution:   Also accept CSI in place of <Esc>[ for the version string.
   7163 	    Also check for CSI when handling colors 8-15 in term_color().
   7164 	    Use CSI for builtin xterm termcap entries when 'term' contains
   7165 	    "8bit".
   7166 Files:	    runtime/doc/term.txt, src/ex_cmds.c, src/option.c, src/term.c,
   7167 	    src/os_unix.c, src/proto/option.pro, src/proto/term.pro
   7168 
   7169 Patch 5.6.062
   7170 Problem:    The documentation says that setting 'smartindent' doesn't have an
   7171 	    effect when 'cindent' is set, but it does make a difference for
   7172 	    lines starting with "#". (Neil Bird)
   7173 Solution:   Really ignore 'smartindent' when 'cindent' is set.
   7174 Files:	    src/misc1.c, src/ops.c
   7175 
   7176 Patch 5.6.063
   7177 Problem:    Using "I" in Visual-block mode doesn't accept a count. (Johannes
   7178 	    Zellner)
   7179 Solution:   Pass the count on to do_insert() and edit(). (Allan Kelly)
   7180 Files:	    src/normal.c, src/ops.c, src/proto/ops.pro
   7181 
   7182 Patch 5.6.064
   7183 Problem:    MS-DOS and Win32 console: Mouse doesn't work correctly after
   7184 	    including patch 5.6.28. (Vince Negri)
   7185 Solution:   Don't check for mouse scroll wheel when the mouse code contains
   7186 	    the number of clicks.
   7187 Files:	    src/term.c
   7188 
   7189 Patch 5.6.065
   7190 Problem:    After moving the cursor around in Insert mode, typing a space can
   7191 	    still trigger an abbreviation. (Benji Fisher)
   7192 Solution:   Don't check for an abbreviation after moving around in Insert mode.
   7193 Files:	    src/edit.c
   7194 
   7195 Patch 5.6.066
   7196 Problem:    Still a few bold character spill-over remains after patch 60.
   7197 Solution:   Clear character just in front of blanking out rest of the line.
   7198 	    (Robert Webb)
   7199 Files:	    src/screen.c
   7200 
   7201 Patch 5.6.067
   7202 Problem:    When a file name contains a NL, the viminfo file is corrupted.
   7203 Solution:   Use viminfo_writestring() to convert the NL to CTRL-V n.
   7204 	    Also fix the Buffers menu and listing a menu name with a newline.
   7205 Files:	    runtime/menu.vim, src/buffer.c, src/mark.c, src/menu.c
   7206 
   7207 Patch 5.6.068
   7208 Problem:    Compiling the Perl interface doesn't work with Perl 5.6.0.
   7209 	    (Bernhard Rosenkraenzer)
   7210 Solution:   Also check xs_apiversion for the version number when prepending
   7211 	    defines for PL_*.
   7212 Files:	    src/Makefile
   7213 
   7214 Patch 5.6.069
   7215 Problem:    "go" doesn't always end up at the right character when
   7216 	    'fileformat' is "dos". (Bruce DeVisser)
   7217 Solution:   Correct computations in ml_find_line_or_offset().
   7218 Files:	    src/memline.
   7219 
   7220 Patch 5.6.070 (depends on 5.6.068)
   7221 Problem:    Compiling the Perl interface doesn't work with Perl 5.6.0.
   7222 	    (Bernhard Rosenkraenzer)
   7223 Solution:   Simpler check instead of the one from patch 68.
   7224 Files:	    src/Makefile
   7225 
   7226 Patch 5.6.071
   7227 Problem:    "A" in Visual block mode on a Tab positions the cursor one char to
   7228 	    the right. (Michael Haumann)
   7229 Solution:   Correct the column computation in op_insert().
   7230 Files:	    src/ops.c
   7231 
   7232 Patch 5.6.072
   7233 Problem:    When starting Vim with "vim +startinsert", it enters Insert mode
   7234 	    only after typing the first command. (Andrew Pimlott)
   7235 Solution:   Insert a dummy command in the stuff buffer.
   7236 Files:	    src/main.c
   7237 
   7238 Patch 5.6.073 (extra) (depends on 5.6.034)
   7239 Problem:    Win32 GUI: When compiled with Bcc 5.5 menus don't work.
   7240 	    In dosinst.c toupper() and tolower() give an "internal compiler
   7241 	    error" for Bcc 5.5.
   7242 Solution:   Define WINVER to 4 to avoid compiling for Windows 2000. (Dan
   7243 	    Sharp)  Also cleaned up compilation arguments.
   7244 	    Use our own implementation of toupper() in dosinst.c.  Use
   7245 	    mytoupper() instead of tolower().
   7246 Files:	    src/Makefile.bor, src/dosinst.c
   7247 
   7248 Patch 5.6.074 (extra)
   7249 Problem:    Entering CSI directly doesn't always work, because it's recognized
   7250 	    as the start of a special key.  Mostly a problem with multibyte
   7251 	    in the GUI.
   7252 Solution:   Use K_CSI for a typed CSI character.  Use <CSI> for a normal CSI,
   7253 	    <xCSI> for a CSI typed in the GUI.
   7254 Files:	    runtime/doc/intro.txt, src/getchar.c, src/gui_amiga.c,
   7255 	    src/gui_gtk_x11.c, src/gui_mac.c, src/gui_riscos.c, src/gui_w32.c,
   7256 	    src/keymap.h, src/misc2.c
   7257 
   7258 Patch 5.6.075
   7259 Problem:    When using "I" or "A" in Visual block mode while 'sts' is set may
   7260 	    change spaces to a Tab the inserted text is not correct. (Mike
   7261 	    Steed)  And some other problems when using "A" to append after the
   7262 	    end of the line.
   7263 Solution:   Check for change in spaces/tabs after inserting the text.  Append
   7264 	    spaces to fill the gap between the end-of-line and the right edge
   7265 	    of the block.
   7266 Files:	    src/ops.c
   7267 
   7268 Patch 5.6.076
   7269 Problem:    GTK GUI: Mapping <M-Space> doesn't work.
   7270 Solution:   Don't use the "Alt" modifier twice in key_press_event().
   7271 Files:	    src/gui_gtk_x11.c
   7272 
   7273 Patch 5.6.077
   7274 Problem:    GUI: When interrupting an external program with CTRL-C, gvim might
   7275 	    crash. (Benjamin Korvemaker)
   7276 Solution:   Avoid using a NULL pointer in ui_inchar_undo().
   7277 Files:	    src/ui.c
   7278 
   7279 Patch 5.6.078
   7280 Problem:    Locale doesn't always work on FreeBSD. (David O'Brien)
   7281 Solution:   Link with the "xpg4" library when available.
   7282 Files:	    src/configure.in, src/configure
   7283 
   7284 Patch 5.6.079
   7285 Problem:    Vim could crash when several Tcl interpreters are created and
   7286 	    destroyed.
   7287 Solution:   handle the "exit" command and nested ":tcl" commands better. (Ingo
   7288 	    Wilken)
   7289 Files:	    runtime/doc/if_tcl.txt, src/if_tcl.c
   7290 
   7291 Patch 5.6.080
   7292 Problem:    When jumping to a tag, generating the tags file and jumping to the
   7293 	    same tag again uses the old search pattern. (Sung-Hyun Nam)
   7294 Solution:   Flush cached tag matches when executing an external command.
   7295 Files:	    src/misc2.c, src/proto/tag.pro, src/tag.c
   7296 
   7297 Patch 5.6.081
   7298 Problem:    ":syn include" uses a level for the included file, this confuses
   7299 	    contained items included at the same level.
   7300 Solution:   Use a unique tag for each included file.  Changed sp_syn_inc_lvl
   7301 	    to sp_syn_inc_tag. (Scott Bigham)
   7302 Files:	    src/syntax.c, src/structs.h
   7303 
   7304 Patch 5.6.082
   7305 Problem:    When using cscope, Vim can crash.
   7306 Solution:   Initialize tag_fname in find_tags(). (Anton Blanchard)
   7307 Files:	    src/tag.c
   7308 
   7309 Patch 5.6.083 (extra)
   7310 Problem:    Win32: The visual beep can't be seen. (Eric Roesinger)
   7311 Solution:   Flush the output before waiting with GdiFlush(). (Maurice S. Barnum)
   7312 	    Also: Allow specifying the delay in t_vb for the GUI.
   7313 Files:	    src/gui.c, src/gui_amiga.c, src/gui_gtk_x11.c, src/gui_mac.c,
   7314 	    src/gui_riscos.c, src/gui_w32.c, src/gui_x11.c, src/gui_beos.cc,
   7315 	    src/proto/gui_amiga.pro, src/proto/gui_gtk_x11.pro,
   7316 	    src/proto/gui_mac.pro, src/proto/gui_riscos.pro,
   7317 	    src/proto/gui_w32.pro, src/proto/gui_x11.pro,
   7318 	    src/proto/gui_beos.pro
   7319 
   7320 Patch 5.6.084 (depends on 5.6.074)
   7321 Problem:    GUI: Entering CSI doesn't always work for Athena and Motif.
   7322 Solution:   Handle typed CSI as <xCSI> (forgot this bit in 5.6.074).
   7323 Files:	    src/gui_x11.c
   7324 
   7325 Patch 5.6.085
   7326 Problem:    Multi-byte: Using "r" to replace a double-byte char with a
   7327 	    single-byte char moved the cursor one character. (Matsumoto)
   7328 	    Also, using a count when replacing a single-byte char with a
   7329 	    double-byte char didn't work.
   7330 Solution:   Don't use del_char() to delete the second byte.
   7331 	    Get "ptr" again after calling ins_char().
   7332 Files:	    src/normal.c
   7333 
   7334 Patch 5.6.086 (extra)
   7335 Problem:    Win32: When using libcall() and the returned value is not a valid
   7336 	    pointer, Vim crashes.
   7337 Solution:   Use IsBadStringPtr() to check if the pointer is valid.
   7338 Files:	    src/os_win32.c
   7339 
   7340 Patch 5.6.087
   7341 Problem:    Multi-byte: Commands and messages with multibyte characters are
   7342 	    displayed wrong.
   7343 Solution:   Detect double-byte characters. (Yasuhiro Matsumoto)
   7344 Files:	    src/ex_getln.c, src/message.c, src/misc2.c, src/screen.c
   7345 
   7346 Patch 5.6.088
   7347 Problem:    Multi-byte with Motif or Athena: The message "XIM requires
   7348 	    fontset" is annoying when Vim was compiled with XIM support but it
   7349 	    is not being used.
   7350 Solution:   Remove that message.
   7351 Files:	    src/multbyte.c
   7352 
   7353 Patch 5.6.089
   7354 Problem:    On non-Unix systems it's possible to overwrite a read-only file
   7355 	    without using "!".
   7356 Solution:   Check if the file permissions allow overwriting before moving the
   7357 	    file to become the backup file.
   7358 Files:	    src/fileio.c
   7359 
   7360 Patch 5.6.090
   7361 Problem:    When editing a file in "/home/dir/home/dir" this was replaced with
   7362 	    "~~".  (Andreas Jellinghaus)
   7363 Solution:   Replace the home directory only once in home_replace().
   7364 Files:	    src/misc1.c
   7365 
   7366 Patch 5.6.091
   7367 Problem:    When editing many "no file" files, can't create swap file, because
   7368 	    .sw[a-p] have all been used.  (Neil Bird)
   7369 Solution:   Also use ".sv[a-z]", ".su[a-z]", etc.
   7370 Files:	    src/memline.c
   7371 
   7372 Patch 5.6.092
   7373 Problem:    FreeBSD: When setting $TERM to a non-valid terminal name, Vim
   7374 	    hangs in tputs().
   7375 Solution:   After tgetent() returns an error code, call it again with the
   7376 	    terminal name "dumb".  This apparently creates an environment in
   7377 	    which tputs() doesn't fail.
   7378 Files:	    src/term.c
   7379 
   7380 Patch 5.6.093 (extra)
   7381 Problem:    Win32 GUI: "ls | gvim -" will show a message box about reading
   7382 	    stdin when Vim exits. (Donohue)
   7383 Solution:   Don't write a message about the file read from stdin until the GUI
   7384 	    has started.
   7385 Files:	    src/fileio.c
   7386 
   7387 Patch 5.6.094
   7388 Problem:    Problem with multibyte string for ":echo var".
   7389 Solution:   Check for length in msg_outtrans_len_attr(). (Sung-Hyun Nam)
   7390 	    Also make do_echo() aware of multibyte characters.
   7391 Files:	    src/eval.c, src/message.c
   7392 
   7393 Patch 5.6.095
   7394 Problem:    With an Emacs TAGS file that include another a relative path
   7395 	    doesn't always work.
   7396 Solution:   Use expand_tag_fname() on the name of the included file.
   7397 	    (Utz-Uwe Haus)
   7398 Files:	    src/tag.c
   7399 
   7400 Patch 5.6.096
   7401 Problem:    Unix: When editing many files, startup can be slow. (Paul
   7402 	    Ackersviller)
   7403 Solution:   Halve the number of stat() calls used to add a file to the buffer
   7404 	    list.
   7405 Files:	    src/buffer.c
   7406 
   7407 Patch 5.7a.001
   7408 Problem:    GTK doesn't respond on drag&drop from ROX-Filer.
   7409 Solution:   Add "text/uri-list" target. (Thomas Leonard)
   7410 	    Also: fix problem with checking for trash arguments.
   7411 Files:	    src/gui_gtk_x11.c
   7412 
   7413 Patch 5.7a.002
   7414 Problem:    Multi-byte: 'showmatch' is performed when second byte of an
   7415 	    inserted double-byte char is a paren or brace.
   7416 Solution:   Check IsTrailByte() before calling showmatch(). (Taro Muraoka)
   7417 Files:	    src/misc1.c
   7418 
   7419 Patch 5.7a.003
   7420 Problem:    Multi-byte: After using CTRL-O in Insert mode with the cursor at
   7421 	    the end of the line on a multibyte character the cursor moves to
   7422 	    the left.
   7423 Solution:   Check for multibyte character at end-of-line. (Taro Muraoka)
   7424 	    Also: fix cls() to detect a double-byte character. (Chong-Dae Park)
   7425 Files:	    src/edit.c, src/search.c
   7426 
   7427 Patch 5.7a.004
   7428 Problem:    When reporting the search pattern offset, the string could be
   7429 	    unterminated, which may cause a crash.
   7430 Solution:   Terminate the string for the search offset. (Stephen P. Wall)
   7431 Files:	    src/search.c
   7432 
   7433 Patch 5.7a.005
   7434 Problem:    When ":s//~/" doesn't find a match it reports "[NULL]" for the
   7435 	    pattern.
   7436 Solution:   Use get_search_pat() to obtain the actually used pattern.
   7437 Files:	    src/ex_cmds.c, src/proto/search.pro, src/search.c
   7438 
   7439 Patch 5.7a.006 (extra)
   7440 Problem:    VMS: Various problems, also with the VAXC compiler.
   7441 Solution:   In many places use the Unix code for VMS too.
   7442 	    Added time, date and compiler version to version message.
   7443 	    (Zoltan Arpadffy)
   7444 Files:	    src/ex_cmds.c, src/ex_docmd.c, src/globals.h, src/gui_vms_conf.h,
   7445 	    src/main.c, src/message.c, src/misc1.c, src/os_vms.c,
   7446 	    src/os_vms.h, src/os_vms.mms, src/os_vms_conf.h,
   7447 	    src/proto/os_vms.pro, src/proto/version.pro, src/term.c,
   7448 	    src/version.c, src/xxd/os_vms.mms, src/xxd/xxd.c
   7449 
   7450 Patch 5.7a.007
   7451 Problem:    Motif and Athena GUI: CTRL-@ is interpreted as CTRL-C.
   7452 Solution:   Only use "intr_char" when it has been set.
   7453 Files:	    src/gui_x11.c
   7454 
   7455 Patch 5.7a.008
   7456 Problem:    GTK GUI: When using CTRL-L the screen is redrawn twice, causing
   7457 	    trouble for bold characters.  Also happens when moving with the
   7458 	    scrollbar.  Best seen when 'writedelay' is non-zero.
   7459 	    When starting the GUI with ":gui" the screen is redrawn once with
   7460 	    the wrong colors.
   7461 Solution:   Only set the geometry hints when the window size really changed.
   7462 	    This avoids setting it each time the scrollbar is forcefully
   7463 	    redrawn.
   7464 	    Don't redraw in expose_event() when gui.starting is still set.
   7465 Files:	    src/gui_gtk_x11.c
   7466 
   7467 
   7468 ==============================================================================
   7469 VERSION 5.8						*version-5.8*
   7470 
   7471 Version 5.8 is a bug-fix version of 5.7.
   7472 
   7473 
   7474 Changed							*changed-5.8*
   7475 -------
   7476 
   7477 Ctags is no longer included with Vim.  It has grown into a project of its own.
   7478 You can find it here:  http://ctags.sf.net.  It is highly recommended as a Vim
   7479 companion when you are writing programs.
   7480 
   7481 
   7482 Added							*added-5.8*
   7483 -----
   7484 
   7485 New syntax files:
   7486 acedb		AceDB (Stewart Morris)
   7487 aflex		Aflex (Mathieu Clabaut)
   7488 antlr		Antlr (Mathieu Clabaut)
   7489 asm68k		68000 Assembly (Steve Wall)
   7490 automake	Automake (John Williams)
   7491 ayacc		Ayacc (Mathieu Clabaut)
   7492 b		B (Mathieu Clabaut)
   7493 bindzone	BIND zone (glory hump)
   7494 blank		Blank (Rafal Sulejman)
   7495 cfg		Configure files (Igor Prischepoff)
   7496 changelog	ChangeLog (Gediminas Paulauskas)
   7497 cl		Clever (Phil Uren)
   7498 crontab		Crontab (John Hoelzel)
   7499 csc		Essbase script (Raul Segura Acevedo)
   7500 cynlib		Cynlib(C++) (Phil Derrick)
   7501 cynpp		Cyn++ (Phil Derrick)
   7502 debchangelog	Debian Changelog (Wichert Akkerman)
   7503 debcontrol	Debian Control (Wichert Akkerman)
   7504 dns		DNS zone file (Jehsom)
   7505 dtml		Zope's DTML (Jean Jordaan)
   7506 dylan		Dylan, Dylan-intr and Dylan-lid (Brent Fulgham)
   7507 ecd		Embedix Component Description (John Beppu)
   7508 fgl		Informix 4GL (Rafal Sulejman)
   7509 foxpro		FoxPro (Powing Tse)
   7510 gsp		GNU Server Pages (Nathaniel Harward)
   7511 gtkrc		GTK rc (David Necas)
   7512 hercules	Hercules (Avant! Corporation) (Dana Edwards)
   7513 htmlos		HTML/OS by Aestiva (Jason Rust)
   7514 inittab		SysV process control (David Necas)
   7515 iss		Inno Setup (Dominique Stephan)
   7516 jam		Jam (Ralf Lemke)
   7517 jess		Jess (Paul Baleme)
   7518 lprolog		LambdaProlog (Markus Mottl)
   7519 ia64		Intel Itanium (parth malwankar)
   7520 kix		Kixtart (Nigel Gibbs)
   7521 mgp		MaGic Point (Gerfried Fuchs)
   7522 mason		Mason (HTML with Perl) (Andrew Smith)
   7523 mma		Mathematica (Wolfgang Waltenberger)
   7524 nqc		Not Quite C (Stefan Scherer)
   7525 omnimark	Omnimark (Paul Terray)
   7526 openroad	OpenROAD (Luis Moreno Serrano)
   7527 named		BIND configuration (glory hump)
   7528 papp		PApp (Marc Lehmann)
   7529 pfmain		Postfix main config (Peter Kelemen)
   7530 pic		PIC assembly (Aleksandar Veselinovic)
   7531 ppwiz		PPWizard (Stefan Schwarzer)
   7532 progress	Progress (Phil Uren)
   7533 psf		Product Specification File (Rex Barzee)
   7534 r		R (Tom Payne)
   7535 registry	MS-Windows registry (Dominique Stephan)
   7536 robots		Robots.txt (Dominique Stephan)
   7537 rtf		Rich Text Format (Dominique Stephan)
   7538 setl		SETL (Alex Poylisher)
   7539 sgmldecl	SGML Declarations (Daniel A. Molina W.)
   7540 sinda		Sinda input (Adrian Nagle)
   7541 sindacmp	Sinda compare (Adrian Nagle)
   7542 sindaout	Sinda output (Adrian Nagle)
   7543 smith		SMITH (Rafal Sulejman)
   7544 snobol4		Snobol 4 (Rafal Sulejman)
   7545 strace		Strace (David Necas)
   7546 tak		TAK input (Adrian Nagle)
   7547 takcmp		TAK compare (Adrian Nagle)
   7548 takout		TAK output (Adrian Nagle)
   7549 tasm		Turbo assembly (FooLman)
   7550 texmf		TeX configuration (David Necas)
   7551 trasys		Trasys input (Adrian Nagle)
   7552 tssgm		TSS Geometry (Adrian Nagle)
   7553 tssop		TSS Optics (Adrian Nagle)
   7554 tsscl		TSS Command line (Adrian Nagle)
   7555 virata		Virata Configuration Script (Manuel M.H. Stol)
   7556 vsejcl		VSE JCL (David Ondrejko)
   7557 wdiff		Wordwise diff (Gerfried Fuchs)
   7558 wsh		Windows Scripting Host (Paul Moore)
   7559 xkb		X Keyboard Extension (David Necas)
   7560 
   7561 Renamed php3 to php, it now also supports php4 (Lutz Eymers)
   7562 
   7563 Patch 5.7.015
   7564 Problem:    Syntax files for Vim 6.0 can't be used with 5.x.
   7565 Solution:   Add the "default" argument to the ":highlight" command: Ignore the
   7566 	    command if highlighting was already specified.
   7567 Files:	    src/syntax.c
   7568 
   7569 Generate the Syntax menu with makemenu.vim, so that it doesn't have to be done
   7570 when Vim is starting up.  Reduces the startup time of the GUI.
   7571 
   7572 
   7573 Fixed							*fixed-5.8*
   7574 -----
   7575 
   7576 Conversion of docs to HTML didn't convert "|tag|s" to a hyperlink.
   7577 
   7578 Fixed compiling under NeXT. (Jeroen C.M. Goudswaard)
   7579 
   7580 optwin.vim gave an error when used in Vi compatible mode ('cpo' contains 'C').
   7581 
   7582 Tcl interpreter: "buffer" command didn't check for presence of an argument.
   7583 (Dave Bodenstab)
   7584 
   7585 dosinst.c: Added checks for too long file name.
   7586 
   7587 Amiga: a file name starting with a colon was considered absolute but it isn't.
   7588 Amiga: ":pwd" added a slash when in the root of a drive.
   7589 
   7590 Macintosh: Warnings for unused variables. (Bernhard Pruemmer)
   7591 
   7592 Unix: When catching a deadly signal, handle it in such a way that it's
   7593 unlikely that Vim will hang.  Call _exit() instead of exit() in case of a
   7594 severe problem.
   7595 
   7596 Setting the window title from nothing to something didn't work after patch 29.
   7597 
   7598 Check for ownership of .exrc and .vimrc was done with stat().  Use lstat() as
   7599 well for extra security.
   7600 
   7601 Win32 GUI: Printing a file with 'fileformat' "unix" didn't work.  Set
   7602 'fileformat' to "dos" before writing the temp file.
   7603 
   7604 Unix: Could start waiting for a character when checking for a CTRL-C typed
   7605 when an X event is received.
   7606 
   7607 Could not use Perl and Python at the same time on FreeBSD, because Perl used
   7608 "-lc" and Python used the threaded C library.
   7609 
   7610 Win32: The Mingw compiler gave a few warning messages.
   7611 
   7612 When using "ZZ" and an autocommand for writing uses an abbreviation it didn't
   7613 work.  Don't stuff the ":x" command but execute it directly. (Mikael Berthe)
   7614 
   7615 VMS doesn't always have lstat(), added an #ifdef around it.
   7616 
   7617 Added a few corrections for the Macintosh. (Axel Kielhorn)
   7618 
   7619 Win32: GvimExt could not edit more than a few files at once, the length of the
   7620 argument was fixed.
   7621 
   7622 
   7623 Previously released patches for Vim 5.7:
   7624 
   7625 Patch 5.7.001
   7626 Problem:    When the current buffer is encrypted, and another modified buffer
   7627 	    isn't, ":wall" will encrypt the other buffer.
   7628 Solution:   In buf_write() use "buf" instead of "curbuf" to check for the
   7629 	    crypt key.
   7630 Files:	    src/fileio.c
   7631 
   7632 Patch 5.7.002
   7633 Problem:    When 'showmode' is set, using "CTRL-O :r file" waits three seconds
   7634 	    before displaying the read text. (Wichert Akkerman)
   7635 Solution:   Set "keep_msg" to the file message so that the screen is redrawn
   7636 	    before the three seconds wait for displaying the mode message.
   7637 Files:	    src/fileio.c
   7638 
   7639 Patch 5.7.003
   7640 Problem:    Searching for "[[:cntrl:]]" doesn't work.
   7641 Solution:   Exclude NUL from the matching characters, it terminates the list.
   7642 Files:	    src/regexp.c
   7643 
   7644 Patch 5.7.004
   7645 Problem:    GTK: When selecting a new font, Vim can crash.
   7646 Solution:   In gui_mch_init_font() unreference the old font, not the new one.
   7647 Files:	    src/gui_gtk_x11.c
   7648 
   7649 Patch 5.7.005
   7650 Problem:    Multibyte: Inserting a wrapped line corrupts kterm screen.
   7651 	    Pasting TEXT/COMPOUND_TEXT into Vim does not work.
   7652 	    On Motif no XIM status line is displayed even though it is
   7653 	    available.
   7654 Solution:   Don't use xterm trick for wrapping lines for multibyte mode.
   7655 	    Correct a missing "break", added TEXT/COMPOUND_TEXT selection
   7656 	    request.
   7657 	    Add XIMStatusArea fallback code.
   7658 	    (Katsuhito Nagano)
   7659 Files:	    src/gui_gtk_x11.c, src/multbyte.c, src/screen.c, src/ui.c
   7660 
   7661 Patch 5.7.006
   7662 Problem:    GUI: redrawing the non-Visual selection is wrong when the window
   7663 	    is unobscured. (Jean-Pierre Etienne)
   7664 Solution:   Redraw the selection properly and don't clear it.  Added "len"
   7665 	    argument to clip_may_redraw_selection().
   7666 Files:	    src/gui.c, src/ui.c, src/proto/ui.pro
   7667 
   7668 Patch 5.7.007
   7669 Problem:    Python: Crash when using the current buffer twice.
   7670 Solution:   Increase the reference count for buffer and window objects.
   7671 	    (Johannes Zellner)
   7672 Files:	    src/if_python.c
   7673 
   7674 Patch 5.7.008
   7675 Problem:    In Ex mode, backspacing over the first TAB doesn't work properly.
   7676 	    (Wichert Akkerman)
   7677 Solution:   Switch the cursor on before printing the newline.
   7678 Files:	    src/ex_getln.c
   7679 
   7680 Patch 5.7.009 (extra)
   7681 Problem:    Mac: Crash when using a long file.
   7682 Solution:   Don't redefine malloc() and free(), because it will break using
   7683 	    realloc().
   7684 Files:	    src/os_mac.h
   7685 
   7686 Patch 5.7.010
   7687 Problem:    When using CTRL-A on a very long number Vim can crash.  (Michael
   7688 	    Naumann)
   7689 Solution:   Truncate the length of the new number to avoid a buffer overflow.
   7690 Files:	    src/ops.c
   7691 
   7692 Patch 5.7.011 (extra)
   7693 Problem:    Win32 GUI on NT 5 and Win98: Displaying Hebrew is reversed.
   7694 Solution:   Output each character separately, to avoid that Windows reverses
   7695 	    the text for some fonts. (Ron Aaron)
   7696 Files:	    src/gui_w32.c
   7697 
   7698 Patch 5.7.012
   7699 Problem:    When using "-complete=buffer" for ":command" the user command
   7700 	    fails.
   7701 Solution:   In a user command don't replace the buffer name with a count for
   7702 	    the  buffer number.
   7703 Files:	    src/ex_docmd.c
   7704 
   7705 Patch 5.7.013
   7706 Problem:    "gD" didn't always find a match in the first line, depending on
   7707 	    the column the search started at.
   7708 Solution:   Reset the column to zero before starting to search.
   7709 Files:	    src/normal.c
   7710 
   7711 Patch 5.7.014
   7712 Problem:    Rot13 encoding was done on characters with accents, which is
   7713 	    wrong. (Sven Gottwald)
   7714 Solution:   Only do rot13 encoding on ASCII characters.
   7715 Files:	    src/ops.c
   7716 
   7717 Patch 5.7.016
   7718 Problem:    When hitting 'n' for a ":s///c" command, the ignore-case flag was
   7719 	    not restored, some matches were skipped. (Daniel Blaustein)
   7720 Solution:   Restore the reg_ic variable when 'n' was hit.
   7721 Files:	    src/ex_cmds.c
   7722 
   7723 Patch 5.7.017
   7724 Problem:    When using a Vim script for Vim 6.0 with <SID> before a function
   7725 	    name, it produces an error message even when inside an "if version
   7726 	    >= 600".  (Charles Campbell)
   7727 Solution:   Ignore errors in the function name when the function is not going
   7728 	    to be defined.
   7729 Files:	    src/eval.c
   7730 
   7731 Patch 5.7.018
   7732 Problem:    When running "rvim" or "vim -Z" it was still possible to execute a
   7733 	    shell command with system() and backtick-expansion. (Antonios A.
   7734 	    Kavarnos)
   7735 Solution:   Disallow executing a shell command in get_cmd_output() and
   7736 	    mch_expand_wildcards().
   7737 Files:	    src/misc1.c, src/os_unix.c
   7738 
   7739 Patch 5.7.019
   7740 Problem:    Multibyte: In a substitute string, a multibyte character isn't
   7741 	    skipped properly, can be a problem when the second byte is a
   7742 	    backslash.
   7743 Solution:   Skip an extra byte for a double-byte character. (Muraoka Taro)
   7744 Files:	    src/ex_cmds.c
   7745 
   7746 Patch 5.7.020
   7747 Problem:    Compilation doesn't work on MacOS-X.
   7748 Solution:   Add a couple of #ifdefs. (Jamie Curmi)
   7749 Files:	    src/regexp.c, src/ctags/general.h
   7750 
   7751 Patch 5.7.021
   7752 Problem:    Vim sometimes produces a beep when started in an xterm.  Only
   7753 	    happens when compiled without mouse support.
   7754 Solution:   Requesting the xterm version results in a K_IGNORE.  This wasn't
   7755 	    handled when mouse support is disabled.  Accept K_IGNORE always.
   7756 Files:	    src/normal.c
   7757 
   7758 Patch 5.7.022
   7759 Problem:    %v in 'statusline' is not displayed when it's equal to %c.
   7760 Solution:   Check if %V or %v is used and handle them differently.
   7761 Files:	    src/screen.c
   7762 
   7763 Patch 5.7.023
   7764 Problem:    Crash when a WinLeave autocommand deletes the buffer in the other
   7765 	    window.
   7766 Solution:   Check that after executing the WinLeave autocommands there still
   7767 	    is a window to be closed.  Also update the test that was supposed
   7768 	    to check for this problem.
   7769 Files:	    src/window.c, testdir/test13.in, testdir/test13.ok
   7770 
   7771 Patch 5.7.024
   7772 Problem:    Evaluating an expression for 'statusline' can have side effects.
   7773 Solution:   Evaluate the expression in a sandbox.
   7774 Files:	    src/edit.c, src/eval.c, src/proto/eval.pro, src/ex_cmds.c,
   7775 	    src/ex_cmds.h, src/ex_docmd.c, src/globals.h, src/option.c,
   7776 	    src/screen.c, src/undo.c
   7777 
   7778 Patch 5.7.025 (fixed)
   7779 Problem:    Creating a temp file has a race condition.
   7780 Solution:   Create a private directory to write the temp files in.
   7781 Files:	    src/fileio.c, src/misc1.c, src/proto/misc1.pro,
   7782 	    src/proto/fileio.pro, src/memline.c, src/os_unix.h
   7783 
   7784 Patch 5.7.026 (extra)
   7785 Problem:    Creating a temp file has a race condition.
   7786 Solution:   Create a private directory to write the temp files in.
   7787 	    This is the extra part of patch 5.7.025.
   7788 Files:	    src/os_msdos.h
   7789 
   7790 Patch 5.7.027
   7791 Problem:    Starting to edit a file can cause a crash.  For example when in
   7792 	    Insert mode, using CTRL-O :help abbr<Tab> to scroll the screen and
   7793 	    then <CR>, which edits a help file. (Robert Bogomip)
   7794 Solution:   Check if keep_msg is NULL before copying it.
   7795 Files:	    src/fileio.c
   7796 
   7797 Patch 5.7.028
   7798 Problem:    Creating a backup or swap file could fail in rare situations.
   7799 Solution:   Use O_EXCL for open().
   7800 Files:	    src/fileio.c, src/memfile.c
   7801 
   7802 Patch 5.7.029
   7803 Problem:    Editing a file with an extremely long name crashed Vim.
   7804 Solution:   Check for length of the name when setting the window title.
   7805 Files:	    src/buffer.c
   7806 
   7807 Patch 5.7.030
   7808 Problem:    A ":make" or ":grep" command with a very long argument could cause
   7809 	    a crash.
   7810 Solution:   Allocate the buffer for the shell command.
   7811 Files:	    src/ex_docmd.c
   7812 
   7813 
   7814  vim:tw=78:ts=8:noet:ft=help:norl: