blob: f2ca9674d7c3be1bc6ec0c3a595a587e8df07bce [file] [log] [blame]
Bram Moolenaarbac234e2005-01-17 22:21:07 +00001*version7.txt* For Vim version 7.0aa. Last change: 2005 Jan 17
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
Bram Moolenaarbac234e2005-01-17 22:21:07 +000020Vim script enhancements |new-vim-script|
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 Moolenaar8c711452005-01-14 21:53:12 +000054In a |literal-string| a single quote can be doubled to get one.
55":echo 'a''b'" would result in "a b", but now that two quotes stand for one it
56results in "a'b".
57
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000058
59Minor incompatibilities:
60
61For filetype detection: For many types, instead of ~/.dir/filename use
62*/.dir/filename, so that it also works for other user's files.
63
64":0verbose" now sets 'verbose' to zero instead of one.
65
66Removed the old and incomplete "VimBuddy" code.
67
68Buffers without a name report "No Name" instead of "No File". It was
69confusing for buffers with a name and 'buftype' set to "nofile".
Bram Moolenaar071d4272004-06-13 20:20:40 +000070
Bram Moolenaar7b0294c2004-10-11 10:16:09 +000071When ":file xxx" is used in a buffer without a name, the alternate file name
72isn't set. This avoids creating buffers without a name that are not useful.
73
74The "2html.vim" script now converts closed folds to HTML. This means the HTML
75looks like its displayed, with the same folds open and closed. Use "zR" if no
76folds should appear in the HTML. (partly by Carl Osterwisch)
Bram Moolenaar47136d72004-10-12 20:02:24 +000077Diff mode now is also converted as it is displayed.
Bram Moolenaar7b0294c2004-10-11 10:16:09 +000078
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000079Win32: The effect of the <F10> key depended on 'winaltkeys'. Now it depends
80on whether <F10> has been mapped or not. This allows mapping <F10> without
81changing 'winaltkeys'.
82
Bram Moolenaar8c711452005-01-14 21:53:12 +000083When 'octal' is in 'nrformats' and using CTRL-A on "08" it became "018", which
84is illogical. Now it becomes "9". The leading zero(s) is(are) removed to
85avoid the number becoming octal after incrementing "009" to "010".
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000086
87When 'encoding' is set to a Unicode encoding, the value for 'fileencodings'
88now includes "default" before "latin1". This means that for files with 8-bit
89encodings the default is to use the encoding specified by the environment, if
90possible. Previously latin1 would always be used, which is wrong in a
91non-latin1 environment, such as Russian.
92
Bram Moolenaar071d4272004-06-13 20:20:40 +000093==============================================================================
94NEW FEATURES *new-7*
95
Bram Moolenaarbac234e2005-01-17 22:21:07 +000096Vim script enhancements *new-vim-script*
97-----------------------
Bram Moolenaar071d4272004-06-13 20:20:40 +000098
99In Vim scripts the following types have been added:
100
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000101 List ordered list of items |List|
102 Dictionary associative array of items |Dictionary|
103 Funcref reference to a function |Funcref|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000104
105Many functions and commands have been added to support the new types.
106
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000107The |string()| function can be used to get a string representation of a
108variable. Works for Numbers, Strings and composites of them. Then |eval()|
109can be used to turn the string back into the variable value.
110
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000111The |:let| command can now use ":let var += expr" like using ":let var = var +
112expr". "-=" and ".=" works in a similar way.
113
Bram Moolenaar843ee412004-06-30 16:16:41 +0000114
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000115KDE support *new-KDE*
Bram Moolenaar843ee412004-06-30 16:16:41 +0000116-----------
117
118Kvim is the KDE version of Vim. It uses the Qt toolkit. See |KVim|.
119(Thomas Capricelli, Philippe Fremy, Mickael Marchand, Mark Westcott, et al.)
120
Bram Moolenaar071d4272004-06-13 20:20:40 +0000121
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000122MzScheme interface *new-MzScheme*
123------------------
124
125The MzScheme interpreter is supported. |MzScheme|
126The |:mzscheme| command can be used to execute MzScheme commands.
127The |:mzfile| command can be used to execute an MzScheme script file.
128
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000129
Bram Moolenaar8299df92004-07-10 09:47:34 +0000130Printing multi-byte text *new-print-multi-byte*
131------------------
132
133The |:hardcopy| command now supports printing multi-byte characters.
134The 'printmbcharset' and 'printmbfont' options are used for this.
135Also see |postscript-cjk-printing|. (Mike Williams)
136
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000137
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000138Translated manual pages *new-manpage-trans*
139-----------------------
140
141The manual page of Vim and associated programs is now also available in
142Italian (translated by Antonio Colombo). More languages will follow.
143
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000144The Unix Makefile installs the Italian manual pages in .../man/it/man1/.
145
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000146
Bram Moolenaar8fc061c2004-12-29 21:03:02 +0000147Internal grep *new-vimgrep*
148-------------
149
150The ":vimgrep" command can be used to search for a pattern in a list of files.
151This is like the ":grep" command, but no external program is used. Besides
152better portability, handling of different file encodings and using multi-line
153patterns, this also allows grepping in compressed and remote files.
154|:vimgrep|.
155
156
Bram Moolenaar071d4272004-06-13 20:20:40 +0000157Various new items *new-items-7*
158-----------------
159
160Normal mode commands: ~
161
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000162a", a' and a` New text objects to select quoted strings. |a'|
163i", i' and i' (Taro Muraoka)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000164
165Options: ~
166
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000167'completefunc' The name of a function used for user-specified Insert
168 mode completion. CTRL-X CTRL-U can be used in Insert
169 mode to do any kind of completion. (Taro Muraoka)
170'quoteescape' Characters used to escape quotes inside a string.
171 Used for the a", a' and a` text objects. |a'|
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000172'numberwidth' Minimal width of the space used for the 'number'
173 option. (Emmanuel Renieris)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000174'mzquantum' Time in msec to schedule MzScheme threads.
Bram Moolenaar8299df92004-07-10 09:47:34 +0000175'printmbcharset' CJK character set to be used for :hardcopy
176'printmbfont' font names to be used for CJK output of :hardcopy
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000177'fsync' Whether fsync() is called after writing a file.
178 (Ciaran McCreesh)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000179'wildoptions' "tagfile" value enables listing the file name of
180 matching tags for CTRL-D command line completion.
181 (based on an idea from Yegappan Lakshmanan)
Bram Moolenaar86b68352004-12-27 21:59:20 +0000182'formatlistpat' pattern to recognize a numbered list for formatting.
183 (idea by Hugo Haas)
184
Bram Moolenaar071d4272004-06-13 20:20:40 +0000185
186Ex commands: ~
187
Bram Moolenaar843ee412004-06-30 16:16:41 +0000188Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
189
Bram Moolenaar8299df92004-07-10 09:47:34 +0000190|:startreplace| Start Replace mode. (Charles Campbell)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000191
Bram Moolenaar8299df92004-07-10 09:47:34 +0000192|:0file| Removes the name of the buffer. (Charles Campbell)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000193
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000194|:diffoff| Switch off diff mode in the current window or in all
195 windows.
196
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000197|:keepalt| Do not change the alternate file.
198
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000199|:delmarks| Delete marks.
200
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000201|:sandbox| Command modifier: execute the argument in the sandbox.
202
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000203|:exusage| Help for Ex commands (Nvi command).
204
205|:viusage| Help for Vi commands (Nvi command).
206
Bram Moolenaar86b68352004-12-27 21:59:20 +0000207|:cbuffer| Read error lines from a buffer. (partly by Yegappan
208 Lakshmanan)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000209
210New functions: ~
211
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000212|add()| append an item to a List
213|append()| append List of lines to the buffer
214|browsedir()| Dialog to select a directory.
215|byteidx()| Index of a character. (Ilya Sher)
216|call()| call a function with List as arguments
217|copy()| make a shallow copy of a List or Dictionary
218|count()| count nr of times a value is in a List or Dictionary
219|deepcopy()| make a full copy of a List or Dictionary
220|empty()| check if List or Dictionary is empty
221|extend()| append one List to another or add items from one
222 Dictionary to another
223|filter()| remove selected items from a List or Dictionary
224|finddir()| Find a directory in 'path'.
225|findfile()| Find a file in 'path'. (Johannes Zellner)
226|foldtextresult()| The text displayed for a closed fold at line "lnum".
227|function()| make a Funcref out of a function name
228|get()| get an item from a List or Dictionary
229|getfontname()| Get actual font name being used.
230|getfperm()| Get file permission string. (Nikolai Weibull)
231|getftype()| Get type of file. (Nikolai Weibull)
232|getline()| get List with buffer lines
233|has_key()| check whether a key appears in a Dictionary
234|insert()| insert an item somewhere in a List
235|items()| get List of Dictionary key-value pairs
236|join()| join List items into a String
237|keys()| get List of Dictionary keys
238|len()| number of items in a List or Dictionary
239|map()| change each List or Dictionary item
240|max()| maximum value in a List or Dictionary
241|min()| minimum value in a List or Dictionary
242|remove()| remove one or more items from a List or Dictionary
243|repeat()| Repeat "expr" "count" times. (Christophe Poucet)
244|reverse()| reverse the order of a List
245|sort()| sort a List
246|split()| split a String into a List
247|string()| String representation of a List or Dictionary
248|system()| Filters {input} through a shell command.
249|tr()| Translate characters. (Ron Aaron)
250|values()| get List of Dictionary values
Bram Moolenaar8299df92004-07-10 09:47:34 +0000251
Bram Moolenaar071d4272004-06-13 20:20:40 +0000252
253New autocommand events: ~
254
Bram Moolenaar8299df92004-07-10 09:47:34 +0000255|InsertEnter| starting Insert or Replace mode
256|InsertChange| going from Insert to Replace mode or back
257|InsertLeave| leaving Insert or Replace mode
Bram Moolenaar843ee412004-06-30 16:16:41 +0000258
Bram Moolenaar8299df92004-07-10 09:47:34 +0000259|ColorScheme| after loading a color scheme
Bram Moolenaar071d4272004-06-13 20:20:40 +0000260
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000261
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000262New items in search patterns: ~
263|/\%d| \%d123 search for character with decimal number
264|/\]| [\d123] idem, in a colletion
265|/\%o| \%o103 search for character with octal number
266|/\]| [\o1o3] idem, in a colletion
267|/\%x| \%x1a search for character with 2 pos. hex number
268|/\]| [\x1a] idem, in a colletion
269|/\%u| \%u12ab search for character with 4 pos. hex number
270|/\]| [\u12ab] idem, in a colletion
271|/\%U| \%U1234abcd search for character with 8 pos. hex number
272|/\]| [\U1234abcd] idem, in a colletion
273 (The above partly by Ciaran McCreesh)
274
275
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000276New Syntax/Indent/FTplugin files: ~
277
278MuPAD source syntax, indent and ftplugin. (Dave Silvia)
279
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000280ABAB/4 syntax file. (Marius van Wyk)
281
282SQL-Informix syntax file. (Dean L Hill)
283
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000284PHP compiler plugin. (Doug Kearns)
285
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000286Sive syntax file. (Nikolai Weibull)
287
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000288
Bram Moolenaar47136d72004-10-12 20:02:24 +0000289New Keymaps: ~
290
291Sinhala (Sri Lanka) (Harshula Jayasuriya)
292
293
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000294New message translations: ~
295
296The Ukranian messages are now also available in cp1251.
297
Bram Moolenaar071d4272004-06-13 20:20:40 +0000298
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000299Others: ~
300
301Mac: Add the selection type to the clipboard, so that Block, line and
302character selections can be used between two Vims. (Eckehard Berns)
303Also fixes the problem that setting 'clipboard' to "unnamed" breaks using
304"yyp".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000305
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000306Mac: GUI font selector. (Peter "Rain Dog" Cucka)
307
Bram Moolenaar2079a602005-01-04 21:43:22 +0000308GUI font selector for Motif. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000309
Bram Moolenaar2079a602005-01-04 21:43:22 +0000310Mnemonics for the Motif find/replace dialog. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000311
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000312Mac: better integration with Xcode. Post a fake mouse-up event after the odoc
313event and the drag receive handler to work around a stall after Vim loads a
314file. Fixed an off-by-one line number error. (Da Woon Jung)
315
Bram Moolenaar843ee412004-06-30 16:16:41 +0000316The netrw plugin now also supports viewing a directory, when "scp://" is used.
317Deleting and renaming files is possible. (Charles Campbell)
318
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000319Added the t_SI and t_EI escape sequences for starting and ending Insert mode.
320To be used to set the cursor shape to a bar or a block. No default values,
321they are not supported by termcap/terminfo.
322
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000323Autocommands can be defined local to a buffer. This means they will also work
324when the buffer does not have a name or no specific name. See
325|autocmd-buflocal|. (Yakov Lerner)
326
Bram Moolenaar071d4272004-06-13 20:20:40 +0000327==============================================================================
328IMPROVEMENTS *improvements-7*
329
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000330":helpgrep" accepts a language specifier after the pattern: "pat@it".
331
Bram Moolenaar8299df92004-07-10 09:47:34 +0000332Move the help for printing to a separate help file. It's quite a lot now.
333
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000334":breakadd here" and ":breakdel here" can be used to set or delete a
335breakpoint at the cursor.
336
Bram Moolenaar843ee412004-06-30 16:16:41 +0000337The tutor was updated to make it simpler to use and added text to explain a
338few more important commands. Used ideas from Gabriel Zachmann.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000339
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000340Unix: When libcall() fails obtain an error message with dlerror() and display
341it. (Johannes Zellner)
342
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000343Added "nbsp" in 'listchars'. (David Blanchet)
344
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000345Added the "acwrite" value for the 'buftype' option. This is for a buffer that
346doesn not have a name that refers to a file and is written with BufWriteCmd
347autocommands.
348
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000349For lisp indenting and matching parenthesis: (Sergey Khorev)
350- square brackets are recognized properly
351- #\(, #\), #\[ and #\] are recognized as character literals
352- Lisp line comments (delimited by semicolon) are recognized
353
Bram Moolenaar89cb5e02004-07-19 20:55:54 +0000354Added the "count" argument to match(), matchend() and matchstr(). (Ilya Sher)
355
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000356winnr() takes an optional "$" and "#" arguments. (Nikolai Weibull, Yegappan
357Lakshmanan)
358
359Added 'n' flag to search(): don't move the cursor. (Nikolai Weibull)
360
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000361When uncompressing fails in the gzip plugin, give an error message but don't
362delete the raw text. Helps if the file has a .gz extension but is not
363actually compressed. (Andrew Pimlott)
364
365When C, C++ or IDL syntax is used, may additionally load doxygen syntax.
366Also support setting the filetype to "cdoxygen" for C plus doxygen syntax.
367(Michael Geddes)
368
369The ":registers" command now displays multi-byte characters properly.
370
371VMS: In the usage message mention that a slash can be used to make a flag
372upper case. Add color support to the builtin vt320 terminal codes.
373(Zoltan Arpadffy)
374
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000375For the '%' item in 'viminfo', allow a number to set a maximum for the number
376of buffers.
377
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000378The 'statusline' option can be local to the window, so that each window can
379have a different value. (partly by Yegappan Lakshmanan)
380
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000381When a file looks like a shell script, check for an "exec" command that starts
382the tcl interpreter. (suggested by Alexios Zavras)
383
384Support conversion between utf-8 and latin9 (iso-8859-15) internally, so that
385digraphs still work when iconv is not available.
386
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000387When a session file is loaded while editing an unnamed, empty buffer that
388buffer is wiped out. Avoids that there is an unused buffer in the buffer
389list.
390
391Win32: When libintl.dll supports bind_textdomain_codeset(), use it.
392(NAKADAIRA Yukihiro)
393
394When foldtext() finds no text after removing the comment leader, use the
395second line of the fold. Helps for C-style /* */ comments where the first
396line is just "/*".
397
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000398When editing the same file from two systems (e.g., Unix and MS-Windows) there
399mostly was no warning for an existing swap file, because the name of the
400edited file differs (e.g., y:\dir\file vs /home/me/dir/file). Added a flag to
401the swap file to indicate it is in the same directory as the edited file. The
402used path then doesn't matter and the check for editing the same file is much
403more reliable.
404
405Client-server communication now supports 'encoding'. When setting 'encoding'
406in a Vim server to "utf-8", and using "vim --remote fname" in a console,
407"fname" is converted from the console encoding to utf-8. Also allows Vims
408with different 'encoding' settings to exchange messages.
409
Bram Moolenaar86b68352004-12-27 21:59:20 +0000410Internal: Changed ga_room into ga_maxlen, so that it doesn't need to be
411incremented/decremented each time.
412
Bram Moolenaar2079a602005-01-04 21:43:22 +0000413Included a few improvements for Motif from Marcin Dalecki. Draw label
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000414contents ourselves to make them handle fonts in a way configurable by Vim and
415a bit less dependent on the X11 font management.
416
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000417When a register is empty it is not stored in the viminfo file.
418
Bram Moolenaar8c711452005-01-14 21:53:12 +0000419Removed the tcltags script, it's obsolete.
420
Bram Moolenaar071d4272004-06-13 20:20:40 +0000421==============================================================================
422COMPILE TIME CHANGES *compile-changes-7*
423
Bram Moolenaar2079a602005-01-04 21:43:22 +0000424Dropped the support for the BeOS and Amiga GUI. They were not maintained and
425probably didn't work. If you want to work on this: get the Vim 6.x version
426and merge it back in.
427
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000428Mac: "make" now creates the Vim.app directory and "make install" copies it to
429its final destination. (Raf)
430
431Mac: Made it possible to compile with Motif, Athena or GTK without tricks and
432still being able to use the MacRoman conversion. Added the os_mac_conv.c
433file.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000434
435==============================================================================
436BUG FIXES *bug-fixes-7*
437
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000438When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
439instead of "copy". When 'printdevice' was empty the copy command did not
440work. Use "LPT1" then.
441
442The GTK font dialog uses a font size zero when the font name doesn't include a
443size. Use a default size of 10.
444
445This example in the documentation didn't work:
446 :e `=foo . ".c" `
447Skip over the expression in `=expr` when looking for comments, |, % and #.
448
449When ":helpgrep" doesn't find anything there is no error message.
450
451"L" and "H" did not take closed folds into account.
452
453Win32: The "-P title" argument stopped at the first title that matched, even
454when it doesn't support MDI.
455
456Mac GUI: CTRL-^ and CTRL-@ did not work.
457
458"2daw" on "word." at the end of a line didn't include the preceding white
459space.
460
461Win32: Using FindExecutable() doesn't work to find a program. Use
462SearchPath() instead. For executable() use $PATHEXT when the program searched
463for doesn't have an extension.
464
465When 'virtualedit' is set, moving the cursor up after appending a character
466may move it to a different column. Was caused by auto-formatting moving the
467cursor and not putting it back where it was.
468
469When indent was added automatically and then moving the cursor, the indent was
470not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
471to make it work the old way.
472
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000473When opening a command-line window, 'textwidth' gets set to 78 by the Vim
474filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
475
476After using cursor(line, col) moving up/down doesn't keep the same column.
477
478Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
479fields. (Walter Briscoe)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000480
Bram Moolenaar843ee412004-06-30 16:16:41 +0000481On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
482Michele)
483
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000484Printing with PostScript may keep the printer waiting for more. Append a
485CTRL-D to the printer output. (Mike Williams)
486
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000487When converting a string with a hex or octal number the leading '-' was
488ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
489
490Using "@:" to repeat a command line didn't work when it contains control
491characters.
492
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000493When using file completion for a user command, it would not expand environment
494variables like for a regular command with a file argument.
495
496'cindent': When the argument of a #define looks like a C++ class the next line
497is indented too much.
498
499When 'comments' includes multi-byte characters inserting the middle part and
500alignment may go wrong. 'cindent' also suffers from this for right-aligned
501items.
502
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000503The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
504"cn" or "tw" as intended.
505
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000506When 'bin' is set and 'eol' is not set then line2byte() added the line break
507after the last line while it's not there.
508
509Using foldlevel() in a WinEnter autocommand may not work. Noticed when
510resizing the GUI shell upon startup.
511
512Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
513string with a trailing newline. The newline is ignored.
514
Bram Moolenaar269ec652004-07-29 08:43:53 +0000515When using the ":saveas f2" command for buffer "f1", the Buffers menu would
516contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
517and BufFilePost events for the alternate buffer that gets the old name.
518
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000519strridx() did not work well when the needle is empty. (Ciaran McCreesh)
520
521GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
522just before it is invoked
523
524VMS: Occasionally CR characters were inserted in the file. Expansion of
525environment variables was not correct. (Zoltan Arpadffy)
526
527UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
528from the first character of the word.
529
530When using ":sball" in an autocommand only the filetype in one buffer was
531detected. Reset did_filetype in enter_buffer().
532
533When using ":argdo" and the window already was at the first argument index,
534but not actually editing it, the current buffer would be used instead.
535
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000536When ":next dir/*" includes many matches, adding the names to the argument
537list may take an awful lot of time and can't be interrupted. Allow
538interrupting this.
539
540When editing a file that was already loaded in a buffer, modelines were not
541used. Now window-local options in the modeline are set. Buffer-local options
542and global options remain unmodified.
543
544Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
545command line with non-ASCII characters are not used correctly. Recode the
546file names when 'encoding' is set, using the Unicode command line.
547
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000548Win32 console: When the default for 'encoding' ends up to be "latin1", the
549default value of 'isprint' was wrong.
550
551When an error message is given while waiting for a character (e.g., when an
552xterm reports the number of colors), the hit-enter prompt overwrote the last
553line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
554
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000555Mac GUI: Shift-Tab didn't work.
556
557When defining tooltip text, don't translate terminal codes, since it's not
558going to be used like a command.
559
560GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
561GTK error. Invalid characters may appear when 'encoding' is changed.
562
563GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
564
565Win32: When 'encoding' is changed while starting up, use the Unicode command
566line to convert the file arguments to 'encoding'. Both for the GUI and the
567console version.
568
569Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
570there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
571
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000572When two versions of GTK+ 2 are installed it was possible to use the header
573files from one and the library from the other. Use GTK_LIBDIR to put the
574directory for the library early in the link flags.
575
576With the GUI find/replace dialog a replace only worked if the pattern was
577literal text. Now it works for any pattern.
578
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000579When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
580cause equalizing window heights in the vertical direction.
581
582When ":emenu" is used in a startup script the command was put in the typeahead
583buffer, causing a prompt for the crypt key to be messed up.
584
585Mac OS/X: The default for 'isprint' included characters 128-160, causes
586problems for Terminal.app.
587
588When a syntax item with "containedin" is used, it may match in the start or
589end of a region with a matchgroup, while this doesn't happen for a "contains"
590argument.
591
592When a transparent syntax items matches in another item where the highlighting
593has already stopped (because of a he= argument), the highlighting would come
594back.
595
596When cscope is used to set the quickfix error list, it didn't get set if there
597was only one match. (Sergey Khorev)
598
599When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
600"cancel", would still give an error message.
601
602The PopUp menu items that started Visual mode didn't work when not in Normal
603mode. Switching between selecting a word and a line was not possible.
604
605Win32: The keypad decimal point always resulted in a '.', while on some
606keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
607
608Removed unused function DisplayCompStringOpaque() from gui_w32.c
609
610In Visual mode there is not always an indication whether the line break is
611selected or not. Highlight the character after the line when the line break
612is included, e.g., after "v$o".
613
614GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
615GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
616
617After "Y" '[ and '] were not at start/end of the yanked text.
618
619When a telnet connection is dropped Vim preserves files and exits. While
620doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000621Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
622handle. Added handle_signal().
623
624When using "set laststatus=2 cmdheight=2" in the .gvimrc you may only get one
625line for the cmdline. (Christian Robinson) Invoke command_height() after the
626GUI has started up.
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000627
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000628When completing a file name on the command line backslashes are required for
629white space. Was only done for a space, not for a Tab.
630
631When configure could not find a terminal library, compiling continued for a
632long time before reporting the problem. Added a configure check for tgetent()
633being found in a library.
634
635When the cursor is on the first char of the last line a ":g/pat/s///" command
636may cause the cursor to be displayed below the text.
637
638Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
639is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
640
641When recovering the 'fileformat' and 'fileencoding' were taken from the
642original file instead of from the swapfile. When the file didn't exist, was
643empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
644be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
645the values when recovering.
646
647":bufdo g/something/p" overwrites each last printed text line with the file
648message for the next buffer. Temporarily clear 'shortmess' to avoid that.
649
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000650Win32: Cannot edit a file starting with # with --remote. Do escape % and #
651when building the ":drop" command.
652
Bram Moolenaar86b68352004-12-27 21:59:20 +0000653A comment or | just after a expresion-backtick argument was not recognized.
654E.g. in :e `="foo"`"comment.
655
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000656"(" does not stop at an empty sentence (single dot and white space) while ")"
657does. Also breaks "das" on that dot.
658
659When doing "yy" with the cursor on a TAB the ruler could be wrong and "k"
660moved the cursor to another column.
661
662When 'commentstring' is '"%s' and there is a double quote in the line a double
663quote before the fold marker isn't removed in the text displayed for a closed
664fold.
665
666In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line
667break, resulting in "selected 202 of 201 bytes".
668
Bram Moolenaar2079a602005-01-04 21:43:22 +0000669Motif: fonts were not used for dialog components. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000670
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000671Motif: After using a toolbar button the keyboard focus would be on the toolbar
Bram Moolenaar2079a602005-01-04 21:43:22 +0000672(Lesstif problem). (Marcin Dalecki)
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000673
Bram Moolenaar1c2fda22005-01-02 11:43:19 +0000674When using "y<C-V>`x" where mark x is in the first column, the last line was
675not included.
676
677Not all test scripts work properly on MS-Windows when checked out from CVS.
678Use a Vim command to fix all fileformats to dos before executing the tests.
679
680When using ":new" and the file fits in the window, lines could still be above
681the window. Now remove empty lines instead of keeping the relative position.
682
Bram Moolenaar3d60ec22005-01-05 22:19:46 +0000683Cmdline completion didn't work after ":let var1 var<Tab>".
684
Bram Moolenaarb7d6e722005-01-09 21:22:45 +0000685When using ":startinsert" or ":startreplace" when already in Insert mode
686(possible when using CTRL-R =), pressing Esc would directly restart Insert
687mode. (Peter Winters)
688
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000689"2daw" didn't work at end of file if the last word is a single character.
690
Bram Moolenaar8c711452005-01-14 21:53:12 +0000691Completion for ":next a'<Tab>" put a backslash before single quote, but it was
692not removed when editing a file. Now halve backslashes in save_patterns().
Bram Moolenaar798c5a72005-01-16 22:06:30 +0000693Also fix expanding a file name with the shell that contains "\'".
Bram Moolenaar8c711452005-01-14 21:53:12 +0000694
Bram Moolenaar071d4272004-06-13 20:20:40 +0000695 vim:tw=78:ts=8:ft=help:norl: