blob: f27bcde1cdaf735fdfb20112b76901e1e83c6c2d [file] [log] [blame]
Bram Moolenaarb2956cd2005-01-27 14:42:53 +00001*version7.txt* For Vim version 7.0aa. Last change: 2005 Jan 26
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
Bram Moolenaarb2956cd2005-01-27 14:42:53 +00009compared to Vim 6.x. Use this command to see the version you are using: >
10 :version
Bram Moolenaar071d4272004-06-13 20:20:40 +000011
12See |vi_diff.txt| for an overview of differences between Vi and Vim 7.0.
13See |version4.txt| for differences between Vim 3.x and Vim 4.x.
14See |version5.txt| for differences between Vim 4.x and Vim 5.x.
15See |version6.txt| for differences between Vim 5.x and Vim 6.x.
16
17INCOMPATIBLE CHANGES |incompatible-7|
18
19NEW FEATURES |new-7|
20
Bram Moolenaarbac234e2005-01-17 22:21:07 +000021Vim script enhancements |new-vim-script|
Bram Moolenaar325b7a22004-07-05 15:58:32 +000022KDE support |new-KDE|
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000023Translated manual pages |new-manpage-trans|
Bram Moolenaar8fc061c2004-12-29 21:03:02 +000024Internal grep |new-vimgrep|
Bram Moolenaar071d4272004-06-13 20:20:40 +000025Various new items |new-items-7|
26
27IMPROVEMENTS |improvements-7|
28
29COMPILE TIME CHANGES |compile-changes-7|
30
31BUG FIXES |bug-fixes-7|
32
33==============================================================================
34INCOMPATIBLE CHANGES *incompatible-7*
35
36These changes are incompatible with previous releases. Check this list if you
Bram Moolenaarb2956cd2005-01-27 14:42:53 +000037run into a problem when upgrading from Vim 6.x to 7.0.
38
39A ":write file" command no longer resets the 'modified' flag of the buffer,
40unless the '+' flag is in 'cpoptions' |cpo-+|. This was illogical, since the
41buffer is still modified compared to the original file. And when undoing
42all changes the file would actually be marked modified. It does mean that
43":quit" fails now.
Bram Moolenaar071d4272004-06-13 20:20:40 +000044
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000045":helpgrep" now uses a help window to display a match.
46
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000047In an argument list double quotes could be used to include spaces in a file
48name. This caused a difference between ":edit" and ":next" for escaping
49double quotes and it is incompatible with some versions of Vi.
50 Command Vim 6.x file name Vim 7.x file name ~
51 :edit foo\"888 'foo"888' 'foo"888'
52 :next foo\"888 'foo888' 'foo"888'
53 :next a\"b c\"d 'ab cd' 'a"b' and 'c"d'
54
Bram Moolenaar8c711452005-01-14 21:53:12 +000055In a |literal-string| a single quote can be doubled to get one.
56":echo 'a''b'" would result in "a b", but now that two quotes stand for one it
57results in "a'b".
58
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000059
60Minor incompatibilities:
61
62For filetype detection: For many types, instead of ~/.dir/filename use
63*/.dir/filename, so that it also works for other user's files.
64
65":0verbose" now sets 'verbose' to zero instead of one.
66
67Removed the old and incomplete "VimBuddy" code.
68
69Buffers without a name report "No Name" instead of "No File". It was
70confusing for buffers with a name and 'buftype' set to "nofile".
Bram Moolenaar071d4272004-06-13 20:20:40 +000071
Bram Moolenaar7b0294c2004-10-11 10:16:09 +000072When ":file xxx" is used in a buffer without a name, the alternate file name
73isn't set. This avoids creating buffers without a name that are not useful.
74
75The "2html.vim" script now converts closed folds to HTML. This means the HTML
76looks like its displayed, with the same folds open and closed. Use "zR" if no
77folds should appear in the HTML. (partly by Carl Osterwisch)
Bram Moolenaar47136d72004-10-12 20:02:24 +000078Diff mode now is also converted as it is displayed.
Bram Moolenaar7b0294c2004-10-11 10:16:09 +000079
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000080Win32: The effect of the <F10> key depended on 'winaltkeys'. Now it depends
81on whether <F10> has been mapped or not. This allows mapping <F10> without
82changing 'winaltkeys'.
83
Bram Moolenaar8c711452005-01-14 21:53:12 +000084When 'octal' is in 'nrformats' and using CTRL-A on "08" it became "018", which
85is illogical. Now it becomes "9". The leading zero(s) is(are) removed to
86avoid the number becoming octal after incrementing "009" to "010".
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000087
88When 'encoding' is set to a Unicode encoding, the value for 'fileencodings'
89now includes "default" before "latin1". This means that for files with 8-bit
90encodings the default is to use the encoding specified by the environment, if
91possible. Previously latin1 would always be used, which is wrong in a
92non-latin1 environment, such as Russian.
93
Bram Moolenaar071d4272004-06-13 20:20:40 +000094==============================================================================
95NEW FEATURES *new-7*
96
Bram Moolenaarbac234e2005-01-17 22:21:07 +000097Vim script enhancements *new-vim-script*
98-----------------------
Bram Moolenaar071d4272004-06-13 20:20:40 +000099
100In Vim scripts the following types have been added:
101
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000102 List ordered list of items |List|
103 Dictionary associative array of items |Dictionary|
104 Funcref reference to a function |Funcref|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000105
106Many functions and commands have been added to support the new types.
107
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000108The |string()| function can be used to get a string representation of a
109variable. Works for Numbers, Strings and composites of them. Then |eval()|
110can be used to turn the string back into the variable value.
111
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000112The |:let| command can now use ":let var += expr" like using ":let var = var +
113expr". "-=" and ".=" works in a similar way.
114
Bram Moolenaar843ee412004-06-30 16:16:41 +0000115
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000116KDE support *new-KDE*
Bram Moolenaar843ee412004-06-30 16:16:41 +0000117-----------
118
119Kvim is the KDE version of Vim. It uses the Qt toolkit. See |KVim|.
120(Thomas Capricelli, Philippe Fremy, Mickael Marchand, Mark Westcott, et al.)
121
Bram Moolenaar071d4272004-06-13 20:20:40 +0000122
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000123MzScheme interface *new-MzScheme*
124------------------
125
126The MzScheme interpreter is supported. |MzScheme|
127The |:mzscheme| command can be used to execute MzScheme commands.
128The |:mzfile| command can be used to execute an MzScheme script file.
129
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000130
Bram Moolenaar8299df92004-07-10 09:47:34 +0000131Printing multi-byte text *new-print-multi-byte*
132------------------
133
134The |:hardcopy| command now supports printing multi-byte characters.
135The 'printmbcharset' and 'printmbfont' options are used for this.
136Also see |postscript-cjk-printing|. (Mike Williams)
137
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000138
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000139Translated manual pages *new-manpage-trans*
140-----------------------
141
142The manual page of Vim and associated programs is now also available in
143Italian (translated by Antonio Colombo). More languages will follow.
144
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000145The Unix Makefile installs the Italian manual pages in .../man/it/man1/.
146
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000147
Bram Moolenaar8fc061c2004-12-29 21:03:02 +0000148Internal grep *new-vimgrep*
149-------------
150
151The ":vimgrep" command can be used to search for a pattern in a list of files.
152This is like the ":grep" command, but no external program is used. Besides
153better portability, handling of different file encodings and using multi-line
154patterns, this also allows grepping in compressed and remote files.
155|:vimgrep|.
156
157
Bram Moolenaar071d4272004-06-13 20:20:40 +0000158Various new items *new-items-7*
159-----------------
160
161Normal mode commands: ~
162
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000163a", a' and a` New text objects to select quoted strings. |a'|
164i", i' and i' (Taro Muraoka)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000165
166Options: ~
167
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000168'completefunc' The name of a function used for user-specified Insert
169 mode completion. CTRL-X CTRL-U can be used in Insert
170 mode to do any kind of completion. (Taro Muraoka)
171'quoteescape' Characters used to escape quotes inside a string.
172 Used for the a", a' and a` text objects. |a'|
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000173'numberwidth' Minimal width of the space used for the 'number'
174 option. (Emmanuel Renieris)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000175'mzquantum' Time in msec to schedule MzScheme threads.
Bram Moolenaar8299df92004-07-10 09:47:34 +0000176'printmbcharset' CJK character set to be used for :hardcopy
177'printmbfont' font names to be used for CJK output of :hardcopy
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000178'fsync' Whether fsync() is called after writing a file.
179 (Ciaran McCreesh)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000180'wildoptions' "tagfile" value enables listing the file name of
181 matching tags for CTRL-D command line completion.
182 (based on an idea from Yegappan Lakshmanan)
Bram Moolenaar86b68352004-12-27 21:59:20 +0000183'formatlistpat' pattern to recognize a numbered list for formatting.
184 (idea by Hugo Haas)
185
Bram Moolenaar071d4272004-06-13 20:20:40 +0000186
187Ex commands: ~
188
Bram Moolenaar843ee412004-06-30 16:16:41 +0000189Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
190
Bram Moolenaar8299df92004-07-10 09:47:34 +0000191|:startreplace| Start Replace mode. (Charles Campbell)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000192
Bram Moolenaar8299df92004-07-10 09:47:34 +0000193|:0file| Removes the name of the buffer. (Charles Campbell)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000194
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000195|:diffoff| Switch off diff mode in the current window or in all
196 windows.
197
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000198|:keepalt| Do not change the alternate file.
199
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000200|:delmarks| Delete marks.
201
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000202|:sandbox| Command modifier: execute the argument in the sandbox.
203
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000204|:exusage| Help for Ex commands (Nvi command).
205
206|:viusage| Help for Vi commands (Nvi command).
207
Bram Moolenaar86b68352004-12-27 21:59:20 +0000208|:cbuffer| Read error lines from a buffer. (partly by Yegappan
209 Lakshmanan)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000210
211New functions: ~
212
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000213|add()| append an item to a List
214|append()| append List of lines to the buffer
215|browsedir()| Dialog to select a directory.
216|byteidx()| Index of a character. (Ilya Sher)
217|call()| call a function with List as arguments
218|copy()| make a shallow copy of a List or Dictionary
219|count()| count nr of times a value is in a List or Dictionary
220|deepcopy()| make a full copy of a List or Dictionary
221|empty()| check if List or Dictionary is empty
222|extend()| append one List to another or add items from one
223 Dictionary to another
224|filter()| remove selected items from a List or Dictionary
225|finddir()| Find a directory in 'path'.
226|findfile()| Find a file in 'path'. (Johannes Zellner)
227|foldtextresult()| The text displayed for a closed fold at line "lnum".
228|function()| make a Funcref out of a function name
229|get()| get an item from a List or Dictionary
230|getfontname()| Get actual font name being used.
231|getfperm()| Get file permission string. (Nikolai Weibull)
232|getftype()| Get type of file. (Nikolai Weibull)
233|getline()| get List with buffer lines
234|has_key()| check whether a key appears in a Dictionary
235|insert()| insert an item somewhere in a List
236|items()| get List of Dictionary key-value pairs
237|join()| join List items into a String
238|keys()| get List of Dictionary keys
239|len()| number of items in a List or Dictionary
240|map()| change each List or Dictionary item
241|max()| maximum value in a List or Dictionary
242|min()| minimum value in a List or Dictionary
243|remove()| remove one or more items from a List or Dictionary
244|repeat()| Repeat "expr" "count" times. (Christophe Poucet)
245|reverse()| reverse the order of a List
246|sort()| sort a List
247|split()| split a String into a List
248|string()| String representation of a List or Dictionary
249|system()| Filters {input} through a shell command.
250|tr()| Translate characters. (Ron Aaron)
251|values()| get List of Dictionary values
Bram Moolenaar8299df92004-07-10 09:47:34 +0000252
Bram Moolenaar071d4272004-06-13 20:20:40 +0000253
254New autocommand events: ~
255
Bram Moolenaar8299df92004-07-10 09:47:34 +0000256|InsertEnter| starting Insert or Replace mode
257|InsertChange| going from Insert to Replace mode or back
258|InsertLeave| leaving Insert or Replace mode
Bram Moolenaar843ee412004-06-30 16:16:41 +0000259
Bram Moolenaar8299df92004-07-10 09:47:34 +0000260|ColorScheme| after loading a color scheme
Bram Moolenaar071d4272004-06-13 20:20:40 +0000261
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000262
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000263New items in search patterns: ~
264|/\%d| \%d123 search for character with decimal number
265|/\]| [\d123] idem, in a colletion
266|/\%o| \%o103 search for character with octal number
267|/\]| [\o1o3] idem, in a colletion
268|/\%x| \%x1a search for character with 2 pos. hex number
269|/\]| [\x1a] idem, in a colletion
270|/\%u| \%u12ab search for character with 4 pos. hex number
271|/\]| [\u12ab] idem, in a colletion
272|/\%U| \%U1234abcd search for character with 8 pos. hex number
273|/\]| [\U1234abcd] idem, in a colletion
274 (The above partly by Ciaran McCreesh)
275
276
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000277New Syntax/Indent/FTplugin files: ~
278
279MuPAD source syntax, indent and ftplugin. (Dave Silvia)
280
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000281ABAB/4 syntax file. (Marius van Wyk)
282
283SQL-Informix syntax file. (Dean L Hill)
284
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000285PHP compiler plugin. (Doug Kearns)
286
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000287Sive syntax file. (Nikolai Weibull)
288
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000289
Bram Moolenaar47136d72004-10-12 20:02:24 +0000290New Keymaps: ~
291
292Sinhala (Sri Lanka) (Harshula Jayasuriya)
293
294
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000295New message translations: ~
296
297The Ukranian messages are now also available in cp1251.
298
Bram Moolenaar071d4272004-06-13 20:20:40 +0000299
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000300Others: ~
301
302Mac: Add the selection type to the clipboard, so that Block, line and
303character selections can be used between two Vims. (Eckehard Berns)
304Also fixes the problem that setting 'clipboard' to "unnamed" breaks using
305"yyp".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000306
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000307Mac: GUI font selector. (Peter "Rain Dog" Cucka)
308
Bram Moolenaar2079a602005-01-04 21:43:22 +0000309GUI font selector for Motif. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000310
Bram Moolenaar2079a602005-01-04 21:43:22 +0000311Mnemonics for the Motif find/replace dialog. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000312
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000313Mac: better integration with Xcode. Post a fake mouse-up event after the odoc
314event and the drag receive handler to work around a stall after Vim loads a
315file. Fixed an off-by-one line number error. (Da Woon Jung)
316
Bram Moolenaar843ee412004-06-30 16:16:41 +0000317The netrw plugin now also supports viewing a directory, when "scp://" is used.
318Deleting and renaming files is possible. (Charles Campbell)
319
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000320Added the t_SI and t_EI escape sequences for starting and ending Insert mode.
321To be used to set the cursor shape to a bar or a block. No default values,
322they are not supported by termcap/terminfo.
323
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000324Autocommands can be defined local to a buffer. This means they will also work
325when the buffer does not have a name or no specific name. See
326|autocmd-buflocal|. (Yakov Lerner)
327
Bram Moolenaar071d4272004-06-13 20:20:40 +0000328==============================================================================
329IMPROVEMENTS *improvements-7*
330
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000331":helpgrep" accepts a language specifier after the pattern: "pat@it".
332
Bram Moolenaar8299df92004-07-10 09:47:34 +0000333Move the help for printing to a separate help file. It's quite a lot now.
334
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000335":breakadd here" and ":breakdel here" can be used to set or delete a
336breakpoint at the cursor.
337
Bram Moolenaar843ee412004-06-30 16:16:41 +0000338The tutor was updated to make it simpler to use and added text to explain a
339few more important commands. Used ideas from Gabriel Zachmann.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000340
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000341Unix: When libcall() fails obtain an error message with dlerror() and display
342it. (Johannes Zellner)
343
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000344Added "nbsp" in 'listchars'. (David Blanchet)
345
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000346Added the "acwrite" value for the 'buftype' option. This is for a buffer that
347doesn not have a name that refers to a file and is written with BufWriteCmd
348autocommands.
349
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000350For lisp indenting and matching parenthesis: (Sergey Khorev)
351- square brackets are recognized properly
352- #\(, #\), #\[ and #\] are recognized as character literals
353- Lisp line comments (delimited by semicolon) are recognized
354
Bram Moolenaar89cb5e02004-07-19 20:55:54 +0000355Added the "count" argument to match(), matchend() and matchstr(). (Ilya Sher)
356
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000357winnr() takes an optional "$" and "#" arguments. (Nikolai Weibull, Yegappan
358Lakshmanan)
359
360Added 'n' flag to search(): don't move the cursor. (Nikolai Weibull)
361
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000362When uncompressing fails in the gzip plugin, give an error message but don't
363delete the raw text. Helps if the file has a .gz extension but is not
364actually compressed. (Andrew Pimlott)
365
366When C, C++ or IDL syntax is used, may additionally load doxygen syntax.
367Also support setting the filetype to "cdoxygen" for C plus doxygen syntax.
368(Michael Geddes)
369
370The ":registers" command now displays multi-byte characters properly.
371
372VMS: In the usage message mention that a slash can be used to make a flag
373upper case. Add color support to the builtin vt320 terminal codes.
374(Zoltan Arpadffy)
375
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000376For the '%' item in 'viminfo', allow a number to set a maximum for the number
377of buffers.
378
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000379The 'statusline' option can be local to the window, so that each window can
380have a different value. (partly by Yegappan Lakshmanan)
381
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000382When a file looks like a shell script, check for an "exec" command that starts
383the tcl interpreter. (suggested by Alexios Zavras)
384
385Support conversion between utf-8 and latin9 (iso-8859-15) internally, so that
386digraphs still work when iconv is not available.
387
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000388When a session file is loaded while editing an unnamed, empty buffer that
389buffer is wiped out. Avoids that there is an unused buffer in the buffer
390list.
391
392Win32: When libintl.dll supports bind_textdomain_codeset(), use it.
393(NAKADAIRA Yukihiro)
394
395When foldtext() finds no text after removing the comment leader, use the
396second line of the fold. Helps for C-style /* */ comments where the first
397line is just "/*".
398
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000399When editing the same file from two systems (e.g., Unix and MS-Windows) there
400mostly was no warning for an existing swap file, because the name of the
401edited file differs (e.g., y:\dir\file vs /home/me/dir/file). Added a flag to
402the swap file to indicate it is in the same directory as the edited file. The
403used path then doesn't matter and the check for editing the same file is much
404more reliable.
405
406Client-server communication now supports 'encoding'. When setting 'encoding'
407in a Vim server to "utf-8", and using "vim --remote fname" in a console,
408"fname" is converted from the console encoding to utf-8. Also allows Vims
409with different 'encoding' settings to exchange messages.
410
Bram Moolenaar86b68352004-12-27 21:59:20 +0000411Internal: Changed ga_room into ga_maxlen, so that it doesn't need to be
412incremented/decremented each time.
413
Bram Moolenaar2079a602005-01-04 21:43:22 +0000414Included a few improvements for Motif from Marcin Dalecki. Draw label
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000415contents ourselves to make them handle fonts in a way configurable by Vim and
416a bit less dependent on the X11 font management.
417
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000418When a register is empty it is not stored in the viminfo file.
419
Bram Moolenaar8c711452005-01-14 21:53:12 +0000420Removed the tcltags script, it's obsolete.
421
Bram Moolenaardcaf10e2005-01-21 11:55:25 +0000422":redir @*>" and ":redir @+>" append to the clipboard. Better check for
423invalid characters after the register name.
424
425":let g:" lists global variables.
426":let b:" lists buffer-local variables.
427":let w:" lists window-local variables.
428":let v:" lists Vim variables.
429
Bram Moolenaarb71ec9f2005-01-25 22:22:02 +0000430The stridx() funcion takes a third argument, where to start searching.
431(Yegappan Lakshmanan)
432
Bram Moolenaar071d4272004-06-13 20:20:40 +0000433==============================================================================
434COMPILE TIME CHANGES *compile-changes-7*
435
Bram Moolenaar2079a602005-01-04 21:43:22 +0000436Dropped the support for the BeOS and Amiga GUI. They were not maintained and
437probably didn't work. If you want to work on this: get the Vim 6.x version
438and merge it back in.
439
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000440Mac: "make" now creates the Vim.app directory and "make install" copies it to
441its final destination. (Raf)
442
443Mac: Made it possible to compile with Motif, Athena or GTK without tricks and
444still being able to use the MacRoman conversion. Added the os_mac_conv.c
445file.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000446
447==============================================================================
448BUG FIXES *bug-fixes-7*
449
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000450When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
451instead of "copy". When 'printdevice' was empty the copy command did not
452work. Use "LPT1" then.
453
454The GTK font dialog uses a font size zero when the font name doesn't include a
455size. Use a default size of 10.
456
457This example in the documentation didn't work:
458 :e `=foo . ".c" `
459Skip over the expression in `=expr` when looking for comments, |, % and #.
460
461When ":helpgrep" doesn't find anything there is no error message.
462
463"L" and "H" did not take closed folds into account.
464
465Win32: The "-P title" argument stopped at the first title that matched, even
466when it doesn't support MDI.
467
468Mac GUI: CTRL-^ and CTRL-@ did not work.
469
470"2daw" on "word." at the end of a line didn't include the preceding white
471space.
472
473Win32: Using FindExecutable() doesn't work to find a program. Use
474SearchPath() instead. For executable() use $PATHEXT when the program searched
475for doesn't have an extension.
476
477When 'virtualedit' is set, moving the cursor up after appending a character
478may move it to a different column. Was caused by auto-formatting moving the
479cursor and not putting it back where it was.
480
481When indent was added automatically and then moving the cursor, the indent was
482not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
483to make it work the old way.
484
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000485When opening a command-line window, 'textwidth' gets set to 78 by the Vim
486filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
487
488After using cursor(line, col) moving up/down doesn't keep the same column.
489
490Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
491fields. (Walter Briscoe)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000492
Bram Moolenaar843ee412004-06-30 16:16:41 +0000493On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
494Michele)
495
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000496Printing with PostScript may keep the printer waiting for more. Append a
497CTRL-D to the printer output. (Mike Williams)
498
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000499When converting a string with a hex or octal number the leading '-' was
500ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
501
502Using "@:" to repeat a command line didn't work when it contains control
503characters.
504
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000505When using file completion for a user command, it would not expand environment
506variables like for a regular command with a file argument.
507
508'cindent': When the argument of a #define looks like a C++ class the next line
509is indented too much.
510
511When 'comments' includes multi-byte characters inserting the middle part and
512alignment may go wrong. 'cindent' also suffers from this for right-aligned
513items.
514
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000515The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
516"cn" or "tw" as intended.
517
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000518When 'bin' is set and 'eol' is not set then line2byte() added the line break
519after the last line while it's not there.
520
521Using foldlevel() in a WinEnter autocommand may not work. Noticed when
522resizing the GUI shell upon startup.
523
524Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
525string with a trailing newline. The newline is ignored.
526
Bram Moolenaar269ec652004-07-29 08:43:53 +0000527When using the ":saveas f2" command for buffer "f1", the Buffers menu would
528contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
529and BufFilePost events for the alternate buffer that gets the old name.
530
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000531strridx() did not work well when the needle is empty. (Ciaran McCreesh)
532
533GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
534just before it is invoked
535
536VMS: Occasionally CR characters were inserted in the file. Expansion of
537environment variables was not correct. (Zoltan Arpadffy)
538
539UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
540from the first character of the word.
541
542When using ":sball" in an autocommand only the filetype in one buffer was
543detected. Reset did_filetype in enter_buffer().
544
545When using ":argdo" and the window already was at the first argument index,
546but not actually editing it, the current buffer would be used instead.
547
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000548When ":next dir/*" includes many matches, adding the names to the argument
549list may take an awful lot of time and can't be interrupted. Allow
550interrupting this.
551
552When editing a file that was already loaded in a buffer, modelines were not
553used. Now window-local options in the modeline are set. Buffer-local options
554and global options remain unmodified.
555
556Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
557command line with non-ASCII characters are not used correctly. Recode the
558file names when 'encoding' is set, using the Unicode command line.
559
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000560Win32 console: When the default for 'encoding' ends up to be "latin1", the
561default value of 'isprint' was wrong.
562
563When an error message is given while waiting for a character (e.g., when an
564xterm reports the number of colors), the hit-enter prompt overwrote the last
565line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
566
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000567Mac GUI: Shift-Tab didn't work.
568
569When defining tooltip text, don't translate terminal codes, since it's not
570going to be used like a command.
571
572GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
573GTK error. Invalid characters may appear when 'encoding' is changed.
574
575GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
576
577Win32: When 'encoding' is changed while starting up, use the Unicode command
578line to convert the file arguments to 'encoding'. Both for the GUI and the
579console version.
580
581Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
582there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
583
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000584When two versions of GTK+ 2 are installed it was possible to use the header
585files from one and the library from the other. Use GTK_LIBDIR to put the
586directory for the library early in the link flags.
587
588With the GUI find/replace dialog a replace only worked if the pattern was
589literal text. Now it works for any pattern.
590
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000591When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
592cause equalizing window heights in the vertical direction.
593
594When ":emenu" is used in a startup script the command was put in the typeahead
595buffer, causing a prompt for the crypt key to be messed up.
596
597Mac OS/X: The default for 'isprint' included characters 128-160, causes
598problems for Terminal.app.
599
600When a syntax item with "containedin" is used, it may match in the start or
601end of a region with a matchgroup, while this doesn't happen for a "contains"
602argument.
603
604When a transparent syntax items matches in another item where the highlighting
605has already stopped (because of a he= argument), the highlighting would come
606back.
607
608When cscope is used to set the quickfix error list, it didn't get set if there
609was only one match. (Sergey Khorev)
610
611When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
612"cancel", would still give an error message.
613
614The PopUp menu items that started Visual mode didn't work when not in Normal
615mode. Switching between selecting a word and a line was not possible.
616
617Win32: The keypad decimal point always resulted in a '.', while on some
618keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
619
620Removed unused function DisplayCompStringOpaque() from gui_w32.c
621
622In Visual mode there is not always an indication whether the line break is
623selected or not. Highlight the character after the line when the line break
624is included, e.g., after "v$o".
625
626GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
627GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
628
629After "Y" '[ and '] were not at start/end of the yanked text.
630
631When a telnet connection is dropped Vim preserves files and exits. While
632doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000633Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
634handle. Added handle_signal().
635
636When using "set laststatus=2 cmdheight=2" in the .gvimrc you may only get one
637line for the cmdline. (Christian Robinson) Invoke command_height() after the
638GUI has started up.
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000639
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000640When completing a file name on the command line backslashes are required for
641white space. Was only done for a space, not for a Tab.
642
643When configure could not find a terminal library, compiling continued for a
644long time before reporting the problem. Added a configure check for tgetent()
645being found in a library.
646
647When the cursor is on the first char of the last line a ":g/pat/s///" command
648may cause the cursor to be displayed below the text.
649
650Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
651is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
652
653When recovering the 'fileformat' and 'fileencoding' were taken from the
654original file instead of from the swapfile. When the file didn't exist, was
655empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
656be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
657the values when recovering.
658
659":bufdo g/something/p" overwrites each last printed text line with the file
660message for the next buffer. Temporarily clear 'shortmess' to avoid that.
661
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000662Win32: Cannot edit a file starting with # with --remote. Do escape % and #
663when building the ":drop" command.
664
Bram Moolenaar86b68352004-12-27 21:59:20 +0000665A comment or | just after a expresion-backtick argument was not recognized.
666E.g. in :e `="foo"`"comment.
667
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000668"(" does not stop at an empty sentence (single dot and white space) while ")"
669does. Also breaks "das" on that dot.
670
671When doing "yy" with the cursor on a TAB the ruler could be wrong and "k"
672moved the cursor to another column.
673
674When 'commentstring' is '"%s' and there is a double quote in the line a double
675quote before the fold marker isn't removed in the text displayed for a closed
676fold.
677
678In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line
679break, resulting in "selected 202 of 201 bytes".
680
Bram Moolenaar2079a602005-01-04 21:43:22 +0000681Motif: fonts were not used for dialog components. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000682
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000683Motif: After using a toolbar button the keyboard focus would be on the toolbar
Bram Moolenaar2079a602005-01-04 21:43:22 +0000684(Lesstif problem). (Marcin Dalecki)
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000685
Bram Moolenaar1c2fda22005-01-02 11:43:19 +0000686When using "y<C-V>`x" where mark x is in the first column, the last line was
687not included.
688
689Not all test scripts work properly on MS-Windows when checked out from CVS.
690Use a Vim command to fix all fileformats to dos before executing the tests.
691
692When using ":new" and the file fits in the window, lines could still be above
693the window. Now remove empty lines instead of keeping the relative position.
694
Bram Moolenaar3d60ec22005-01-05 22:19:46 +0000695Cmdline completion didn't work after ":let var1 var<Tab>".
696
Bram Moolenaarb7d6e722005-01-09 21:22:45 +0000697When using ":startinsert" or ":startreplace" when already in Insert mode
698(possible when using CTRL-R =), pressing Esc would directly restart Insert
699mode. (Peter Winters)
700
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000701"2daw" didn't work at end of file if the last word is a single character.
702
Bram Moolenaar8c711452005-01-14 21:53:12 +0000703Completion for ":next a'<Tab>" put a backslash before single quote, but it was
704not removed when editing a file. Now halve backslashes in save_patterns().
Bram Moolenaar798c5a72005-01-16 22:06:30 +0000705Also fix expanding a file name with the shell that contains "\'".
Bram Moolenaar8c711452005-01-14 21:53:12 +0000706
Bram Moolenaarb71ec9f2005-01-25 22:22:02 +0000707When doing "1,6d|put" only "fewer lines" was reported. Now a following "more
708lines" overwrites the message.
709
710Configure could not handle "-Dfoo=long\ long" in the TCL config output.
711
Bram Moolenaarb2956cd2005-01-27 14:42:53 +0000712When searching backwards, using a pattern that matches a newline and uses \zs
713after that, didn't find a match. Could also get a hang or end up in the right
714column in the wrong line.
715
Bram Moolenaar071d4272004-06-13 20:20:40 +0000716 vim:tw=78:ts=8:ft=help:norl: