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