blob: cb76e93796d03e98155600930c6cec303377f040 [file] [log] [blame]
Bram Moolenaar8fc061c2004-12-29 21:03:02 +00001*version7.txt* For Vim version 7.0aa. Last change: 2004 Dec 28
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Bram Moolenaar
5
6
7Welcome to Vim 7! A large number of features has been added. This file
8mentions all the new items, changes to existing features and bug fixes
9compared to Vim 6.x.
10
11See |vi_diff.txt| for an overview of differences between Vi and Vim 7.0.
12See |version4.txt| for differences between Vim 3.x and Vim 4.x.
13See |version5.txt| for differences between Vim 4.x and Vim 5.x.
14See |version6.txt| for differences between Vim 5.x and Vim 6.x.
15
16INCOMPATIBLE CHANGES |incompatible-7|
17
18NEW FEATURES |new-7|
19
20New data types |new-data-types|
Bram Moolenaar325b7a22004-07-05 15:58:32 +000021KDE support |new-KDE|
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000022Translated manual pages |new-manpage-trans|
Bram Moolenaar8fc061c2004-12-29 21:03:02 +000023Internal grep |new-vimgrep|
Bram Moolenaar071d4272004-06-13 20:20:40 +000024Various new items |new-items-7|
25
26IMPROVEMENTS |improvements-7|
27
28COMPILE TIME CHANGES |compile-changes-7|
29
30BUG FIXES |bug-fixes-7|
31
32==============================================================================
33INCOMPATIBLE CHANGES *incompatible-7*
34
35These changes are incompatible with previous releases. Check this list if you
36run into a problem when upgrading from Vim 6.x to 7.0
37
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000038":helpgrep" now uses a help window to display a match.
39
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000040In an argument list double quotes could be used to include spaces in a file
41name. This caused a difference between ":edit" and ":next" for escaping
42double quotes and it is incompatible with some versions of Vi.
43 Command Vim 6.x file name Vim 7.x file name ~
44 :edit foo\"888 'foo"888' 'foo"888'
45 :next foo\"888 'foo888' 'foo"888'
46 :next a\"b c\"d 'ab cd' 'a"b' and 'c"d'
47
48A ":write file" command no longer resets the 'modified' flag of the buffer,
49unless the '+' flag is in 'cpoptions' |cpo-+|. This was illogical, since the
50buffer is still modified compared to the original file. And when undoing
51all changes the file would actually be marked modified. It does mean that
52":quit" fails now.
53
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000054
55Minor incompatibilities:
56
57For filetype detection: For many types, instead of ~/.dir/filename use
58*/.dir/filename, so that it also works for other user's files.
59
60":0verbose" now sets 'verbose' to zero instead of one.
61
62Removed the old and incomplete "VimBuddy" code.
63
64Buffers without a name report "No Name" instead of "No File". It was
65confusing for buffers with a name and 'buftype' set to "nofile".
Bram Moolenaar071d4272004-06-13 20:20:40 +000066
Bram Moolenaar7b0294c2004-10-11 10:16:09 +000067When ":file xxx" is used in a buffer without a name, the alternate file name
68isn't set. This avoids creating buffers without a name that are not useful.
69
70The "2html.vim" script now converts closed folds to HTML. This means the HTML
71looks like its displayed, with the same folds open and closed. Use "zR" if no
72folds should appear in the HTML. (partly by Carl Osterwisch)
Bram Moolenaar47136d72004-10-12 20:02:24 +000073Diff mode now is also converted as it is displayed.
Bram Moolenaar7b0294c2004-10-11 10:16:09 +000074
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000075Win32: The effect of the <F10> key depended on 'winaltkeys'. Now it depends
76on whether <F10> has been mapped or not. This allows mapping <F10> without
77changing 'winaltkeys'.
78
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000079When using CTRL-A on "08" it became "018", which is illogical. Now it becomes
80"9". The leading zero(s) is(are) removed to avoid the number becoming octal
81after incrementing "009" to "010".
82
83When 'encoding' is set to a Unicode encoding, the value for 'fileencodings'
84now includes "default" before "latin1". This means that for files with 8-bit
85encodings the default is to use the encoding specified by the environment, if
86possible. Previously latin1 would always be used, which is wrong in a
87non-latin1 environment, such as Russian.
88
Bram Moolenaar071d4272004-06-13 20:20:40 +000089==============================================================================
90NEW FEATURES *new-7*
91
92New data types *new-data-types*
93--------------
94
95In Vim scripts the following types have been added:
96
97 list ordered list of items
98 dictionary associative array of items
99 function reference to a function
100
101Many functions and commands have been added to support the new types.
102
Bram Moolenaar843ee412004-06-30 16:16:41 +0000103NOT IMPLEMENTED YET!
104
105
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000106KDE support *new-KDE*
Bram Moolenaar843ee412004-06-30 16:16:41 +0000107-----------
108
109Kvim is the KDE version of Vim. It uses the Qt toolkit. See |KVim|.
110(Thomas Capricelli, Philippe Fremy, Mickael Marchand, Mark Westcott, et al.)
111
Bram Moolenaar071d4272004-06-13 20:20:40 +0000112
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000113MzScheme interface *new-MzScheme*
114------------------
115
116The MzScheme interpreter is supported. |MzScheme|
117The |:mzscheme| command can be used to execute MzScheme commands.
118The |:mzfile| command can be used to execute an MzScheme script file.
119
Bram Moolenaar8299df92004-07-10 09:47:34 +0000120Printing multi-byte text *new-print-multi-byte*
121------------------
122
123The |:hardcopy| command now supports printing multi-byte characters.
124The 'printmbcharset' and 'printmbfont' options are used for this.
125Also see |postscript-cjk-printing|. (Mike Williams)
126
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000127
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000128Translated manual pages *new-manpage-trans*
129-----------------------
130
131The manual page of Vim and associated programs is now also available in
132Italian (translated by Antonio Colombo). More languages will follow.
133
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000134The Unix Makefile installs the Italian manual pages in .../man/it/man1/.
135
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000136
Bram Moolenaar8fc061c2004-12-29 21:03:02 +0000137Internal grep *new-vimgrep*
138-------------
139
140The ":vimgrep" command can be used to search for a pattern in a list of files.
141This is like the ":grep" command, but no external program is used. Besides
142better portability, handling of different file encodings and using multi-line
143patterns, this also allows grepping in compressed and remote files.
144|:vimgrep|.
145
146
Bram Moolenaar071d4272004-06-13 20:20:40 +0000147Various new items *new-items-7*
148-----------------
149
150Normal mode commands: ~
151
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000152a", a' and a` New text objects to select quoted strings. |a'|
153i", i' and i' (Taro Muraoka)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000154
155Options: ~
156
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000157'completefunc' The name of a function used for user-specified Insert
158 mode completion. CTRL-X CTRL-U can be used in Insert
159 mode to do any kind of completion. (Taro Muraoka)
160'quoteescape' Characters used to escape quotes inside a string.
161 Used for the a", a' and a` text objects. |a'|
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000162'numberwidth' Minimal width of the space used for the 'number'
163 option. (Emmanuel Renieris)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000164'mzquantum' Time in msec to schedule MzScheme threads.
Bram Moolenaar8299df92004-07-10 09:47:34 +0000165'printmbcharset' CJK character set to be used for :hardcopy
166'printmbfont' font names to be used for CJK output of :hardcopy
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000167'fsync' Whether fsync() is called after writing a file.
168 (Ciaran McCreesh)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000169'wildoptions' "tagfile" value enables listing the file name of
170 matching tags for CTRL-D command line completion.
171 (based on an idea from Yegappan Lakshmanan)
Bram Moolenaar86b68352004-12-27 21:59:20 +0000172'formatlistpat' pattern to recognize a numbered list for formatting.
173 (idea by Hugo Haas)
174
Bram Moolenaar071d4272004-06-13 20:20:40 +0000175
176Ex commands: ~
177
Bram Moolenaar843ee412004-06-30 16:16:41 +0000178Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
179
Bram Moolenaar8299df92004-07-10 09:47:34 +0000180|:startreplace| Start Replace mode. (Charles Campbell)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000181
Bram Moolenaar8299df92004-07-10 09:47:34 +0000182|:0file| Removes the name of the buffer. (Charles Campbell)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000183
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000184|:diffoff| Switch off diff mode in the current window or in all
185 windows.
186
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000187|:keepalt| Do not change the alternate file.
188
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000189|:delmarks| Delete marks.
190
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000191|:sandbox| Command modifier: execute the argument in the sandbox.
192
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000193|:exusage| Help for Ex commands (Nvi command).
194
195|:viusage| Help for Vi commands (Nvi command).
196
Bram Moolenaar86b68352004-12-27 21:59:20 +0000197|:cbuffer| Read error lines from a buffer. (partly by Yegappan
198 Lakshmanan)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000199
200New functions: ~
201
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000202browsedir(title, init) |browsedir()| Dialog to select a directory.
Bram Moolenaar89cb5e02004-07-19 20:55:54 +0000203byteidx(expr, nr) |byteidx()| Index of a character. (Ilya Sher)
204finddir(name) |finddir()| Find a directory in 'path'.
205findfile(name) |findfile()| Find a file in 'path'. (Johannes
206 Zellner)
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000207foldtextresult(lnum) |foldtextresult()| The text displayed for a closed
208 fold at line "lnum".
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000209getfperm(fname) |getfperm()| Get file permission string. (Nikolai
210 Weibull)
211getftype(fname) |getftype()| Get type of file. (Nikolai Weibull)
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000212repeat(expr, count) |repeat()| Repeat "expr" "count" times.
213 (Christophe Poucet)
214tr(expr, from, to) |tr()| Translate characters. (Ron Aaron)
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000215system(cmd, input) |system()| Filters {input} through a shell
216 command.
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000217getfontname([name]) |getfontname()| Get actual font name being used.
Bram Moolenaar8299df92004-07-10 09:47:34 +0000218
Bram Moolenaar071d4272004-06-13 20:20:40 +0000219
220New autocommand events: ~
221
Bram Moolenaar8299df92004-07-10 09:47:34 +0000222|InsertEnter| starting Insert or Replace mode
223|InsertChange| going from Insert to Replace mode or back
224|InsertLeave| leaving Insert or Replace mode
Bram Moolenaar843ee412004-06-30 16:16:41 +0000225
Bram Moolenaar8299df92004-07-10 09:47:34 +0000226|ColorScheme| after loading a color scheme
Bram Moolenaar071d4272004-06-13 20:20:40 +0000227
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000228
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000229New items in search patterns: ~
230|/\%d| \%d123 search for character with decimal number
231|/\]| [\d123] idem, in a colletion
232|/\%o| \%o103 search for character with octal number
233|/\]| [\o1o3] idem, in a colletion
234|/\%x| \%x1a search for character with 2 pos. hex number
235|/\]| [\x1a] idem, in a colletion
236|/\%u| \%u12ab search for character with 4 pos. hex number
237|/\]| [\u12ab] idem, in a colletion
238|/\%U| \%U1234abcd search for character with 8 pos. hex number
239|/\]| [\U1234abcd] idem, in a colletion
240 (The above partly by Ciaran McCreesh)
241
242
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000243New Syntax/Indent/FTplugin files: ~
244
245MuPAD source syntax, indent and ftplugin. (Dave Silvia)
246
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000247ABAB/4 syntax file. (Marius van Wyk)
248
249SQL-Informix syntax file. (Dean L Hill)
250
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000251PHP compiler plugin. (Doug Kearns)
252
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000253Sive syntax file. (Nikolai Weibull)
254
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000255
Bram Moolenaar47136d72004-10-12 20:02:24 +0000256New Keymaps: ~
257
258Sinhala (Sri Lanka) (Harshula Jayasuriya)
259
260
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000261New message translations: ~
262
263The Ukranian messages are now also available in cp1251.
264
Bram Moolenaar071d4272004-06-13 20:20:40 +0000265
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000266Others: ~
267
268Mac: Add the selection type to the clipboard, so that Block, line and
269character selections can be used between two Vims. (Eckehard Berns)
270Also fixes the problem that setting 'clipboard' to "unnamed" breaks using
271"yyp".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000272
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000273Mac: GUI font selector. (Peter "Rain Dog" Cucka)
274
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000275Mac: better integration with Xcode. Post a fake mouse-up event after the odoc
276event and the drag receive handler to work around a stall after Vim loads a
277file. Fixed an off-by-one line number error. (Da Woon Jung)
278
Bram Moolenaar843ee412004-06-30 16:16:41 +0000279The netrw plugin now also supports viewing a directory, when "scp://" is used.
280Deleting and renaming files is possible. (Charles Campbell)
281
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000282Added the t_SI and t_EI escape sequences for starting and ending Insert mode.
283To be used to set the cursor shape to a bar or a block. No default values,
284they are not supported by termcap/terminfo.
285
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000286Autocommands can be defined local to a buffer. This means they will also work
287when the buffer does not have a name or no specific name. See
288|autocmd-buflocal|. (Yakov Lerner)
289
Bram Moolenaar071d4272004-06-13 20:20:40 +0000290==============================================================================
291IMPROVEMENTS *improvements-7*
292
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000293":helpgrep" accepts a language specifier after the pattern: "pat@it".
294
Bram Moolenaar8299df92004-07-10 09:47:34 +0000295Move the help for printing to a separate help file. It's quite a lot now.
296
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000297":breakadd here" and ":breakdel here" can be used to set or delete a
298breakpoint at the cursor.
299
Bram Moolenaar843ee412004-06-30 16:16:41 +0000300The tutor was updated to make it simpler to use and added text to explain a
301few more important commands. Used ideas from Gabriel Zachmann.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000302
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000303Unix: When libcall() fails obtain an error message with dlerror() and display
304it. (Johannes Zellner)
305
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000306Added "nbsp" in 'listchars'. (David Blanchet)
307
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000308Added the "acwrite" value for the 'buftype' option. This is for a buffer that
309doesn not have a name that refers to a file and is written with BufWriteCmd
310autocommands.
311
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000312For lisp indenting and matching parenthesis: (Sergey Khorev)
313- square brackets are recognized properly
314- #\(, #\), #\[ and #\] are recognized as character literals
315- Lisp line comments (delimited by semicolon) are recognized
316
Bram Moolenaar89cb5e02004-07-19 20:55:54 +0000317Added the "count" argument to match(), matchend() and matchstr(). (Ilya Sher)
318
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000319winnr() takes an optional "$" and "#" arguments. (Nikolai Weibull, Yegappan
320Lakshmanan)
321
322Added 'n' flag to search(): don't move the cursor. (Nikolai Weibull)
323
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000324When uncompressing fails in the gzip plugin, give an error message but don't
325delete the raw text. Helps if the file has a .gz extension but is not
326actually compressed. (Andrew Pimlott)
327
328When C, C++ or IDL syntax is used, may additionally load doxygen syntax.
329Also support setting the filetype to "cdoxygen" for C plus doxygen syntax.
330(Michael Geddes)
331
332The ":registers" command now displays multi-byte characters properly.
333
334VMS: In the usage message mention that a slash can be used to make a flag
335upper case. Add color support to the builtin vt320 terminal codes.
336(Zoltan Arpadffy)
337
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000338For the '%' item in 'viminfo', allow a number to set a maximum for the number
339of buffers.
340
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000341The 'statusline' option can be local to the window, so that each window can
342have a different value. (partly by Yegappan Lakshmanan)
343
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000344When a file looks like a shell script, check for an "exec" command that starts
345the tcl interpreter. (suggested by Alexios Zavras)
346
347Support conversion between utf-8 and latin9 (iso-8859-15) internally, so that
348digraphs still work when iconv is not available.
349
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000350When a session file is loaded while editing an unnamed, empty buffer that
351buffer is wiped out. Avoids that there is an unused buffer in the buffer
352list.
353
354Win32: When libintl.dll supports bind_textdomain_codeset(), use it.
355(NAKADAIRA Yukihiro)
356
357When foldtext() finds no text after removing the comment leader, use the
358second line of the fold. Helps for C-style /* */ comments where the first
359line is just "/*".
360
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000361When editing the same file from two systems (e.g., Unix and MS-Windows) there
362mostly was no warning for an existing swap file, because the name of the
363edited file differs (e.g., y:\dir\file vs /home/me/dir/file). Added a flag to
364the swap file to indicate it is in the same directory as the edited file. The
365used path then doesn't matter and the check for editing the same file is much
366more reliable.
367
368Client-server communication now supports 'encoding'. When setting 'encoding'
369in a Vim server to "utf-8", and using "vim --remote fname" in a console,
370"fname" is converted from the console encoding to utf-8. Also allows Vims
371with different 'encoding' settings to exchange messages.
372
Bram Moolenaar86b68352004-12-27 21:59:20 +0000373Internal: Changed ga_room into ga_maxlen, so that it doesn't need to be
374incremented/decremented each time.
375
Bram Moolenaar071d4272004-06-13 20:20:40 +0000376==============================================================================
377COMPILE TIME CHANGES *compile-changes-7*
378
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000379Mac: "make" now creates the Vim.app directory and "make install" copies it to
380its final destination. (Raf)
381
382Mac: Made it possible to compile with Motif, Athena or GTK without tricks and
383still being able to use the MacRoman conversion. Added the os_mac_conv.c
384file.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000385
386==============================================================================
387BUG FIXES *bug-fixes-7*
388
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000389When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
390instead of "copy". When 'printdevice' was empty the copy command did not
391work. Use "LPT1" then.
392
393The GTK font dialog uses a font size zero when the font name doesn't include a
394size. Use a default size of 10.
395
396This example in the documentation didn't work:
397 :e `=foo . ".c" `
398Skip over the expression in `=expr` when looking for comments, |, % and #.
399
400When ":helpgrep" doesn't find anything there is no error message.
401
402"L" and "H" did not take closed folds into account.
403
404Win32: The "-P title" argument stopped at the first title that matched, even
405when it doesn't support MDI.
406
407Mac GUI: CTRL-^ and CTRL-@ did not work.
408
409"2daw" on "word." at the end of a line didn't include the preceding white
410space.
411
412Win32: Using FindExecutable() doesn't work to find a program. Use
413SearchPath() instead. For executable() use $PATHEXT when the program searched
414for doesn't have an extension.
415
416When 'virtualedit' is set, moving the cursor up after appending a character
417may move it to a different column. Was caused by auto-formatting moving the
418cursor and not putting it back where it was.
419
420When indent was added automatically and then moving the cursor, the indent was
421not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
422to make it work the old way.
423
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000424When opening a command-line window, 'textwidth' gets set to 78 by the Vim
425filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
426
427After using cursor(line, col) moving up/down doesn't keep the same column.
428
429Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
430fields. (Walter Briscoe)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000431
Bram Moolenaar843ee412004-06-30 16:16:41 +0000432On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
433Michele)
434
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000435Printing with PostScript may keep the printer waiting for more. Append a
436CTRL-D to the printer output. (Mike Williams)
437
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000438When converting a string with a hex or octal number the leading '-' was
439ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
440
441Using "@:" to repeat a command line didn't work when it contains control
442characters.
443
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000444When using file completion for a user command, it would not expand environment
445variables like for a regular command with a file argument.
446
447'cindent': When the argument of a #define looks like a C++ class the next line
448is indented too much.
449
450When 'comments' includes multi-byte characters inserting the middle part and
451alignment may go wrong. 'cindent' also suffers from this for right-aligned
452items.
453
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000454The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
455"cn" or "tw" as intended.
456
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000457When 'bin' is set and 'eol' is not set then line2byte() added the line break
458after the last line while it's not there.
459
460Using foldlevel() in a WinEnter autocommand may not work. Noticed when
461resizing the GUI shell upon startup.
462
463Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
464string with a trailing newline. The newline is ignored.
465
Bram Moolenaar269ec652004-07-29 08:43:53 +0000466When using the ":saveas f2" command for buffer "f1", the Buffers menu would
467contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
468and BufFilePost events for the alternate buffer that gets the old name.
469
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000470strridx() did not work well when the needle is empty. (Ciaran McCreesh)
471
472GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
473just before it is invoked
474
475VMS: Occasionally CR characters were inserted in the file. Expansion of
476environment variables was not correct. (Zoltan Arpadffy)
477
478UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
479from the first character of the word.
480
481When using ":sball" in an autocommand only the filetype in one buffer was
482detected. Reset did_filetype in enter_buffer().
483
484When using ":argdo" and the window already was at the first argument index,
485but not actually editing it, the current buffer would be used instead.
486
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000487When ":next dir/*" includes many matches, adding the names to the argument
488list may take an awful lot of time and can't be interrupted. Allow
489interrupting this.
490
491When editing a file that was already loaded in a buffer, modelines were not
492used. Now window-local options in the modeline are set. Buffer-local options
493and global options remain unmodified.
494
495Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
496command line with non-ASCII characters are not used correctly. Recode the
497file names when 'encoding' is set, using the Unicode command line.
498
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000499Win32 console: When the default for 'encoding' ends up to be "latin1", the
500default value of 'isprint' was wrong.
501
502When an error message is given while waiting for a character (e.g., when an
503xterm reports the number of colors), the hit-enter prompt overwrote the last
504line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
505
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000506Mac GUI: Shift-Tab didn't work.
507
508When defining tooltip text, don't translate terminal codes, since it's not
509going to be used like a command.
510
511GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
512GTK error. Invalid characters may appear when 'encoding' is changed.
513
514GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
515
516Win32: When 'encoding' is changed while starting up, use the Unicode command
517line to convert the file arguments to 'encoding'. Both for the GUI and the
518console version.
519
520Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
521there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
522
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000523When two versions of GTK+ 2 are installed it was possible to use the header
524files from one and the library from the other. Use GTK_LIBDIR to put the
525directory for the library early in the link flags.
526
527With the GUI find/replace dialog a replace only worked if the pattern was
528literal text. Now it works for any pattern.
529
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000530When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
531cause equalizing window heights in the vertical direction.
532
533When ":emenu" is used in a startup script the command was put in the typeahead
534buffer, causing a prompt for the crypt key to be messed up.
535
536Mac OS/X: The default for 'isprint' included characters 128-160, causes
537problems for Terminal.app.
538
539When a syntax item with "containedin" is used, it may match in the start or
540end of a region with a matchgroup, while this doesn't happen for a "contains"
541argument.
542
543When a transparent syntax items matches in another item where the highlighting
544has already stopped (because of a he= argument), the highlighting would come
545back.
546
547When cscope is used to set the quickfix error list, it didn't get set if there
548was only one match. (Sergey Khorev)
549
550When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
551"cancel", would still give an error message.
552
553The PopUp menu items that started Visual mode didn't work when not in Normal
554mode. Switching between selecting a word and a line was not possible.
555
556Win32: The keypad decimal point always resulted in a '.', while on some
557keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
558
559Removed unused function DisplayCompStringOpaque() from gui_w32.c
560
561In Visual mode there is not always an indication whether the line break is
562selected or not. Highlight the character after the line when the line break
563is included, e.g., after "v$o".
564
565GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
566GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
567
568After "Y" '[ and '] were not at start/end of the yanked text.
569
570When a telnet connection is dropped Vim preserves files and exits. While
571doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000572Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
573handle. Added handle_signal().
574
575When using "set laststatus=2 cmdheight=2" in the .gvimrc you may only get one
576line for the cmdline. (Christian Robinson) Invoke command_height() after the
577GUI has started up.
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000578
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000579When completing a file name on the command line backslashes are required for
580white space. Was only done for a space, not for a Tab.
581
582When configure could not find a terminal library, compiling continued for a
583long time before reporting the problem. Added a configure check for tgetent()
584being found in a library.
585
586When the cursor is on the first char of the last line a ":g/pat/s///" command
587may cause the cursor to be displayed below the text.
588
589Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
590is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
591
592When recovering the 'fileformat' and 'fileencoding' were taken from the
593original file instead of from the swapfile. When the file didn't exist, was
594empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
595be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
596the values when recovering.
597
598":bufdo g/something/p" overwrites each last printed text line with the file
599message for the next buffer. Temporarily clear 'shortmess' to avoid that.
600
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000601Win32: Cannot edit a file starting with # with --remote. Do escape % and #
602when building the ":drop" command.
603
Bram Moolenaar86b68352004-12-27 21:59:20 +0000604A comment or | just after a expresion-backtick argument was not recognized.
605E.g. in :e `="foo"`"comment.
606
Bram Moolenaar071d4272004-06-13 20:20:40 +0000607 vim:tw=78:ts=8:ft=help:norl: