blob: a48db755fc6b0e895a0eee1d6fbb196d11957243 [file] [log] [blame]
Bram Moolenaarb7d6e722005-01-09 21:22:45 +00001*version7.txt* For Vim version 7.0aa. Last change: 2005 Jan 09
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 Moolenaar2079a602005-01-04 21:43:22 +0000275GUI font selector for Motif. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000276
Bram Moolenaar2079a602005-01-04 21:43:22 +0000277Mnemonics for the Motif find/replace dialog. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000278
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 Moolenaar2079a602005-01-04 21:43:22 +0000380Included a few improvements for Motif from Marcin Dalecki. Draw label
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000381contents ourselves to make them handle fonts in a way configurable by Vim and
382a bit less dependent on the X11 font management.
383
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000384When a register is empty it is not stored in the viminfo file.
385
Bram Moolenaar071d4272004-06-13 20:20:40 +0000386==============================================================================
387COMPILE TIME CHANGES *compile-changes-7*
388
Bram Moolenaar2079a602005-01-04 21:43:22 +0000389Dropped the support for the BeOS and Amiga GUI. They were not maintained and
390probably didn't work. If you want to work on this: get the Vim 6.x version
391and merge it back in.
392
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000393Mac: "make" now creates the Vim.app directory and "make install" copies it to
394its final destination. (Raf)
395
396Mac: Made it possible to compile with Motif, Athena or GTK without tricks and
397still being able to use the MacRoman conversion. Added the os_mac_conv.c
398file.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000399
400==============================================================================
401BUG FIXES *bug-fixes-7*
402
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000403When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
404instead of "copy". When 'printdevice' was empty the copy command did not
405work. Use "LPT1" then.
406
407The GTK font dialog uses a font size zero when the font name doesn't include a
408size. Use a default size of 10.
409
410This example in the documentation didn't work:
411 :e `=foo . ".c" `
412Skip over the expression in `=expr` when looking for comments, |, % and #.
413
414When ":helpgrep" doesn't find anything there is no error message.
415
416"L" and "H" did not take closed folds into account.
417
418Win32: The "-P title" argument stopped at the first title that matched, even
419when it doesn't support MDI.
420
421Mac GUI: CTRL-^ and CTRL-@ did not work.
422
423"2daw" on "word." at the end of a line didn't include the preceding white
424space.
425
426Win32: Using FindExecutable() doesn't work to find a program. Use
427SearchPath() instead. For executable() use $PATHEXT when the program searched
428for doesn't have an extension.
429
430When 'virtualedit' is set, moving the cursor up after appending a character
431may move it to a different column. Was caused by auto-formatting moving the
432cursor and not putting it back where it was.
433
434When indent was added automatically and then moving the cursor, the indent was
435not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
436to make it work the old way.
437
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000438When opening a command-line window, 'textwidth' gets set to 78 by the Vim
439filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
440
441After using cursor(line, col) moving up/down doesn't keep the same column.
442
443Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
444fields. (Walter Briscoe)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000445
Bram Moolenaar843ee412004-06-30 16:16:41 +0000446On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
447Michele)
448
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000449Printing with PostScript may keep the printer waiting for more. Append a
450CTRL-D to the printer output. (Mike Williams)
451
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000452When converting a string with a hex or octal number the leading '-' was
453ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
454
455Using "@:" to repeat a command line didn't work when it contains control
456characters.
457
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000458When using file completion for a user command, it would not expand environment
459variables like for a regular command with a file argument.
460
461'cindent': When the argument of a #define looks like a C++ class the next line
462is indented too much.
463
464When 'comments' includes multi-byte characters inserting the middle part and
465alignment may go wrong. 'cindent' also suffers from this for right-aligned
466items.
467
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000468The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
469"cn" or "tw" as intended.
470
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000471When 'bin' is set and 'eol' is not set then line2byte() added the line break
472after the last line while it's not there.
473
474Using foldlevel() in a WinEnter autocommand may not work. Noticed when
475resizing the GUI shell upon startup.
476
477Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
478string with a trailing newline. The newline is ignored.
479
Bram Moolenaar269ec652004-07-29 08:43:53 +0000480When using the ":saveas f2" command for buffer "f1", the Buffers menu would
481contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
482and BufFilePost events for the alternate buffer that gets the old name.
483
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000484strridx() did not work well when the needle is empty. (Ciaran McCreesh)
485
486GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
487just before it is invoked
488
489VMS: Occasionally CR characters were inserted in the file. Expansion of
490environment variables was not correct. (Zoltan Arpadffy)
491
492UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
493from the first character of the word.
494
495When using ":sball" in an autocommand only the filetype in one buffer was
496detected. Reset did_filetype in enter_buffer().
497
498When using ":argdo" and the window already was at the first argument index,
499but not actually editing it, the current buffer would be used instead.
500
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000501When ":next dir/*" includes many matches, adding the names to the argument
502list may take an awful lot of time and can't be interrupted. Allow
503interrupting this.
504
505When editing a file that was already loaded in a buffer, modelines were not
506used. Now window-local options in the modeline are set. Buffer-local options
507and global options remain unmodified.
508
509Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
510command line with non-ASCII characters are not used correctly. Recode the
511file names when 'encoding' is set, using the Unicode command line.
512
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000513Win32 console: When the default for 'encoding' ends up to be "latin1", the
514default value of 'isprint' was wrong.
515
516When an error message is given while waiting for a character (e.g., when an
517xterm reports the number of colors), the hit-enter prompt overwrote the last
518line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
519
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000520Mac GUI: Shift-Tab didn't work.
521
522When defining tooltip text, don't translate terminal codes, since it's not
523going to be used like a command.
524
525GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
526GTK error. Invalid characters may appear when 'encoding' is changed.
527
528GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
529
530Win32: When 'encoding' is changed while starting up, use the Unicode command
531line to convert the file arguments to 'encoding'. Both for the GUI and the
532console version.
533
534Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
535there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
536
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000537When two versions of GTK+ 2 are installed it was possible to use the header
538files from one and the library from the other. Use GTK_LIBDIR to put the
539directory for the library early in the link flags.
540
541With the GUI find/replace dialog a replace only worked if the pattern was
542literal text. Now it works for any pattern.
543
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000544When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
545cause equalizing window heights in the vertical direction.
546
547When ":emenu" is used in a startup script the command was put in the typeahead
548buffer, causing a prompt for the crypt key to be messed up.
549
550Mac OS/X: The default for 'isprint' included characters 128-160, causes
551problems for Terminal.app.
552
553When a syntax item with "containedin" is used, it may match in the start or
554end of a region with a matchgroup, while this doesn't happen for a "contains"
555argument.
556
557When a transparent syntax items matches in another item where the highlighting
558has already stopped (because of a he= argument), the highlighting would come
559back.
560
561When cscope is used to set the quickfix error list, it didn't get set if there
562was only one match. (Sergey Khorev)
563
564When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
565"cancel", would still give an error message.
566
567The PopUp menu items that started Visual mode didn't work when not in Normal
568mode. Switching between selecting a word and a line was not possible.
569
570Win32: The keypad decimal point always resulted in a '.', while on some
571keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
572
573Removed unused function DisplayCompStringOpaque() from gui_w32.c
574
575In Visual mode there is not always an indication whether the line break is
576selected or not. Highlight the character after the line when the line break
577is included, e.g., after "v$o".
578
579GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
580GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
581
582After "Y" '[ and '] were not at start/end of the yanked text.
583
584When a telnet connection is dropped Vim preserves files and exits. While
585doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000586Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
587handle. Added handle_signal().
588
589When using "set laststatus=2 cmdheight=2" in the .gvimrc you may only get one
590line for the cmdline. (Christian Robinson) Invoke command_height() after the
591GUI has started up.
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000592
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000593When completing a file name on the command line backslashes are required for
594white space. Was only done for a space, not for a Tab.
595
596When configure could not find a terminal library, compiling continued for a
597long time before reporting the problem. Added a configure check for tgetent()
598being found in a library.
599
600When the cursor is on the first char of the last line a ":g/pat/s///" command
601may cause the cursor to be displayed below the text.
602
603Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
604is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
605
606When recovering the 'fileformat' and 'fileencoding' were taken from the
607original file instead of from the swapfile. When the file didn't exist, was
608empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
609be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
610the values when recovering.
611
612":bufdo g/something/p" overwrites each last printed text line with the file
613message for the next buffer. Temporarily clear 'shortmess' to avoid that.
614
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000615Win32: Cannot edit a file starting with # with --remote. Do escape % and #
616when building the ":drop" command.
617
Bram Moolenaar86b68352004-12-27 21:59:20 +0000618A comment or | just after a expresion-backtick argument was not recognized.
619E.g. in :e `="foo"`"comment.
620
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000621"(" does not stop at an empty sentence (single dot and white space) while ")"
622does. Also breaks "das" on that dot.
623
624When doing "yy" with the cursor on a TAB the ruler could be wrong and "k"
625moved the cursor to another column.
626
627When 'commentstring' is '"%s' and there is a double quote in the line a double
628quote before the fold marker isn't removed in the text displayed for a closed
629fold.
630
631In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line
632break, resulting in "selected 202 of 201 bytes".
633
Bram Moolenaar2079a602005-01-04 21:43:22 +0000634Motif: fonts were not used for dialog components. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000635
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000636Motif: After using a toolbar button the keyboard focus would be on the toolbar
Bram Moolenaar2079a602005-01-04 21:43:22 +0000637(Lesstif problem). (Marcin Dalecki)
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000638
Bram Moolenaar1c2fda22005-01-02 11:43:19 +0000639When using "y<C-V>`x" where mark x is in the first column, the last line was
640not included.
641
642Not all test scripts work properly on MS-Windows when checked out from CVS.
643Use a Vim command to fix all fileformats to dos before executing the tests.
644
645When using ":new" and the file fits in the window, lines could still be above
646the window. Now remove empty lines instead of keeping the relative position.
647
Bram Moolenaar3d60ec22005-01-05 22:19:46 +0000648Cmdline completion didn't work after ":let var1 var<Tab>".
649
Bram Moolenaarb7d6e722005-01-09 21:22:45 +0000650When using ":startinsert" or ":startreplace" when already in Insert mode
651(possible when using CTRL-R =), pressing Esc would directly restart Insert
652mode. (Peter Winters)
653
Bram Moolenaar071d4272004-06-13 20:20:40 +0000654 vim:tw=78:ts=8:ft=help:norl: