blob: 3f1923b7b81b43a38522f063e02073dc64942ae4 [file] [log] [blame]
Bram Moolenaar567e4de2004-12-31 21:01:02 +00001*version7.txt* For Vim version 7.0aa. Last change: 2004 Dec 31
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 Moolenaar567e4de2004-12-31 21:01:02 +0000275GUI font selector for Motif. (Martin Dalecki)
276
277Mnemonics for the Motif find/replace dialog. (Martin Dalecki)
278
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000279Mac: better integration with Xcode. Post a fake mouse-up event after the odoc
280event and the drag receive handler to work around a stall after Vim loads a
281file. Fixed an off-by-one line number error. (Da Woon Jung)
282
Bram Moolenaar843ee412004-06-30 16:16:41 +0000283The netrw plugin now also supports viewing a directory, when "scp://" is used.
284Deleting and renaming files is possible. (Charles Campbell)
285
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000286Added the t_SI and t_EI escape sequences for starting and ending Insert mode.
287To be used to set the cursor shape to a bar or a block. No default values,
288they are not supported by termcap/terminfo.
289
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000290Autocommands can be defined local to a buffer. This means they will also work
291when the buffer does not have a name or no specific name. See
292|autocmd-buflocal|. (Yakov Lerner)
293
Bram Moolenaar071d4272004-06-13 20:20:40 +0000294==============================================================================
295IMPROVEMENTS *improvements-7*
296
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000297":helpgrep" accepts a language specifier after the pattern: "pat@it".
298
Bram Moolenaar8299df92004-07-10 09:47:34 +0000299Move the help for printing to a separate help file. It's quite a lot now.
300
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000301":breakadd here" and ":breakdel here" can be used to set or delete a
302breakpoint at the cursor.
303
Bram Moolenaar843ee412004-06-30 16:16:41 +0000304The tutor was updated to make it simpler to use and added text to explain a
305few more important commands. Used ideas from Gabriel Zachmann.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000306
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000307Unix: When libcall() fails obtain an error message with dlerror() and display
308it. (Johannes Zellner)
309
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000310Added "nbsp" in 'listchars'. (David Blanchet)
311
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000312Added the "acwrite" value for the 'buftype' option. This is for a buffer that
313doesn not have a name that refers to a file and is written with BufWriteCmd
314autocommands.
315
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000316For lisp indenting and matching parenthesis: (Sergey Khorev)
317- square brackets are recognized properly
318- #\(, #\), #\[ and #\] are recognized as character literals
319- Lisp line comments (delimited by semicolon) are recognized
320
Bram Moolenaar89cb5e02004-07-19 20:55:54 +0000321Added the "count" argument to match(), matchend() and matchstr(). (Ilya Sher)
322
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000323winnr() takes an optional "$" and "#" arguments. (Nikolai Weibull, Yegappan
324Lakshmanan)
325
326Added 'n' flag to search(): don't move the cursor. (Nikolai Weibull)
327
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000328When uncompressing fails in the gzip plugin, give an error message but don't
329delete the raw text. Helps if the file has a .gz extension but is not
330actually compressed. (Andrew Pimlott)
331
332When C, C++ or IDL syntax is used, may additionally load doxygen syntax.
333Also support setting the filetype to "cdoxygen" for C plus doxygen syntax.
334(Michael Geddes)
335
336The ":registers" command now displays multi-byte characters properly.
337
338VMS: In the usage message mention that a slash can be used to make a flag
339upper case. Add color support to the builtin vt320 terminal codes.
340(Zoltan Arpadffy)
341
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000342For the '%' item in 'viminfo', allow a number to set a maximum for the number
343of buffers.
344
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000345The 'statusline' option can be local to the window, so that each window can
346have a different value. (partly by Yegappan Lakshmanan)
347
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000348When a file looks like a shell script, check for an "exec" command that starts
349the tcl interpreter. (suggested by Alexios Zavras)
350
351Support conversion between utf-8 and latin9 (iso-8859-15) internally, so that
352digraphs still work when iconv is not available.
353
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000354When a session file is loaded while editing an unnamed, empty buffer that
355buffer is wiped out. Avoids that there is an unused buffer in the buffer
356list.
357
358Win32: When libintl.dll supports bind_textdomain_codeset(), use it.
359(NAKADAIRA Yukihiro)
360
361When foldtext() finds no text after removing the comment leader, use the
362second line of the fold. Helps for C-style /* */ comments where the first
363line is just "/*".
364
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000365When editing the same file from two systems (e.g., Unix and MS-Windows) there
366mostly was no warning for an existing swap file, because the name of the
367edited file differs (e.g., y:\dir\file vs /home/me/dir/file). Added a flag to
368the swap file to indicate it is in the same directory as the edited file. The
369used path then doesn't matter and the check for editing the same file is much
370more reliable.
371
372Client-server communication now supports 'encoding'. When setting 'encoding'
373in a Vim server to "utf-8", and using "vim --remote fname" in a console,
374"fname" is converted from the console encoding to utf-8. Also allows Vims
375with different 'encoding' settings to exchange messages.
376
Bram Moolenaar86b68352004-12-27 21:59:20 +0000377Internal: Changed ga_room into ga_maxlen, so that it doesn't need to be
378incremented/decremented each time.
379
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000380Included a few improvements for Motif from Martin Dalecki. Draw label
381contents ourselves to make them handle fonts in a way configurable by Vim and
382a bit less dependent on the X11 font management.
383
Bram Moolenaar071d4272004-06-13 20:20:40 +0000384==============================================================================
385COMPILE TIME CHANGES *compile-changes-7*
386
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000387Mac: "make" now creates the Vim.app directory and "make install" copies it to
388its final destination. (Raf)
389
390Mac: Made it possible to compile with Motif, Athena or GTK without tricks and
391still being able to use the MacRoman conversion. Added the os_mac_conv.c
392file.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000393
394==============================================================================
395BUG FIXES *bug-fixes-7*
396
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000397When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
398instead of "copy". When 'printdevice' was empty the copy command did not
399work. Use "LPT1" then.
400
401The GTK font dialog uses a font size zero when the font name doesn't include a
402size. Use a default size of 10.
403
404This example in the documentation didn't work:
405 :e `=foo . ".c" `
406Skip over the expression in `=expr` when looking for comments, |, % and #.
407
408When ":helpgrep" doesn't find anything there is no error message.
409
410"L" and "H" did not take closed folds into account.
411
412Win32: The "-P title" argument stopped at the first title that matched, even
413when it doesn't support MDI.
414
415Mac GUI: CTRL-^ and CTRL-@ did not work.
416
417"2daw" on "word." at the end of a line didn't include the preceding white
418space.
419
420Win32: Using FindExecutable() doesn't work to find a program. Use
421SearchPath() instead. For executable() use $PATHEXT when the program searched
422for doesn't have an extension.
423
424When 'virtualedit' is set, moving the cursor up after appending a character
425may move it to a different column. Was caused by auto-formatting moving the
426cursor and not putting it back where it was.
427
428When indent was added automatically and then moving the cursor, the indent was
429not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
430to make it work the old way.
431
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000432When opening a command-line window, 'textwidth' gets set to 78 by the Vim
433filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
434
435After using cursor(line, col) moving up/down doesn't keep the same column.
436
437Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
438fields. (Walter Briscoe)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000439
Bram Moolenaar843ee412004-06-30 16:16:41 +0000440On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
441Michele)
442
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000443Printing with PostScript may keep the printer waiting for more. Append a
444CTRL-D to the printer output. (Mike Williams)
445
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000446When converting a string with a hex or octal number the leading '-' was
447ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
448
449Using "@:" to repeat a command line didn't work when it contains control
450characters.
451
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000452When using file completion for a user command, it would not expand environment
453variables like for a regular command with a file argument.
454
455'cindent': When the argument of a #define looks like a C++ class the next line
456is indented too much.
457
458When 'comments' includes multi-byte characters inserting the middle part and
459alignment may go wrong. 'cindent' also suffers from this for right-aligned
460items.
461
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000462The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
463"cn" or "tw" as intended.
464
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000465When 'bin' is set and 'eol' is not set then line2byte() added the line break
466after the last line while it's not there.
467
468Using foldlevel() in a WinEnter autocommand may not work. Noticed when
469resizing the GUI shell upon startup.
470
471Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
472string with a trailing newline. The newline is ignored.
473
Bram Moolenaar269ec652004-07-29 08:43:53 +0000474When using the ":saveas f2" command for buffer "f1", the Buffers menu would
475contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
476and BufFilePost events for the alternate buffer that gets the old name.
477
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000478strridx() did not work well when the needle is empty. (Ciaran McCreesh)
479
480GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
481just before it is invoked
482
483VMS: Occasionally CR characters were inserted in the file. Expansion of
484environment variables was not correct. (Zoltan Arpadffy)
485
486UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
487from the first character of the word.
488
489When using ":sball" in an autocommand only the filetype in one buffer was
490detected. Reset did_filetype in enter_buffer().
491
492When using ":argdo" and the window already was at the first argument index,
493but not actually editing it, the current buffer would be used instead.
494
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000495When ":next dir/*" includes many matches, adding the names to the argument
496list may take an awful lot of time and can't be interrupted. Allow
497interrupting this.
498
499When editing a file that was already loaded in a buffer, modelines were not
500used. Now window-local options in the modeline are set. Buffer-local options
501and global options remain unmodified.
502
503Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
504command line with non-ASCII characters are not used correctly. Recode the
505file names when 'encoding' is set, using the Unicode command line.
506
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000507Win32 console: When the default for 'encoding' ends up to be "latin1", the
508default value of 'isprint' was wrong.
509
510When an error message is given while waiting for a character (e.g., when an
511xterm reports the number of colors), the hit-enter prompt overwrote the last
512line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
513
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000514Mac GUI: Shift-Tab didn't work.
515
516When defining tooltip text, don't translate terminal codes, since it's not
517going to be used like a command.
518
519GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
520GTK error. Invalid characters may appear when 'encoding' is changed.
521
522GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
523
524Win32: When 'encoding' is changed while starting up, use the Unicode command
525line to convert the file arguments to 'encoding'. Both for the GUI and the
526console version.
527
528Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
529there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
530
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000531When two versions of GTK+ 2 are installed it was possible to use the header
532files from one and the library from the other. Use GTK_LIBDIR to put the
533directory for the library early in the link flags.
534
535With the GUI find/replace dialog a replace only worked if the pattern was
536literal text. Now it works for any pattern.
537
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000538When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
539cause equalizing window heights in the vertical direction.
540
541When ":emenu" is used in a startup script the command was put in the typeahead
542buffer, causing a prompt for the crypt key to be messed up.
543
544Mac OS/X: The default for 'isprint' included characters 128-160, causes
545problems for Terminal.app.
546
547When a syntax item with "containedin" is used, it may match in the start or
548end of a region with a matchgroup, while this doesn't happen for a "contains"
549argument.
550
551When a transparent syntax items matches in another item where the highlighting
552has already stopped (because of a he= argument), the highlighting would come
553back.
554
555When cscope is used to set the quickfix error list, it didn't get set if there
556was only one match. (Sergey Khorev)
557
558When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
559"cancel", would still give an error message.
560
561The PopUp menu items that started Visual mode didn't work when not in Normal
562mode. Switching between selecting a word and a line was not possible.
563
564Win32: The keypad decimal point always resulted in a '.', while on some
565keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
566
567Removed unused function DisplayCompStringOpaque() from gui_w32.c
568
569In Visual mode there is not always an indication whether the line break is
570selected or not. Highlight the character after the line when the line break
571is included, e.g., after "v$o".
572
573GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
574GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
575
576After "Y" '[ and '] were not at start/end of the yanked text.
577
578When a telnet connection is dropped Vim preserves files and exits. While
579doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000580Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
581handle. Added handle_signal().
582
583When using "set laststatus=2 cmdheight=2" in the .gvimrc you may only get one
584line for the cmdline. (Christian Robinson) Invoke command_height() after the
585GUI has started up.
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000586
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000587When completing a file name on the command line backslashes are required for
588white space. Was only done for a space, not for a Tab.
589
590When configure could not find a terminal library, compiling continued for a
591long time before reporting the problem. Added a configure check for tgetent()
592being found in a library.
593
594When the cursor is on the first char of the last line a ":g/pat/s///" command
595may cause the cursor to be displayed below the text.
596
597Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
598is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
599
600When recovering the 'fileformat' and 'fileencoding' were taken from the
601original file instead of from the swapfile. When the file didn't exist, was
602empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
603be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
604the values when recovering.
605
606":bufdo g/something/p" overwrites each last printed text line with the file
607message for the next buffer. Temporarily clear 'shortmess' to avoid that.
608
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000609Win32: Cannot edit a file starting with # with --remote. Do escape % and #
610when building the ":drop" command.
611
Bram Moolenaar86b68352004-12-27 21:59:20 +0000612A comment or | just after a expresion-backtick argument was not recognized.
613E.g. in :e `="foo"`"comment.
614
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000615"(" does not stop at an empty sentence (single dot and white space) while ")"
616does. Also breaks "das" on that dot.
617
618When doing "yy" with the cursor on a TAB the ruler could be wrong and "k"
619moved the cursor to another column.
620
621When 'commentstring' is '"%s' and there is a double quote in the line a double
622quote before the fold marker isn't removed in the text displayed for a closed
623fold.
624
625In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line
626break, resulting in "selected 202 of 201 bytes".
627
628Motif: fonts were not used for dialog components. (Martin Dalecki)
629
Bram Moolenaar071d4272004-06-13 20:20:40 +0000630 vim:tw=78:ts=8:ft=help:norl: