782
|
1 *version7.txt* For Vim version 7.0aa. Last change: 2006 Mar 18
|
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|
|
222
|
22 Spell checking |new-spell|
|
523
|
23 Omni completion |new-omni-completion|
|
306
|
24 MzScheme interface |new-MzScheme|
|
|
25 Printing multi-byte text |new-print-multi-byte|
|
747
|
26 Tab pages |new-tab-pages|
|
761
|
27 Undo branches |new-undo-branches|
|
714
|
28 Extended Unicode support |new-more-unicode|
|
747
|
29 More highlighting |new-more-highlighting|
|
36
|
30 Translated manual pages |new-manpage-trans|
|
43
|
31 Internal grep |new-vimgrep|
|
446
|
32 Scroll back in messages |new-scroll-back|
|
774
|
33 Cursor past end of the line |new-onemore|
|
164
|
34 POSIX compatibility |new-posix|
|
192
|
35 Debugger support |new-debug-support|
|
462
|
36 Remote file explorer |new-netrw-explore|
|
594
|
37 Define an operator |new-define-operator|
|
725
|
38 Mapping to an expression |new-map-expression|
|
647
|
39 Location list |new-location-list|
|
7
|
40 Various new items |new-items-7|
|
|
41
|
|
42 IMPROVEMENTS |improvements-7|
|
|
43
|
|
44 COMPILE TIME CHANGES |compile-changes-7|
|
|
45
|
|
46 BUG FIXES |bug-fixes-7|
|
|
47
|
|
48 ==============================================================================
|
|
49 INCOMPATIBLE CHANGES *incompatible-7*
|
|
50
|
|
51 These changes are incompatible with previous releases. Check this list if you
|
141
|
52 run into a problem when upgrading from Vim 6.x to 7.0.
|
|
53
|
|
54 A ":write file" command no longer resets the 'modified' flag of the buffer,
|
|
55 unless the '+' flag is in 'cpoptions' |cpo-+|. This was illogical, since the
|
|
56 buffer is still modified compared to the original file. And when undoing
|
|
57 all changes the file would actually be marked modified. It does mean that
|
|
58 ":quit" fails now.
|
7
|
59
|
10
|
60 ":helpgrep" now uses a help window to display a match.
|
|
61
|
39
|
62 In an argument list double quotes could be used to include spaces in a file
|
|
63 name. This caused a difference between ":edit" and ":next" for escaping
|
|
64 double quotes and it is incompatible with some versions of Vi.
|
|
65 Command Vim 6.x file name Vim 7.x file name ~
|
|
66 :edit foo\"888 'foo"888' 'foo"888'
|
|
67 :next foo\"888 'foo888' 'foo"888'
|
|
68 :next a\"b c\"d 'ab cd' 'a"b' and 'c"d'
|
|
69
|
100
|
70 In a |literal-string| a single quote can be doubled to get one.
|
|
71 ":echo 'a''b'" would result in "a b", but now that two quotes stand for one it
|
|
72 results in "a'b".
|
|
73
|
460
|
74 When overwriting a file with ":w! fname" there was no warning for when "fname"
|
|
75 was being edited by another Vim. Vim now gives an error message |E768|.
|
|
76
|
575
|
77 The support for Mac OS 9 has been removed.
|
|
78
|
10
|
79
|
|
80 Minor incompatibilities:
|
|
81
|
|
82 For filetype detection: For many types, instead of ~/.dir/filename use
|
|
83 */.dir/filename, so that it also works for other user's files.
|
|
84
|
|
85 ":0verbose" now sets 'verbose' to zero instead of one.
|
|
86
|
|
87 Removed the old and incomplete "VimBuddy" code.
|
|
88
|
|
89 Buffers without a name report "No Name" instead of "No File". It was
|
|
90 confusing for buffers with a name and 'buftype' set to "nofile".
|
7
|
91
|
29
|
92 When ":file xxx" is used in a buffer without a name, the alternate file name
|
|
93 isn't set. This avoids creating buffers without a name that are not useful.
|
|
94
|
|
95 The "2html.vim" script now converts closed folds to HTML. This means the HTML
|
279
|
96 looks like its displayed, with the same folds open and closed. Use "zR", or
|
|
97 "let html_ignore_folding=1", if no folds should appear in the HTML. (partly by
|
|
98 Carl Osterwisch)
|
32
|
99 Diff mode now is also converted as it is displayed.
|
29
|
100
|
36
|
101 Win32: The effect of the <F10> key depended on 'winaltkeys'. Now it depends
|
|
102 on whether <F10> has been mapped or not. This allows mapping <F10> without
|
|
103 changing 'winaltkeys'.
|
|
104
|
100
|
105 When 'octal' is in 'nrformats' and using CTRL-A on "08" it became "018", which
|
|
106 is illogical. Now it becomes "9". The leading zero(s) is(are) removed to
|
|
107 avoid the number becoming octal after incrementing "009" to "010".
|
39
|
108
|
|
109 When 'encoding' is set to a Unicode encoding, the value for 'fileencodings'
|
|
110 now includes "default" before "latin1". This means that for files with 8-bit
|
|
111 encodings the default is to use the encoding specified by the environment, if
|
|
112 possible. Previously latin1 would always be used, which is wrong in a
|
|
113 non-latin1 environment, such as Russian.
|
|
114
|
149
|
115 Previously Vim would exit when there are two windows, both of them displaying
|
|
116 a help file, and using ":quit". Now only the window is closed.
|
|
117
|
164
|
118 "-w {scriptout}" only works when {scriptout} doesn't start with a digit.
|
|
119 Otherwise it's used to set the 'window' option.
|
|
120
|
181
|
121 Previously <Home> and <xHome> could be mapped separately. This had the
|
|
122 disadvantage that all mappings (with modifiers) had to be duplicated, since
|
|
123 you can't be sure what the keyboard generates. Now all <xHome> are internally
|
|
124 translated to <Home>, both for the keys and for mappings. Also for <xEnd>,
|
|
125 <xF1>, etc.
|
|
126
|
237
|
127 ":put" now leaves the cursor on the last inserted line.
|
|
128
|
379
|
129 When a .gvimrc file exists then 'compatible' is off, just like when a ".vimrc"
|
|
130 file exists.
|
|
131
|
494
|
132 When making a string upper-case with "vlllU" or similar then the German sharp
|
|
133 s is replaced with "SS". This does not happen with "~" to avoid backwards
|
|
134 compatibility problems and because "SS" can't be changed back to a sharp s.
|
|
135
|
505
|
136 "gd" previously found the very first occurrence of a variable in a function,
|
|
137 that could be the function argument without type. Now it finds the position
|
|
138 where the type is given.
|
|
139
|
697
|
140 The line continuation in functions was not taken into account, line numbers in
|
|
141 errors were logical lines, not lines in the sourced file. That made it
|
|
142 difficult to locate errors. Now the line number in the sourced file is
|
|
143 reported, relative to the function start. This also means that line numbers
|
|
144 for ":breakadd func" are different.
|
|
145
|
7
|
146 ==============================================================================
|
|
147 NEW FEATURES *new-7*
|
|
148
|
116
|
149 Vim script enhancements *new-vim-script*
|
|
150 -----------------------
|
7
|
151
|
|
152 In Vim scripts the following types have been added:
|
|
153
|
97
|
154 List ordered list of items |List|
|
|
155 Dictionary associative array of items |Dictionary|
|
|
156 Funcref reference to a function |Funcref|
|
7
|
157
|
|
158 Many functions and commands have been added to support the new types.
|
|
159
|
97
|
160 The |string()| function can be used to get a string representation of a
|
|
161 variable. Works for Numbers, Strings and composites of them. Then |eval()|
|
|
162 can be used to turn the string back into the variable value.
|
|
163
|
116
|
164 The |:let| command can now use ":let var += expr" like using ":let var = var +
|
|
165 expr". "-=" and ".=" works in a similar way.
|
|
166
|
175
|
167 With the |:profile| command you can find out where your function or script
|
|
168 wastes its time.
|
|
169
|
634
|
170 In the Python interface vim.eval() also handles Dictionaries and Lists.
|
|
171 |python-eval| (G. Sumner Hayes)
|
|
172
|
11
|
173
|
222
|
174 Spell checking *new-spell*
|
|
175 --------------
|
|
176
|
|
177 Spell checking has been integrated in Vim. There were a few implementations
|
|
178 with scripts, but they were slow and/or required an external program.
|
|
179
|
|
180 The 'spell' option is used to switch spell checking on or off.
|
|
181 The 'spelllang' option is used to specify the languages that are accepted.
|
323
|
182 The 'spellfile' option specifies where new words are added.
|
379
|
183 The 'spellsuggest' option specifies the methods used for making suggestions
|
323
|
184
|
|
185 The |[s| and |]s| commands can be used to move to the next or previous error.
|
|
186 The |zg| and |zw| commands can be used to add good and wrong words.
|
594
|
187 The |z=| command can be used to correct the word.
|
379
|
188 The |:mkspell| command is used to generate a Vim spell file from word lists.
|
222
|
189
|
|
190 The "undercurl" highlighting attribute was added to nicely point out spelling
|
|
191 mistakes in the GUI (based on patch from Marcin Dalecki).
|
|
192 The "guisp" color can be used to give it a color different from foreground and
|
|
193 background.
|
|
194 The number of possible different highlight attributes was raised from about
|
|
195 220 to over 30000. This allows for the attributes of spelling to be combined
|
301
|
196 with syntax highlighting attributes. This is also used for syntax
|
|
197 highlighting.
|
222
|
198
|
|
199 Much more info here: |spell|.
|
|
200
|
|
201
|
523
|
202 Omni completion *new-omni-completion*
|
|
203 -----------------
|
|
204
|
|
205 This could also be called "intellisense", but that is a trademark. It is a
|
|
206 smart kind of completion. The text in front of the cursor is inspected to
|
659
|
207 figure out what could be following. This may suggest struct and class
|
|
208 members, system functions, etc.
|
523
|
209
|
|
210 Use CTRL-X CTRL-O in Insert mode to start the completion. |i_CTRL-X_CTRL-O|
|
|
211
|
|
212 The 'omnifunc' option is set by filetype plugins to define the function that
|
|
213 figures out the completion.
|
|
214
|
541
|
215 Currently supported languages:
|
659
|
216 C |ft-c-omni|
|
|
217 (X)HTML with CSS |ft-html-omni|
|
|
218 JavaScript |ft-javascript-omni|
|
|
219 any language wih syntax highligting |ft-syntax-omni|
|
|
220 XML |ft-xml-omni|
|
541
|
221
|
|
222 When the 'completeopt' option contains "menu" then matches for Insert mode
|
|
223 completion are displayed in a popup menu.
|
523
|
224
|
|
225
|
14
|
226 MzScheme interface *new-MzScheme*
|
|
227 ------------------
|
|
228
|
|
229 The MzScheme interpreter is supported. |MzScheme|
|
|
230 The |:mzscheme| command can be used to execute MzScheme commands.
|
|
231 The |:mzfile| command can be used to execute an MzScheme script file.
|
|
232
|
97
|
233
|
15
|
234 Printing multi-byte text *new-print-multi-byte*
|
|
235 ------------------
|
|
236
|
|
237 The |:hardcopy| command now supports printing multi-byte characters.
|
|
238 The 'printmbcharset' and 'printmbfont' options are used for this.
|
|
239 Also see |postscript-cjk-printing|. (Mike Williams)
|
|
240
|
14
|
241
|
747
|
242 Tab pages *new-tab-pages*
|
|
243 ---------
|
|
244
|
|
245 A tab page is page with one or more windows with a label (aka tab) at the top.
|
|
246 By clicking on the label you can quickly switch between the tab pages. And
|
|
247 with the keyboard, using the |gt| (Goto Tab) command. This is a convenient
|
|
248 way to work with many windows.
|
|
249
|
|
250 To start Vim with each file argument in a separate tab page use the |-p|
|
|
251 argument. The maximum number of pages can be set with 'tabpagemax'.
|
|
252
|
|
253 The line with tab labels is either made with plain text an highlighting or
|
|
254 with a GUI mechanism. The GUI labels look better but are only available on a
|
|
255 few systems. The line can be customized with 'tabline' and 'guitablabel'.
|
|
256 Whether it is displayed is set with 'showtabline'. Whether to use the GUI
|
|
257 labels is set with the "e" flag in 'guioptions'.
|
|
258
|
|
259 The |:tab| command modifier can be used to have most commands that open a new
|
|
260 window open a new tab instead.
|
|
261
|
754
|
262 The |--remote-tab| argument can be used to edit a file in a new tab page in an
|
|
263 already running Vim server.
|
|
264
|
747
|
265 More info here: |tabpage|
|
|
266
|
|
267
|
761
|
268 Undo branches *new-undo-branches*
|
|
269 -------------
|
|
270
|
|
271 Previously there was only one line of undo-redo. If, after undoing a number
|
|
272 of changes, a new change was made all the undone changes were lost. This
|
774
|
273 could lead to accidentally losing work.
|
761
|
274
|
|
275 Vim now makes an undo branch in this situation. Thus you can go back to the
|
|
276 text after any change, even if they were undone. So long as you do not run
|
774
|
277 into 'undolevels', undo information is freed up to limit the memory used.
|
761
|
278
|
|
279 To be able to navigate the undo branches each change is numbered sequentially.
|
|
280 The commands |g-| and |:earlier| go back in time, to older changes. The
|
|
281 commands |g+| and |:later| go forward in time, to newer changes.
|
|
282
|
|
283 The changes are also timestamped. Use ":earlier 10m" to go to the text as it
|
|
284 was about ten minutes earlier.
|
|
285
|
774
|
286 The |:undolist| command can be used to get an idea of which undo branches
|
|
287 exist. The |:undo| command now takes an argument to directly jump to a
|
777
|
288 specific position in this list. The |changenr()| function can be used to
|
|
289 obtain the change number.
|
774
|
290
|
761
|
291 There is no graphical display of the tree with changes, navigation can be
|
|
292 quite confusing.
|
|
293
|
|
294
|
714
|
295 Extended Unicode support *new-more-unicode*
|
|
296 ------------------------
|
|
297
|
|
298 Previously only two combining characters were displayed. The limit is now
|
|
299 raised to 6. This can be set with the 'maxcombine' option. The default is
|
|
300 still 2.
|
|
301
|
|
302 |ga| now shows all combining characters, not just the first two.
|
|
303
|
|
304 Previously only 16 bit Unicode characters were supported for displaying. Now
|
|
305 the full 32 bit character set can be used. Unless manually disabled at
|
|
306 compile time.
|
|
307
|
|
308 For pattern matching it is now possible to search for individual composing
|
|
309 characters. |patterns-composing|
|
|
310
|
777
|
311 The |8g8| command searches for an illegal UTF-8 byte sequence.
|
|
312
|
714
|
313
|
747
|
314 More highlighting *new-more-highlighting*
|
|
315 -----------------
|
|
316
|
|
317 Highlighting matching parens
|
694
|
318
|
|
319 When moving the cursor through the text and it is on a paren, then the
|
|
320 matching paren can be highlighted. This uses the new |CursorMoved|
|
|
321 autocommand event.
|
|
322
|
700
|
323 See |matchparen| for more information.
|
|
324
|
|
325 The plugin uses the |:match| command. It now supports three match patterns.
|
|
326 The plugin uses the third one. The first one is for the user and the second
|
|
327 one can be used by another plugin.
|
694
|
328
|
747
|
329 Highlighting the cursor line and column
|
|
330
|
|
331 The 'cursorline' and 'cursorcolumn' options have been added. These highlight
|
|
332 the screen line and screen column of the cursor. This makes the cursor
|
|
333 position easier to spot. 'cursorcolumn' is also useful to align text. The
|
|
334 CursorColumn and CursorLine highlighting allow changing the colors used.
|
|
335 |hl-CursorColumn| |hl-CursorLine|
|
|
336
|
694
|
337
|
36
|
338 Translated manual pages *new-manpage-trans*
|
|
339 -----------------------
|
|
340
|
|
341 The manual page of Vim and associated programs is now also available in
|
200
|
342 several other languages.
|
|
343
|
237
|
344 French - translated by David Blanchet
|
200
|
345 Italian - translated by Antonio Colombo
|
|
346 Russian - translated by Vassily Ragosin
|
36
|
347
|
237
|
348 The Unix Makefile installs the Italian manual pages in .../man/it/man1/,
|
|
349 .../man/it.ISO8859-1/man1/ and .../man/it.UTF-8/man1/. There appears to be no
|
|
350 standard for what encoding goes in the "it" directory, the 8-bit encoded file
|
|
351 is used there as a best guess.
|
|
352 Other languages are installed in similar places.
|
284
|
353 The translated pages are not automatically installed when Vim was configured
|
|
354 with "--disable-nls", but "make install-languages install-tool-languages" will
|
|
355 do it anyway.
|
40
|
356
|
36
|
357
|
43
|
358 Internal grep *new-vimgrep*
|
|
359 -------------
|
|
360
|
|
361 The ":vimgrep" command can be used to search for a pattern in a list of files.
|
|
362 This is like the ":grep" command, but no external program is used. Besides
|
|
363 better portability, handling of different file encodings and using multi-line
|
|
364 patterns, this also allows grepping in compressed and remote files.
|
|
365 |:vimgrep|.
|
|
366
|
170
|
367 If you want to use the search results in a script you can use the
|
231
|
368 |getqflist()| function.
|
170
|
369
|
445
|
370 To search in files in various directories the "**" pattern can be used. It
|
|
371 expands into an arbitrary depth of directories. "**" can be used in all
|
|
372 places where file names are expanded, thus also with |:next| and |:args|.
|
|
373
|
43
|
374
|
446
|
375 Scroll back in messages *new-scroll-back*
|
|
376 -----------------------
|
|
377
|
|
378 When displaying messages, at the |more-prompt| and the |hit-enter-prompt|, The
|
|
379 'k', 'u' and 'b' keys can be used to scroll back to previous messages. This
|
|
380 is especially useful for commands such as ":syntax", ":autocommand" and
|
|
381 ":highlight". This is implemented in a generic way thus it works for all
|
|
382 commands and highlighting is kept. Only works when the 'more' option is set.
|
|
383 Previously it only partly worked for ":clist".
|
|
384
|
448
|
385 The |g<| command can be used to see the last page of messages after you have
|
|
386 hit <Enter> at the |hit-enter-prompt|. Then you can scroll further back.
|
|
387
|
446
|
388
|
774
|
389 Cursor past end of the line *new-onemore*
|
|
390 ---------------------------
|
|
391
|
|
392 When the 'virtualedit' option contains "onemore" the cursor can move just past
|
|
393 the end of the line. As if it's on top of the line break.
|
|
394
|
|
395 This makes some commands more consistent. Previously the cursor was always
|
|
396 past the end of the line if the line was empty. But it is far from Vi
|
|
397 compatible. It may also break some plugins or Vim scripts. Use with care!
|
|
398
|
|
399 The patch was provided by Mattias Flodin.
|
|
400
|
|
401
|
164
|
402 POSIX compatibility *new-posix*
|
|
403 -------------------
|
|
404
|
|
405 The POSIX test suite was used to verify POSIX compatibility. A number of
|
|
406 problems have been fixed to make Vim more POSIX compatible. Some of them
|
|
407 conflict with traditional Vi or expected behavior. The $VIM_POSIX environment
|
|
408 variable can be set to get POSIX compatibility. See |posix|.
|
|
409
|
|
410 Items that were fixed for both Vi and POSIX compatibilty:
|
|
411 - repeating "R" with a count only overwrites text once; added the 'X' flag to
|
|
412 'cpoptions' |cpo-X|
|
|
413 - a vertical movement command that moves to a non-existing line fails; added
|
|
414 the '-' flag to 'cpoptions' |cpo--|
|
|
415 - when preserving a file and doing ":q!" the file can be recovered; added the
|
|
416 '&' flag to 'cpoptions' |cpo-&|
|
|
417 - The 'window' option is partly implemented. It specifies how much CTRL-F and
|
|
418 CTRL-B scroll when there is one window. The "-w {number}" argument is now
|
|
419 accepted. "-w {scriptout}" only works when {scriptout} doesn't start with a
|
|
420 digit.
|
|
421 - Allow "-c{command}" argument, no space between "-c" and {command}.
|
|
422 - When writing a file with ":w!" don't reset 'readonly' when 'Z' is present in
|
|
423 'cpoptions'.
|
169
|
424 - Allow 'l' and '#' flags for ":list", ":print" and ":number".
|
|
425 - Added the '.' flag to 'cpoptions': ":cd" fails when the buffer is modified.
|
|
426 - In Ex mode with an empty buffer ":read file" doesn't keep an empty line
|
|
427 above or below the new lines.
|
|
428 - Remove a backslash before a NL for the ":global" command.
|
|
429 - When ":append", ":insert" or ":change" is used with ":global", get the
|
|
430 inserted lines from the command. Can use backslash-NL to separate lines.
|
|
431 - Can use ":global /pat/ visual" to execute Normal mode commands at each
|
|
432 matched line. Use "Q" to continue and go to the next line.
|
|
433 - The |:open| command has been partially implemented. It stops Ex mode, but
|
|
434 redraws the whole screen, not just one line as open mode is supposed to do.
|
|
435 - Support using a pipe to read the output from and write input to an external
|
|
436 command. Added the 'shelltemp' option and has("filterpipe").
|
|
437 - In ex silent mode the ":set" command output is displayed.
|
|
438 - The ":@@" and ":**" give an error message when no register was used before.
|
|
439 - The search pattern "[]-`]" matches ']', '^', '_' and '`'.
|
|
440 - Autoindent for ":insert" is using the line below the insert.
|
|
441 - Autoindent for ":change" is using the first changed line.
|
|
442 - Editing Ex command lines is not done in cooked mode, because CTRL-D and
|
|
443 CTRL-T cannot be handled then.
|
308
|
444 - In Ex mode, "1,3" prints three lines. "%" prints all lines.
|
|
445 - In Ex mode "undo" would undo all changes since Ex mode was started.
|
169
|
446 - Implemented the 'prompt' option.
|
164
|
447
|
|
448
|
192
|
449 Debugger support *new-debug-support*
|
|
450 ----------------
|
|
451
|
|
452 The 'balloonexpr' option has been added. This is a generic way to implement
|
|
453 balloon functionality. You can use it to show info for the word under the
|
|
454 mouse pointer.
|
|
455
|
|
456
|
462
|
457 Remote file explorer *new-netrw-explore*
|
|
458 --------------------
|
|
459
|
|
460 The netrw plugin now also supports viewing a directory, when "scp://" is used.
|
|
461 Deleting and renaming files is possible.
|
|
462
|
|
463 To avoid duplicating a lot of code, the previous file explorer plugin has been
|
|
464 integrated in the netrw plugin. This means browsing local and remote files
|
|
465 works the same way.
|
|
466
|
|
467 ":browse edit" and ":browse split" use the netrw plugin when it's available
|
|
468 and a GUI dialog is not possible.
|
|
469
|
|
470 The netrw plugin is maintained by Charles Campbell.
|
|
471
|
|
472
|
594
|
473 Define an operator *new-define-operator*
|
|
474 ------------------
|
|
475
|
|
476 Previously it was not possible to define your own operator; a command that is
|
|
477 followed by a {motion}. Vim 7 introduces the 'operatorfunc' option and the
|
|
478 |g@| operator. This makes it possible to define a mapping that works like an
|
|
479 operator. The actual work is then done by a function, which is invoked
|
|
480 through the |g@| operator.
|
|
481
|
|
482 See |:map-operator| for the explanation and an example.
|
|
483
|
658
|
484
|
725
|
485 Mapping to an expression *new-map-expression*
|
|
486 ------------------------
|
|
487
|
|
488 The {rhs} argument of a mapping can be an expression. That means the
|
|
489 resulting characters can depend on the context. Example: >
|
|
490 :inoremap <expr> . InsertDot()
|
|
491 Here the dot will be mapped to whatever InsertDot() returns.
|
|
492
|
|
493 Also works for abbreviations. See |:map-<expr>| for the details.
|
|
494
|
|
495
|
647
|
496 Location list *new-location-list*
|
|
497 -------------
|
|
498
|
|
499 The support for a per-window quickfix list (location list) is added. The
|
|
500 location list can be displayed in a location window (similar to the quickfix
|
|
501 window). You can open more than one location list window. A set of commands
|
|
502 similar to the quickfix commands are added to browse the location list.
|
658
|
503 (Yegappan Lakshmanan)
|
|
504
|
594
|
505
|
7
|
506 Various new items *new-items-7*
|
|
507 -----------------
|
|
508
|
|
509 Normal mode commands: ~
|
|
510
|
12
|
511 a", a' and a` New text objects to select quoted strings. |a'|
|
500
|
512 i", i' and i` (Taro Muraoka)
|
7
|
513
|
170
|
514 CTRL-W <Enter> In the quickfix window: opens a new window to show the
|
|
515 location of the error under the cursor.
|
|
516
|
424
|
517 |at| and |it| text objects select a block of text between HTML or XML tags.
|
|
518
|
601
|
519 <A-LeftMouse> ('mousemodel' "popup" or "popup-setpos")
|
|
520 <A-RightMouse> ('mousemodel' "extend")
|
|
521 Make a blockwise selection. |<A-LeftMouse>|
|
424
|
522
|
681
|
523 gF Start editing the filename under the cursor and jump
|
|
524 to the line number following the file name.
|
|
525 (Yegappan Lakshmanan)
|
|
526
|
|
527 CTRL-W F Start editing the filename under the cursor in a new
|
|
528 window and jump to the line number following the file
|
|
529 name. (Yegappan Lakshmanan)
|
|
530
|
477
|
531 Insert mode commands: ~
|
|
532
|
|
533 CTRL-\ CTRL-O Execute a Normal mode command. Like CTRL-O but
|
|
534 without moving the cursor.
|
|
535
|
7
|
536 Options: ~
|
|
537
|
12
|
538 'completefunc' The name of a function used for user-specified Insert
|
|
539 mode completion. CTRL-X CTRL-U can be used in Insert
|
|
540 mode to do any kind of completion. (Taro Muraoka)
|
541
|
541 'completeopt' Enable popup menu for Insert mode completion.
|
523
|
542 'omnifunc' The name of a function used for omni completion.
|
12
|
543 'quoteescape' Characters used to escape quotes inside a string.
|
|
544 Used for the a", a' and a` text objects. |a'|
|
13
|
545 'numberwidth' Minimal width of the space used for the 'number'
|
|
546 option. (Emmanuel Renieris)
|
14
|
547 'mzquantum' Time in msec to schedule MzScheme threads.
|
15
|
548 'printmbcharset' CJK character set to be used for :hardcopy
|
|
549 'printmbfont' font names to be used for CJK output of :hardcopy
|
36
|
550 'fsync' Whether fsync() is called after writing a file.
|
|
551 (Ciaran McCreesh)
|
40
|
552 'wildoptions' "tagfile" value enables listing the file name of
|
|
553 matching tags for CTRL-D command line completion.
|
|
554 (based on an idea from Yegappan Lakshmanan)
|
41
|
555 'formatlistpat' pattern to recognize a numbered list for formatting.
|
|
556 (idea by Hugo Haas)
|
667
|
557 'formatexpr' expression for formatting text with |gq| and when text
|
|
558 goes over 'textwidth' in Insert mode.
|
222
|
559 'spell' switch spell checking on/off
|
|
560 'spelllang' languages to check spelling for
|
375
|
561 'spellsuggest' methods for spell suggestions
|
410
|
562 'synmaxcol' maximum column to look for syntax items; avoids very
|
|
563 slow redrawing when there are very long lines
|
294
|
564 'verbosefile' Log messages in a file.
|
782
|
565 'winfixwidth' window with fixed width, similar to 'winfixheight'
|
41
|
566
|
7
|
567
|
|
568 Ex commands: ~
|
|
569
|
11
|
570 Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
|
|
571
|
15
|
572 |:startreplace| Start Replace mode. (Charles Campbell)
|
601
|
573 |:startgreplace| Start Virtual Replace mode.
|
14
|
574
|
15
|
575 |:0file| Removes the name of the buffer. (Charles Campbell)
|
14
|
576
|
16
|
577 |:diffoff| Switch off diff mode in the current window or in all
|
|
578 windows.
|
|
579
|
24
|
580 |:delmarks| Delete marks.
|
|
581
|
40
|
582 |:exusage| Help for Ex commands (Nvi command).
|
|
583
|
|
584 |:viusage| Help for Vi commands (Nvi command).
|
|
585
|
41
|
586 |:cbuffer| Read error lines from a buffer. (partly by Yegappan
|
|
587 Lakshmanan)
|
7
|
588
|
284
|
589 |:sort| Sort lines in the buffer without depending on an
|
|
590 external command.
|
|
591
|
446
|
592 |:caddfile| Add error messages to an existing quickfix list
|
|
593 (Yegappan Lakshmanan).
|
|
594
|
|
595 |:cexpr| Read error messages from a Vim expression (Yegappan
|
|
596 Lakshmanan).
|
|
597
|
625
|
598 |:caddexpr| Add error messages from a Vim expression to an
|
|
599 existing quickfix list. (Yegappan Lakshmanan).
|
658
|
600 |:caddbuffer| Add errors from the current buffer to the quickfix
|
|
601 list.
|
625
|
602
|
659
|
603 |:lfile| Like |:cfile| but use the location list.
|
|
604 |:lgetfile| Like |:cgetfile| but use the location list.
|
|
605 |:laddfile| Like |:caddfile| but use the location list.
|
|
606 |:lbuffer| Like |:cbuffer| but use the location list.
|
658
|
607 |:laddbuffer| Like |:caddbuffer| but use the location list.
|
659
|
608 |:lexpr| Like |:cexpr| but use the location list.
|
|
609 |:laddexpr| Like |:caddexpr| but use the location list.
|
|
610 |:ll| Like |:cc| but use the location list.
|
|
611 |:llist| Like |:clist| but use the location list.
|
|
612 |:lnext| Like |:cnext| but use the location list.
|
666
|
613 |:lprevious| Like |:cprevious| but use the location list.
|
659
|
614 |:lNext| Like |:cNext| but use the location list.
|
|
615 |:lfirst| Like |:cfirst| but use the location list.
|
|
616 |:lrewind| Like |:crewind| but use the location list.
|
|
617 |:llast| Like |:clast| but use the location list.
|
|
618 |:lnfile| Like |:cnfile| but use the location list.
|
|
619 |:lpfile| Like |:cpfile| but use the location list.
|
|
620 |:lNfile| Like |:cNfile| but use the location list.
|
|
621 |:lolder| Like |:colder| but use the location list.
|
|
622 |:lnewer| Like |:cnewer| but use the location list.
|
|
623 |:lwindow| Like |:cwindow| but use the location list.
|
|
624 |:lopen| Like |:copen| but use the location list.
|
|
625 |:lclose| Like |:cclose| but use the location list.
|
666
|
626 |:lmake| Like |:make| but use the location list.
|
|
627 |:lgrep| Like |:grep| but use the location list.
|
|
628 |:lgrepadd| Like |:grepadd| but use the location list.
|
|
629 |:lvimgrep| Like |:vimgrep| but use the location list.
|
|
630 |:lvimgrepadd| Like |:vimgrepadd| but use the location list.
|
|
631 |:lhelpgrep| Like |:helpgrep| but use the location list.
|
|
632 |:lcscope| Like |:cscope| but use the location list.
|
|
633 |:ltag| Jump to a tag and add matching tags to a location list.
|
651
|
634
|
697
|
635 |:undojoin| Join a change with the previous undo block.
|
|
636
|
601
|
637
|
591
|
638 Ex command modifiers: ~
|
|
639
|
|
640 |:keepalt| Do not change the alternate file.
|
|
641
|
|
642 |:noautocmd| Do not trigger autocommand events.
|
|
643
|
|
644 |:sandbox| Execute a command in the sandbox.
|
|
645
|
284
|
646
|
597
|
647 Ex command arguments: ~
|
|
648
|
|
649 |++bad| Specify what happens with characters that can't be
|
|
650 converted and illegal bytes. (code example by Yasuhiro
|
|
651 Matsumoto)
|
|
652 Also, when a conversion error occurs or illegal bytes
|
|
653 are found include the line number in the error
|
|
654 message.
|
|
655
|
|
656
|
557
|
657 New and extended functions: ~
|
7
|
658
|
116
|
659 |add()| append an item to a List
|
|
660 |append()| append List of lines to the buffer
|
432
|
661 |browsedir()| dialog to select a directory
|
|
662 |byteidx()| index of a character (Ilya Sher)
|
116
|
663 |call()| call a function with List as arguments
|
464
|
664 |complete_add()| add match for 'completefunc'
|
|
665 |complete_check()| check for key pressed, for 'completefunc'
|
116
|
666 |copy()| make a shallow copy of a List or Dictionary
|
|
667 |count()| count nr of times a value is in a List or Dictionary
|
704
|
668 |cursor()| also accepts an offset for 'virtualedit', and
|
|
669 the first argument can be a list: [lnum, col, off]
|
116
|
670 |deepcopy()| make a full copy of a List or Dictionary
|
|
671 |empty()| check if List or Dictionary is empty
|
647
|
672 |getloclist()| list of location list items (Yegappan Lakshmanan)
|
234
|
673 |getqflist()| list of quickfix errors (Yegappan Lakshmanan)
|
116
|
674 |extend()| append one List to another or add items from one
|
|
675 Dictionary to another
|
|
676 |filter()| remove selected items from a List or Dictionary
|
432
|
677 |finddir()| find a directory in 'path'
|
|
678 |findfile()| find a file in 'path' (Johannes Zellner)
|
|
679 |foldtextresult()| the text displayed for a closed fold at line "lnum"
|
116
|
680 |function()| make a Funcref out of a function name
|
|
681 |get()| get an item from a List or Dictionary
|
436
|
682 |getbufline()| get a list of lines from a specified buffer
|
432
|
683 (Yegappan Lakshmanan)
|
531
|
684 |getcmdtype()| return the current command-line type
|
|
685 (Yegappan Lakshmanan)
|
432
|
686 |getfontname()| get actual font name being used
|
|
687 |getfperm()| get file permission string (Nikolai Weibull)
|
|
688 |getftype()| get type of file (Nikolai Weibull)
|
|
689 |getline()| with second argument: get List with buffer lines
|
704
|
690 |getpos()| return a list with the position of cursor, mark, etc.
|
116
|
691 |has_key()| check whether a key appears in a Dictionary
|
520
|
692 |inputlist()| select an entry from a list
|
116
|
693 |insert()| insert an item somewhere in a List
|
|
694 |items()| get List of Dictionary key-value pairs
|
|
695 |join()| join List items into a String
|
|
696 |keys()| get List of Dictionary keys
|
|
697 |len()| number of items in a List or Dictionary
|
|
698 |map()| change each List or Dictionary item
|
159
|
699 |matchlist()| list with match and submatches of a pattern in a string
|
116
|
700 |max()| maximum value in a List or Dictionary
|
|
701 |min()| minimum value in a List or Dictionary
|
169
|
702 |mkdir()| create a directory
|
449
|
703 |printf()| format text
|
159
|
704 |readfile()| read a file into a list of lines
|
116
|
705 |remove()| remove one or more items from a List or Dictionary
|
432
|
706 |repeat()| repeat "expr" "count" times (Christophe Poucet)
|
116
|
707 |reverse()| reverse the order of a List
|
523
|
708 |searchdecl()| search for declaration of variable
|
667
|
709 |searchpairpos()| return a List with the position of the match
|
|
710 |searchpos()| return a List with the position of the match
|
647
|
711 |setloclist()| modify a location list (Yegappan Lakshmanan)
|
|
712 |setqflist()| modify a quickfix list (Yegappan Lakshmanan)
|
116
|
713 |sort()| sort a List
|
375
|
714 |soundfold()| get the sound-a-like equivalent of a word
|
116
|
715 |split()| split a String into a List
|
375
|
716 |spellbadword()| get a badly spelled word
|
|
717 |spellsuggest()| get suggestions for correct spelling
|
782
|
718 |str2nr()| convert a string to a number, base 8, 10 or 16
|
432
|
719 |string()| string representation of a List or Dictionary
|
|
720 |system()| filters {input} through a shell command
|
|
721 |taglist()| get list of matching tags (Yegappan Lakshmanan)
|
|
722 |tr()| translate characters (Ron Aaron)
|
116
|
723 |values()| get List of Dictionary values
|
713
|
724 |winrestview()| restore the view of the current window
|
|
725 |winsaveview()| save the view of the current window
|
159
|
726 |writefile()| write a list of lines into a file
|
15
|
727
|
162
|
728 User defined functions can now be loaded automatically from the "autoload"
|
|
729 directory in 'runtimepath'. See |autoload-functions|.
|
|
730
|
7
|
731
|
|
732 New autocommand events: ~
|
|
733
|
15
|
734 |InsertEnter| starting Insert or Replace mode
|
|
735 |InsertChange| going from Insert to Replace mode or back
|
|
736 |InsertLeave| leaving Insert or Replace mode
|
11
|
737
|
15
|
738 |ColorScheme| after loading a color scheme
|
162
|
739 |QuickFixCmdPre| before :make, :grep et al. (Ciaran McCreesh)
|
|
740 |QuickFixCmdPost| after :make, :grep et al. (Ciaran McCreesh)
|
575
|
741 |SessionLoadPost| after loading a session file. (Yegappan Lakshmanan)
|
7
|
742
|
651
|
743 |SpellFileMissing| when a spell file can't be found
|
|
744
|
725
|
745 |ShellCmdPost| after executing a shell command
|
|
746 |ShellFilterPost| after filtering with a shell command
|
|
747
|
769
|
748 |VimResized| after the Vim window size changed (Yakov Lerner)
|
|
749
|
|
750 |FileChangedShellPost| after handling a file changed outside of Vim
|
|
751
|
716
|
752 |SourcePre| before sourcing a Vim script
|
|
753
|
662
|
754 |CursorHoldI| the user doesn't press a key for a while in Insert mode
|
|
755 |CursorMoved| the cursor was moved in Normal mode
|
|
756 |CursorMovedI| the cursor was moved in Insert mode
|
|
757
|
12
|
758
|
24
|
759 New items in search patterns: ~
|
|
760 |/\%d| \%d123 search for character with decimal number
|
|
761 |/\]| [\d123] idem, in a colletion
|
|
762 |/\%o| \%o103 search for character with octal number
|
|
763 |/\]| [\o1o3] idem, in a colletion
|
|
764 |/\%x| \%x1a search for character with 2 pos. hex number
|
|
765 |/\]| [\x1a] idem, in a colletion
|
|
766 |/\%u| \%u12ab search for character with 4 pos. hex number
|
|
767 |/\]| [\u12ab] idem, in a colletion
|
|
768 |/\%U| \%U1234abcd search for character with 8 pos. hex number
|
|
769 |/\]| [\U1234abcd] idem, in a colletion
|
|
770 (The above partly by Ciaran McCreesh)
|
640
|
771
|
237
|
772 |/[[=| [[=a=]] an equivalence class (only for latin1 characters)
|
|
773 |/[[.| [[.a.]] a collation element (only works with single char)
|
169
|
774
|
640
|
775 |/\%'m| \%'m match at mark m
|
|
776 |/\%<'m| \%<'m match before mark m
|
|
777 |/\%>'m| \%>'m match after mark m
|
|
778 |/\%V| \%V match in Visual area
|
|
779
|
169
|
780 Nesting |/multi| items no longer is an error when an empty match is possible.
|
|
781
|
|
782 It is now possible to use \{0}, it matches the preceding atom zero times. Not
|
|
783 useful, just for compatibility.
|
24
|
784
|
|
785
|
12
|
786 New Syntax/Indent/FTplugin files: ~
|
|
787
|
|
788 MuPAD source syntax, indent and ftplugin. (Dave Silvia)
|
|
789
|
22
|
790 ABAB/4 syntax file. (Marius van Wyk)
|
|
791
|
|
792 SQL-Informix syntax file. (Dean L Hill)
|
|
793
|
720
|
794 Handling of various SQL variants. (David Fishburn)
|
|
795
|
23
|
796 PHP compiler plugin. (Doug Kearns)
|
|
797
|
36
|
798 Sive syntax file. (Nikolai Weibull)
|
|
799
|
315
|
800 Pascal indent file. (Neil Carter)
|
|
801
|
375
|
802 Many filetype plugins and others from Nikolai Weibull.
|
|
803
|
419
|
804 Xquery syntax file. (Jean-Marc Vanel)
|
|
805
|
234
|
806 Moved all the indent settings from the filetype plugin to the indent file.
|
|
807 Implemented b:undo_indent to undo indent settings when setting 'filetype' to a
|
|
808 different value.
|
|
809
|
647
|
810 VHDL indent file (Gerald Lai)
|
|
811
|
684
|
812 MGL syntax file. (Gero Kuhlmann)
|
23
|
813
|
700
|
814 rd syntax file. (Johannes Ranke)
|
|
815
|
32
|
816 New Keymaps: ~
|
|
817
|
|
818 Sinhala (Sri Lanka) (Harshula Jayasuriya)
|
|
819
|
680
|
820 Tamil in TSCII encoding (Yegappan Lakshmanan)
|
|
821
|
32
|
822
|
23
|
823 New message translations: ~
|
|
824
|
|
825 The Ukranian messages are now also available in cp1251.
|
|
826
|
169
|
827 Irish message translations. (Kevin Patrick Scannell)
|
|
828
|
170
|
829 Vietnamese message translations and menu. (Phan Vinh Thinh)
|
|
830
|
7
|
831
|
10
|
832 Others: ~
|
|
833
|
716
|
834 The Netbeans interface was updated for Sun Studio 10. The protocol number
|
|
835 goes from 2.2 to 2.3. (Gordon Prieur)
|
|
836
|
720
|
837 Mac: When starting up Vim will load the $VIMRUNTIME/macmap.vim script to
|
761
|
838 define default command-key mappings. (mostly by Benji Fisher)
|
720
|
839
|
10
|
840 Mac: Add the selection type to the clipboard, so that Block, line and
|
|
841 character selections can be used between two Vims. (Eckehard Berns)
|
|
842 Also fixes the problem that setting 'clipboard' to "unnamed" breaks using
|
|
843 "yyp".
|
7
|
844
|
557
|
845 Mac: GUI font selector. (Peter Cucka)
|
13
|
846
|
169
|
847 Mac: support for multi-byte characters. (Da Woon Jung)
|
|
848
|
594
|
849 Mac: Support the xterm mouse in the non-GUI version.
|
|
850
|
|
851 Mac: better integration with Xcode. Post a fake mouse-up event after the odoc
|
|
852 event and the drag receive handler to work around a stall after Vim loads a
|
|
853 file. Fixed an off-by-one line number error. (Da Woon Jung)
|
|
854
|
|
855 Added the t_SI and t_EI escape sequences for starting and ending Insert mode.
|
69
|
856 GUI font selector for Motif. (Marcin Dalecki)
|
46
|
857
|
162
|
858 Nicer toolbar buttons for Motif. (Marcin Dalecki)
|
|
859
|
69
|
860 Mnemonics for the Motif find/replace dialog. (Marcin Dalecki)
|
46
|
861
|
36
|
862 To be used to set the cursor shape to a bar or a block. No default values,
|
|
863 they are not supported by termcap/terminfo.
|
|
864
|
40
|
865 Autocommands can be defined local to a buffer. This means they will also work
|
|
866 when the buffer does not have a name or no specific name. See
|
|
867 |autocmd-buflocal|. (Yakov Lerner)
|
|
868
|
179
|
869 For xterm most combinations of modifiers with function keys are recognized.
|
|
870 |xterm-modifier-keys|
|
|
871
|
481
|
872 When 'verbose' is set the output of ":highlight" will show where a highlight
|
|
873 item was last set.
|
502
|
874 When 'verbose' is set the output of the ":map", ":abbreviate", ":command",
|
|
875 ":function" and ":autocmd" commands will show where it was last defined.
|
|
876 (Yegappan Lakshmanan)
|
481
|
877
|
505
|
878 ":function /pattern" lists functions matching the pattern.
|
|
879
|
523
|
880 "1gd" can be used like "gd" but ignores matches in a {} block that ends before
|
|
881 the cursor position. Likewise for "1gD" and "gD".
|
|
882
|
533
|
883 'scrolljump' can be set to a negative number to scroll a percentage of the
|
|
884 window height.
|
|
885
|
541
|
886 The |v:scrollstart| variable has been added to help finding the location in
|
|
887 your script that causes the hit-enter prompt.
|
|
888
|
591
|
889 To make it possible to handle the situation that a file is being edited that
|
|
890 is already being edited by another Vim instance, the |SwapExists| event has
|
|
891 been added. The |v:swapname|, |v:swapchoice| and |v:swapcommand| variables
|
|
892 can be used, for example to use the |client-server| functionality to bring the
|
|
893 other Vim to the foreground.
|
604
|
894 When starting Vim with a "-t tag" argument, there is an existing swapfile and
|
|
895 the user selects "quit" or "abort" then exit Vim.
|
591
|
896
|
693
|
897 Undo now also restores the '< and '> marks. "gv" selects the same area as
|
|
898 before the change and undo.
|
|
899
|
774
|
900 When editing a search pattern for a "/" or "?" command and 'incsearch' is set
|
|
901 CTRL-L can be used to add a character from the current match. CTRL-R CTRL-W
|
|
902 will add a word, but exclude the part of the word that was already typed.
|
|
903
|
782
|
904 Ruby interface: add line number methods. (Ryan Paul)
|
|
905
|
7
|
906 ==============================================================================
|
|
907 IMPROVEMENTS *improvements-7*
|
|
908
|
10
|
909 ":helpgrep" accepts a language specifier after the pattern: "pat@it".
|
|
910
|
15
|
911 Move the help for printing to a separate help file. It's quite a lot now.
|
|
912
|
716
|
913 When doing completion for ":!cmd", ":r !cmd" or ":w !cmd" executable files are
|
|
914 found in $PATH instead of looking for ordinary files in the current directlry.
|
|
915
|
557
|
916 When ":silent" is used and a backwards range is given for an Ex command the
|
|
917 range is swapped automatically instead of asking if that is OK.
|
|
918
|
181
|
919 The pattern matching code was changed from a recursive function to an
|
|
920 iterative mechanism. This avoids out-of-stack errors. State is stored in
|
|
921 allocated memory, running out of memory can always be detected. Allows
|
|
922 matching more complex things, but Vim may seem to hang while doing that.
|
|
923
|
634
|
924 Previously some options were always evaluated in the |sandbox|. Now that only
|
|
925 happens when the option was set from a modeline or in secure mode. Applies to
|
|
926 'balloonexpr', 'foldexpr', 'foldtext' and 'includeexpr'. (Sumner Hayes)
|
|
927
|
|
928 Some commands and expressions could have nasty side effects, such as using
|
|
929 CTRL-R = while editing a search pattern and the expression invokes a function
|
|
930 that jumps to another window. The |textlock| has been added to prevent this
|
|
931 from happening.
|
|
932
|
10
|
933 ":breakadd here" and ":breakdel here" can be used to set or delete a
|
|
934 breakpoint at the cursor.
|
|
935
|
673
|
936 It is now possible to define a function with: >
|
|
937 :exe "func Test()\n ...\n endfunc"
|
|
938
|
11
|
939 The tutor was updated to make it simpler to use and added text to explain a
|
|
940 few more important commands. Used ideas from Gabriel Zachmann.
|
7
|
941
|
12
|
942 Unix: When libcall() fails obtain an error message with dlerror() and display
|
|
943 it. (Johannes Zellner)
|
|
944
|
587
|
945 Mac and Cygwin: When editing an existing file make the file name the same case
|
|
946 of the edited file. Thus when typing ":e os_UNIX.c" the file name becomes
|
|
947 "os_unix.c".
|
|
948
|
13
|
949 Added "nbsp" in 'listchars'. (David Blanchet)
|
|
950
|
17
|
951 Added the "acwrite" value for the 'buftype' option. This is for a buffer that
|
557
|
952 does not have a name that refers to a file and is written with BufWriteCmd
|
17
|
953 autocommands.
|
|
954
|
14
|
955 For lisp indenting and matching parenthesis: (Sergey Khorev)
|
|
956 - square brackets are recognized properly
|
|
957 - #\(, #\), #\[ and #\] are recognized as character literals
|
|
958 - Lisp line comments (delimited by semicolon) are recognized
|
|
959
|
19
|
960 Added the "count" argument to match(), matchend() and matchstr(). (Ilya Sher)
|
|
961
|
20
|
962 winnr() takes an optional "$" and "#" arguments. (Nikolai Weibull, Yegappan
|
|
963 Lakshmanan)
|
|
964
|
713
|
965 Added 's' flag to search(): set ' mark if cursor moved. (Yegappan Lakshmanan)
|
20
|
966 Added 'n' flag to search(): don't move the cursor. (Nikolai Weibull)
|
713
|
967 Added 'c' flag to search(): accept match at the cursor.
|
|
968 Added 'e' flag to search(): move to end of the match. (Benji Fisher)
|
|
969 Added 'p' flag to search(): return number of sub-pattern. (Benji Fisher)
|
|
970 These also apply to searchpos(), searchpair() and searchpairpos().
|
|
971 The search() and searchpair() functions have an extra argument to specify
|
|
972 where to stop searching. Speeds up searches that should not continue too far.
|
20
|
973
|
22
|
974 When uncompressing fails in the gzip plugin, give an error message but don't
|
|
975 delete the raw text. Helps if the file has a .gz extension but is not
|
|
976 actually compressed. (Andrew Pimlott)
|
|
977
|
|
978 When C, C++ or IDL syntax is used, may additionally load doxygen syntax.
|
|
979 (Michael Geddes)
|
|
980
|
782
|
981 Support setting 'filetype' and 'syntax' to "aaa.bbb" for "aaa" plus "bbb"
|
|
982 filetype or syntax.
|
|
983
|
22
|
984 The ":registers" command now displays multi-byte characters properly.
|
|
985
|
|
986 VMS: In the usage message mention that a slash can be used to make a flag
|
|
987 upper case. Add color support to the builtin vt320 terminal codes.
|
|
988 (Zoltan Arpadffy)
|
|
989
|
23
|
990 For the '%' item in 'viminfo', allow a number to set a maximum for the number
|
|
991 of buffers.
|
|
992
|
26
|
993 When a file looks like a shell script, check for an "exec" command that starts
|
|
994 the tcl interpreter. (suggested by Alexios Zavras)
|
|
995
|
|
996 Support conversion between utf-8 and latin9 (iso-8859-15) internally, so that
|
|
997 digraphs still work when iconv is not available.
|
|
998
|
36
|
999 When a session file is loaded while editing an unnamed, empty buffer that
|
|
1000 buffer is wiped out. Avoids that there is an unused buffer in the buffer
|
|
1001 list.
|
|
1002
|
|
1003 Win32: When libintl.dll supports bind_textdomain_codeset(), use it.
|
|
1004 (NAKADAIRA Yukihiro)
|
|
1005
|
697
|
1006 Win32: Vim was not aware of hard links on NTFS file systems. These are
|
|
1007 detected now for when 'backupcopy' is "auto". Also fixed a bogus "file has
|
|
1008 been changed since reading it" error for links.
|
|
1009
|
36
|
1010 When foldtext() finds no text after removing the comment leader, use the
|
|
1011 second line of the fold. Helps for C-style /* */ comments where the first
|
|
1012 line is just "/*".
|
|
1013
|
39
|
1014 When editing the same file from two systems (e.g., Unix and MS-Windows) there
|
|
1015 mostly was no warning for an existing swap file, because the name of the
|
|
1016 edited file differs (e.g., y:\dir\file vs /home/me/dir/file). Added a flag to
|
|
1017 the swap file to indicate it is in the same directory as the edited file. The
|
|
1018 used path then doesn't matter and the check for editing the same file is much
|
|
1019 more reliable.
|
|
1020
|
594
|
1021 Unix: When editing a file through a symlink the swap file would use the name
|
|
1022 of the symlink. Now use the name of the actual file, so that editing the same
|
|
1023 file twice is detected. (suggestions by Stefano Zacchiroli and James Vega)
|
|
1024
|
39
|
1025 Client-server communication now supports 'encoding'. When setting 'encoding'
|
|
1026 in a Vim server to "utf-8", and using "vim --remote fname" in a console,
|
|
1027 "fname" is converted from the console encoding to utf-8. Also allows Vims
|
|
1028 with different 'encoding' settings to exchange messages.
|
|
1029
|
41
|
1030 Internal: Changed ga_room into ga_maxlen, so that it doesn't need to be
|
|
1031 incremented/decremented each time.
|
|
1032
|
69
|
1033 Included a few improvements for Motif from Marcin Dalecki. Draw label
|
46
|
1034 contents ourselves to make them handle fonts in a way configurable by Vim and
|
|
1035 a bit less dependent on the X11 font management.
|
|
1036
|
56
|
1037 When a register is empty it is not stored in the viminfo file.
|
|
1038
|
100
|
1039 Removed the tcltags script, it's obsolete.
|
|
1040
|
284
|
1041 ":redir @*>>" and ":redir @+>>" append to the clipboard. Better check for
|
169
|
1042 invalid characters after the register name. |:redir|
|
|
1043
|
|
1044 ":redir => variable" and ":redir =>> variable" write or append to a variable.
|
|
1045 (Yegappan Lakshmanan) |:redir|
|
123
|
1046
|
445
|
1047 ":redir @{a-z}>>" appends to register a to z. (Yegappan Lakshmanan)
|
284
|
1048
|
294
|
1049 The 'verbosefile' option can be used to log messages in a file. Verbose
|
|
1050 messages are not displayed then. The "-V{filename}" argument can be used to
|
|
1051 log startup messages.
|
|
1052
|
123
|
1053 ":let g:" lists global variables.
|
|
1054 ":let b:" lists buffer-local variables.
|
|
1055 ":let w:" lists window-local variables.
|
|
1056 ":let v:" lists Vim variables.
|
|
1057
|
149
|
1058 The stridx() and strridx() functions take a third argument, where to start
|
|
1059 searching. (Yegappan Lakshmanan)
|
136
|
1060
|
284
|
1061 The getreg() function takes an extra argument to be able to get the expression
|
|
1062 for the '=' register instead of the result of evaluating it.
|
|
1063
|
|
1064 The setline() function can take a List argument to set multiple lines. When
|
|
1065 the line number is just below the last line the line is appended.
|
|
1066
|
162
|
1067 g CTRL-G also shows the number of characters if it differs from the number of
|
|
1068 bytes.
|
|
1069
|
169
|
1070 Completion for ":debug" and entering an expression for the '=' register. Skip
|
|
1071 ":" between range and command name. (Peter winters)
|
|
1072
|
|
1073 CTRL-Q in Insert mode now works like CTRL-V by default. Previously it was
|
|
1074 ignored.
|
|
1075
|
|
1076 When "beep" is included in 'debug' a function or script that causes a beep
|
|
1077 will result in a message with the source of the error.
|
|
1078
|
170
|
1079 When completing buffer names, match with "\(^\|[\/]\)" instead of "^", so that
|
|
1080 ":buf stor<Tab>" finds both "include/storage.h" and "storage/main.c".
|
|
1081
|
|
1082 To count items (pattern matches) without changing the buffer the 'n' flag has
|
|
1083 been added to |:substitute|. See |count-items|.
|
|
1084
|
774
|
1085 In a |:substitute| command the \u, \U, \l and \L items now also work for
|
|
1086 multi-byte characters.
|
|
1087
|
175
|
1088 The "screen.linux" $TERM name is recognized to set the default for
|
534
|
1089 'background' to "dark". (Ciaran McCreesh) Also for "cygwin" and "putty".
|
179
|
1090
|
|
1091 The |FileChangedShell| autocommand event can now use the |v:fcs_reason|
|
|
1092 variable that specifies what triggered the event. |v:fcs_choice| can be used
|
|
1093 to reload the buffer or ask the user what to do.
|
175
|
1094
|
181
|
1095 Not all modifiers were recognized for xterm function keys. Added the
|
|
1096 possibility in term codes to end in ";*X" or "O*X", where X is any character
|
|
1097 and the * stands for the modifier code.
|
|
1098 Added the <xUp>, <xDown>, <xLeft> and <xRight> keys, to be able to recognize
|
|
1099 the two forms that xterm can send their codes in and still handle all possible
|
|
1100 modifiers.
|
|
1101
|
218
|
1102 getwinvar() now also works to obtain a buffer-local option from the specified
|
|
1103 window.
|
|
1104
|
234
|
1105 Added the "%s" item to 'errorformat'. (Yegappan Lakshmanan)
|
|
1106
|
271
|
1107 GTK GUI: use the GTK file dialog when it's available. Mix from patches by
|
|
1108 Grahame Bowland and Evan Webb.
|
|
1109
|
323
|
1110 Added ":scriptnames" to bugreport.vim, so that we can see what plugins were
|
|
1111 used.
|
|
1112
|
333
|
1113 Win32: If the user changes the setting for the number of lines a scroll wheel
|
|
1114 click scrolls it is now used immediately. Previously Vim would need to be
|
|
1115 restarted.
|
|
1116
|
337
|
1117 When using @= in an expression the value is expression @= contains. ":let @=
|
|
1118 = value" can be used to set the register contents.
|
|
1119
|
404
|
1120 A ! can be added to ":popup" to have the popup menu appear at the mouse
|
|
1121 pointer position instead of the text cursor.
|
|
1122
|
408
|
1123 The table with encodings has been expanded with many MS-Windows codepages,
|
|
1124 such as cp1250 and cp737, so that these can also be used on Unix without
|
|
1125 prepending "8bit-".
|
481
|
1126 When an encoding name starts with "microsoft-cp" ignore the "microsoft-" part.
|
408
|
1127
|
|
1128 Added the "customlist" completion argument to a user-defined command. The
|
|
1129 user-defined completion function should return the completion candidates as a
|
445
|
1130 Vim List and the returned results are not filtered by Vim. (Yegappan
|
|
1131 Lakshmanan)
|
408
|
1132
|
436
|
1133 Win32: Balloons can have multiple lines if common controls supports it.
|
|
1134 (Sergey Khorev)
|
|
1135
|
462
|
1136 For 'errorformat' it was not possible to have a file name that contains the
|
|
1137 character that follows after "%f". For example, in "%f:%l:%m" the file name
|
|
1138 could not contain ":". Now include the first ":" where the rest of the
|
|
1139 pattern matches. In the example a ":" not followed by a line number is
|
|
1140 included in the file name. (suggested by Emanuele Giaquinta)
|
|
1141
|
480
|
1142 For command-line completion the matches for various types of arguments are now
|
|
1143 sorted: user commands, variables, syntax names, etc.
|
|
1144
|
494
|
1145 When no locale is set, thus using the "C" locale, Vim will work with latin1
|
557
|
1146 characters, using its own isupper()/toupper()/etc. functions.
|
494
|
1147
|
500
|
1148 When using an rxvt terminal emulator guess the value of 'background' using the
|
|
1149 COLORFGBG environment variable. (Ciaran McCreesh)
|
|
1150
|
|
1151 Also support t_SI and t_EI on Unix with normal features. (Ciaran McCreesh)
|
|
1152
|
520
|
1153 When 'foldcolumn' is one then put as much info in it as possible. This allows
|
|
1154 closing a fold with the mouse by clicking on the '-'.
|
|
1155
|
531
|
1156 input() takes an optional completion argument to specify the type of
|
|
1157 completion supported for the input. (Yegappan Lakshmanan)
|
|
1158
|
533
|
1159 "dp" works with more than two buffers in diff mode if there is only one where
|
|
1160 'modifiable' is set.
|
|
1161
|
769
|
1162 The 'diffopt' option has three new values: "horizontal", "vertical" and
|
|
1163 "foldcolumn".
|
|
1164
|
538
|
1165 When the 'include' option contains \zs the file name found is what is being
|
|
1166 matched from \zs to the end or \ze. Useful to pass more to 'includeexpr'.
|
|
1167
|
541
|
1168 Loading plugins on startup now supports subdirectories in the plugin
|
|
1169 directory. |load-plugins|
|
|
1170
|
548
|
1171 In the foldcolumn always show the '+' for a closed fold, so that it can be
|
|
1172 opened easily. It may overwrite another character, esp. if 'foldcolumn' is 1.
|
|
1173
|
|
1174 It is now possible to get the W10 message again by setting 'readonly'. Useful
|
|
1175 in the FileChangedRO autocommand when checking out the file fails.
|
|
1176
|
552
|
1177 Unix: When open() returns EFBIG give an appropriate message.
|
|
1178
|
575
|
1179 ":mksession" sets the SessionLoad variable to notify plugins. A modeline is
|
|
1180 added to the session file to set 'filetype' to "vim".
|
|
1181
|
580
|
1182 In the ATTENTION prompt put the "Delete it" choice before "Quit" to make it
|
|
1183 more logical. (Robert Webb)
|
|
1184
|
591
|
1185 When appending to a file while the buffer has no name the name of the appended
|
|
1186 file would be used for the current buffer. But the buffer contents is
|
|
1187 actually different from the file content. Don't set the file name, unless the
|
|
1188 'P' flag is present in 'cpoptions'.
|
|
1189
|
594
|
1190 When starting to edit a new file and the directory for the file doesn't exist
|
|
1191 then Vim will report "[New DIRECTORY]" instead of "[New File] to give the user
|
|
1192 a hint that something might be wrong.
|
|
1193
|
601
|
1194 Win32: Preserve the hidden attribute of the viminfo file.
|
|
1195
|
604
|
1196 In Insert mode CTRL-A didn't keep the last inserted text when using CTRL-O and
|
|
1197 then a cursor key. Now keep the previously inserted text if nothing is
|
|
1198 inserted after the CTRL-O. Allows using CTRL-O commands to move the cursor
|
|
1199 without losing the last inserted text.
|
601
|
1200
|
615
|
1201 The exists() function now supports checking for autocmd group definition
|
619
|
1202 and for supported autocommand events. (Yegappan Lakshmanan)
|
613
|
1203
|
625
|
1204 Allow using ":global" in the sandbox, it doesn't do anything harmful by
|
|
1205 itself.
|
|
1206
|
634
|
1207 ":saveas asdf.c" will set 'filetype' to c when it's empty. Also for ":w
|
|
1208 asdf.c" when it sets the filename for the buffer.
|
|
1209
|
667
|
1210 Insert mode completion for whole lines now also searches unloaded buffers.
|
634
|
1211
|
671
|
1212 The colortest.vim script can now be invoked directly with ":source" or
|
|
1213 ":runtime".
|
|
1214
|
681
|
1215 The 'statusline' option can be local to the window, so that each window can
|
|
1216 have a different value. (partly by Yegappan Lakshmanan)
|
|
1217
|
680
|
1218 The 'statusline' option and other options that support the same format can now
|
|
1219 use these new features:
|
|
1220 - When it starts with "%!" the value is first evaluated as an expression
|
|
1221 before parsing the value.
|
|
1222 - "%#HLname#" can be used to start highlighting with HLname.
|
|
1223
|
681
|
1224 When 'statusline' is set to something that causes an error message then it is
|
|
1225 made empty to avoid an endless redraw loop. Also for other options, such at
|
774
|
1226 'tabline' and 'titlestring'. ":verbose set statusline" will mention that it
|
|
1227 was set in an error handler.
|
681
|
1228
|
685
|
1229 When there are several matching tags, the ":tag <name>" and CTRL-] commands
|
|
1230 jump to the [count] matching tag. (Yegappan Lakshmanan)
|
|
1231
|
782
|
1232 Win32: In the batch files generated by the install program, use $VIMRUNTIME or
|
|
1233 $VIM if it's set. Example provided by Mathias Michaelis.
|
|
1234 Also create a vimtutor.bat batch file.
|
685
|
1235
|
7
|
1236 ==============================================================================
|
|
1237 COMPILE TIME CHANGES *compile-changes-7*
|
|
1238
|
69
|
1239 Dropped the support for the BeOS and Amiga GUI. They were not maintained and
|
|
1240 probably didn't work. If you want to work on this: get the Vim 6.x version
|
|
1241 and merge it back in.
|
|
1242
|
169
|
1243 When running the tests and one of them fails to produce "test.out" the
|
|
1244 following tests are still executed. This helps when running out of memory.
|
|
1245
|
359
|
1246 When compiling with EXITFREE defined and the ccmalloc library it is possible
|
|
1247 to detect memory leaks. Some memory will always reported as leaked, such as
|
|
1248 allocated by X11 library functions and the memory allocated in alloc_cmdbuff()
|
|
1249 to store the ":quit" command.
|
|
1250
|
445
|
1251 Moved the code for printing to src/hardcopy.c.
|
|
1252
|
|
1253 Moved some code from main() to separate functions to make it easier to see
|
|
1254 what is being done. Use a structure to avoid a lot of arguments to the
|
|
1255 functions.
|
|
1256
|
|
1257 Moved unix_expandpath() to misc1.c, so that it can also be used by os_mac.c
|
|
1258 without copying the code.
|
|
1259
|
714
|
1260 --- Mac ---
|
|
1261
|
|
1262 "make" now creates the Vim.app directory and "make install" copies it to its
|
|
1263 final destination. (Raf)
|
|
1264
|
769
|
1265 Put the runtime directory not directly in Vim.app but in
|
|
1266 Vim.app/Contents/Resources/vim, so that it's according to Mac specs.
|
|
1267
|
714
|
1268 Made it possible to compile with Motif, Athena or GTK without tricks and still
|
|
1269 being able to use the MacRoman conversion. Added the os_mac_conv.c file.
|
|
1270
|
|
1271 When running "make install" the runtime files are installed as for Unix.
|
502
|
1272 Avoids that too many files are copied. When running "make" a link to the
|
|
1273 runtime files is created to avoid a recursive copy that takes much time.
|
|
1274
|
714
|
1275 Configure will attempt to build Vim for both Intel and PowerPC. The
|
693
|
1276 --with-mac-arch configure argument can change it.
|
|
1277
|
714
|
1278 --- Win32 ---
|
|
1279
|
|
1280 The Make_mvc.mak file was adjusted to work with the latest MS compilers,
|
|
1281 including the free version of Visual Studio 2005. (George Reilly)
|
|
1282
|
|
1283 INSTALLpc.txt was updated for the recent changes. (George Reilly)
|
|
1284
|
|
1285 The distributed executable is now produced with the free Visual C++ Toolkit
|
|
1286 2003 and other free SDK chunks. msvcsetup.bat was added to support this.
|
|
1287
|
|
1288 Also generate the .pdb file that can be used to generate a useful crash report
|
|
1289 on MS-Windows. (George Reilly)
|
|
1290
|
7
|
1291 ==============================================================================
|
|
1292 BUG FIXES *bug-fixes-7*
|
|
1293
|
10
|
1294 When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
|
|
1295 instead of "copy". When 'printdevice' was empty the copy command did not
|
|
1296 work. Use "LPT1" then.
|
|
1297
|
|
1298 The GTK font dialog uses a font size zero when the font name doesn't include a
|
|
1299 size. Use a default size of 10.
|
|
1300
|
|
1301 This example in the documentation didn't work:
|
|
1302 :e `=foo . ".c" `
|
|
1303 Skip over the expression in `=expr` when looking for comments, |, % and #.
|
|
1304
|
|
1305 When ":helpgrep" doesn't find anything there is no error message.
|
|
1306
|
|
1307 "L" and "H" did not take closed folds into account.
|
|
1308
|
|
1309 Win32: The "-P title" argument stopped at the first title that matched, even
|
|
1310 when it doesn't support MDI.
|
|
1311
|
|
1312 Mac GUI: CTRL-^ and CTRL-@ did not work.
|
|
1313
|
|
1314 "2daw" on "word." at the end of a line didn't include the preceding white
|
|
1315 space.
|
|
1316
|
|
1317 Win32: Using FindExecutable() doesn't work to find a program. Use
|
|
1318 SearchPath() instead. For executable() use $PATHEXT when the program searched
|
|
1319 for doesn't have an extension.
|
|
1320
|
|
1321 When 'virtualedit' is set, moving the cursor up after appending a character
|
|
1322 may move it to a different column. Was caused by auto-formatting moving the
|
|
1323 cursor and not putting it back where it was.
|
|
1324
|
|
1325 When indent was added automatically and then moving the cursor, the indent was
|
|
1326 not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
|
|
1327 to make it work the old way.
|
|
1328
|
|
1329 When opening a command-line window, 'textwidth' gets set to 78 by the Vim
|
|
1330 filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
|
|
1331
|
|
1332 After using cursor(line, col) moving up/down doesn't keep the same column.
|
|
1333
|
|
1334 Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
|
|
1335 fields. (Walter Briscoe)
|
7
|
1336
|
11
|
1337 On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
|
|
1338 Michele)
|
|
1339
|
14
|
1340 Printing with PostScript may keep the printer waiting for more. Append a
|
|
1341 CTRL-D to the printer output. (Mike Williams)
|
|
1342
|
16
|
1343 When converting a string with a hex or octal number the leading '-' was
|
|
1344 ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
|
|
1345
|
|
1346 Using "@:" to repeat a command line didn't work when it contains control
|
480
|
1347 characters. Also remove "'<,'>" when in Visual mode to avoid that it appears
|
|
1348 twice.
|
16
|
1349
|
17
|
1350 When using file completion for a user command, it would not expand environment
|
|
1351 variables like for a regular command with a file argument.
|
|
1352
|
|
1353 'cindent': When the argument of a #define looks like a C++ class the next line
|
|
1354 is indented too much.
|
|
1355
|
|
1356 When 'comments' includes multi-byte characters inserting the middle part and
|
|
1357 alignment may go wrong. 'cindent' also suffers from this for right-aligned
|
|
1358 items.
|
|
1359
|
170
|
1360 Win32: when 'encoding' is set to "utf-8" getenv() still returns strings in the
|
|
1361 active codepage. Convert to utf-8. Also for $HOME.
|
|
1362
|
18
|
1363 The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
|
|
1364 "cn" or "tw" as intended.
|
|
1365
|
20
|
1366 When 'bin' is set and 'eol' is not set then line2byte() added the line break
|
|
1367 after the last line while it's not there.
|
|
1368
|
|
1369 Using foldlevel() in a WinEnter autocommand may not work. Noticed when
|
|
1370 resizing the GUI shell upon startup.
|
|
1371
|
|
1372 Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
|
|
1373 string with a trailing newline. The newline is ignored.
|
|
1374
|
21
|
1375 When using the ":saveas f2" command for buffer "f1", the Buffers menu would
|
|
1376 contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
|
|
1377 and BufFilePost events for the alternate buffer that gets the old name.
|
|
1378
|
22
|
1379 strridx() did not work well when the needle is empty. (Ciaran McCreesh)
|
|
1380
|
|
1381 GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
|
|
1382 just before it is invoked
|
|
1383
|
|
1384 VMS: Occasionally CR characters were inserted in the file. Expansion of
|
|
1385 environment variables was not correct. (Zoltan Arpadffy)
|
|
1386
|
704
|
1387 VMS: Improved low level char input (affects just console mode). (Zoltan
|
|
1388 Arpadffy)
|
|
1389
|
22
|
1390 UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
|
|
1391 from the first character of the word.
|
|
1392
|
|
1393 When using ":sball" in an autocommand only the filetype in one buffer was
|
|
1394 detected. Reset did_filetype in enter_buffer().
|
|
1395
|
|
1396 When using ":argdo" and the window already was at the first argument index,
|
|
1397 but not actually editing it, the current buffer would be used instead.
|
|
1398
|
23
|
1399 When ":next dir/*" includes many matches, adding the names to the argument
|
|
1400 list may take an awful lot of time and can't be interrupted. Allow
|
|
1401 interrupting this.
|
|
1402
|
|
1403 When editing a file that was already loaded in a buffer, modelines were not
|
|
1404 used. Now window-local options in the modeline are set. Buffer-local options
|
|
1405 and global options remain unmodified.
|
|
1406
|
|
1407 Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
|
|
1408 command line with non-ASCII characters are not used correctly. Recode the
|
|
1409 file names when 'encoding' is set, using the Unicode command line.
|
|
1410
|
24
|
1411 Win32 console: When the default for 'encoding' ends up to be "latin1", the
|
|
1412 default value of 'isprint' was wrong.
|
|
1413
|
|
1414 When an error message is given while waiting for a character (e.g., when an
|
|
1415 xterm reports the number of colors), the hit-enter prompt overwrote the last
|
|
1416 line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
|
|
1417
|
26
|
1418 Mac GUI: Shift-Tab didn't work.
|
|
1419
|
|
1420 When defining tooltip text, don't translate terminal codes, since it's not
|
|
1421 going to be used like a command.
|
|
1422
|
|
1423 GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
|
|
1424 GTK error. Invalid characters may appear when 'encoding' is changed.
|
|
1425
|
|
1426 GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
|
|
1427
|
|
1428 Win32: When 'encoding' is changed while starting up, use the Unicode command
|
|
1429 line to convert the file arguments to 'encoding'. Both for the GUI and the
|
|
1430 console version.
|
|
1431
|
|
1432 Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
|
|
1433 there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
|
|
1434
|
29
|
1435 When two versions of GTK+ 2 are installed it was possible to use the header
|
|
1436 files from one and the library from the other. Use GTK_LIBDIR to put the
|
|
1437 directory for the library early in the link flags.
|
|
1438
|
|
1439 With the GUI find/replace dialog a replace only worked if the pattern was
|
|
1440 literal text. Now it works for any pattern.
|
|
1441
|
36
|
1442 When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
|
|
1443 cause equalizing window heights in the vertical direction.
|
|
1444
|
|
1445 When ":emenu" is used in a startup script the command was put in the typeahead
|
|
1446 buffer, causing a prompt for the crypt key to be messed up.
|
|
1447
|
|
1448 Mac OS/X: The default for 'isprint' included characters 128-160, causes
|
|
1449 problems for Terminal.app.
|
|
1450
|
|
1451 When a syntax item with "containedin" is used, it may match in the start or
|
|
1452 end of a region with a matchgroup, while this doesn't happen for a "contains"
|
|
1453 argument.
|
|
1454
|
|
1455 When a transparent syntax items matches in another item where the highlighting
|
|
1456 has already stopped (because of a he= argument), the highlighting would come
|
|
1457 back.
|
|
1458
|
|
1459 When cscope is used to set the quickfix error list, it didn't get set if there
|
|
1460 was only one match. (Sergey Khorev)
|
|
1461
|
|
1462 When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
|
|
1463 "cancel", would still give an error message.
|
|
1464
|
|
1465 The PopUp menu items that started Visual mode didn't work when not in Normal
|
|
1466 mode. Switching between selecting a word and a line was not possible.
|
|
1467
|
|
1468 Win32: The keypad decimal point always resulted in a '.', while on some
|
|
1469 keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
|
|
1470
|
|
1471 Removed unused function DisplayCompStringOpaque() from gui_w32.c
|
|
1472
|
|
1473 In Visual mode there is not always an indication whether the line break is
|
|
1474 selected or not. Highlight the character after the line when the line break
|
|
1475 is included, e.g., after "v$o".
|
|
1476
|
|
1477 GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
|
|
1478 GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
|
|
1479
|
|
1480 After "Y" '[ and '] were not at start/end of the yanked text.
|
|
1481
|
|
1482 When a telnet connection is dropped Vim preserves files and exits. While
|
|
1483 doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
|
38
|
1484 Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
|
|
1485 handle. Added handle_signal().
|
|
1486
|
39
|
1487 When completing a file name on the command line backslashes are required for
|
|
1488 white space. Was only done for a space, not for a Tab.
|
|
1489
|
|
1490 When configure could not find a terminal library, compiling continued for a
|
|
1491 long time before reporting the problem. Added a configure check for tgetent()
|
|
1492 being found in a library.
|
|
1493
|
|
1494 When the cursor is on the first char of the last line a ":g/pat/s///" command
|
|
1495 may cause the cursor to be displayed below the text.
|
|
1496
|
|
1497 Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
|
|
1498 is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
|
|
1499
|
|
1500 When recovering the 'fileformat' and 'fileencoding' were taken from the
|
|
1501 original file instead of from the swapfile. When the file didn't exist, was
|
|
1502 empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
|
|
1503 be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
|
|
1504 the values when recovering.
|
|
1505
|
|
1506 ":bufdo g/something/p" overwrites each last printed text line with the file
|
|
1507 message for the next buffer. Temporarily clear 'shortmess' to avoid that.
|
|
1508
|
40
|
1509 Win32: Cannot edit a file starting with # with --remote. Do escape % and #
|
|
1510 when building the ":drop" command.
|
|
1511
|
41
|
1512 A comment or | just after a expresion-backtick argument was not recognized.
|
|
1513 E.g. in :e `="foo"`"comment.
|
|
1514
|
46
|
1515 "(" does not stop at an empty sentence (single dot and white space) while ")"
|
|
1516 does. Also breaks "das" on that dot.
|
|
1517
|
|
1518 When doing "yy" with the cursor on a TAB the ruler could be wrong and "k"
|
|
1519 moved the cursor to another column.
|
|
1520
|
|
1521 When 'commentstring' is '"%s' and there is a double quote in the line a double
|
|
1522 quote before the fold marker isn't removed in the text displayed for a closed
|
|
1523 fold.
|
|
1524
|
|
1525 In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line
|
|
1526 break, resulting in "selected 202 of 201 bytes".
|
|
1527
|
69
|
1528 Motif: fonts were not used for dialog components. (Marcin Dalecki)
|
46
|
1529
|
56
|
1530 Motif: After using a toolbar button the keyboard focus would be on the toolbar
|
69
|
1531 (Lesstif problem). (Marcin Dalecki)
|
56
|
1532
|
51
|
1533 When using "y<C-V>`x" where mark x is in the first column, the last line was
|
|
1534 not included.
|
|
1535
|
|
1536 Not all test scripts work properly on MS-Windows when checked out from CVS.
|
|
1537 Use a Vim command to fix all fileformats to dos before executing the tests.
|
|
1538
|
|
1539 When using ":new" and the file fits in the window, lines could still be above
|
|
1540 the window. Now remove empty lines instead of keeping the relative position.
|
|
1541
|
76
|
1542 Cmdline completion didn't work after ":let var1 var<Tab>".
|
|
1543
|
91
|
1544 When using ":startinsert" or ":startreplace" when already in Insert mode
|
|
1545 (possible when using CTRL-R =), pressing Esc would directly restart Insert
|
|
1546 mode. (Peter Winters)
|
|
1547
|
97
|
1548 "2daw" didn't work at end of file if the last word is a single character.
|
|
1549
|
100
|
1550 Completion for ":next a'<Tab>" put a backslash before single quote, but it was
|
|
1551 not removed when editing a file. Now halve backslashes in save_patterns().
|
109
|
1552 Also fix expanding a file name with the shell that contains "\'".
|
100
|
1553
|
136
|
1554 When doing "1,6d|put" only "fewer lines" was reported. Now a following "more
|
|
1555 lines" overwrites the message.
|
|
1556
|
|
1557 Configure could not handle "-Dfoo=long\ long" in the TCL config output.
|
|
1558
|
141
|
1559 When searching backwards, using a pattern that matches a newline and uses \zs
|
|
1560 after that, didn't find a match. Could also get a hang or end up in the right
|
|
1561 column in the wrong line.
|
|
1562
|
149
|
1563 When $LANG is "sl" for slovenian, the slovak menu was used, since "slovak"
|
|
1564 starts with "sl".
|
|
1565
|
|
1566 When 'paste' is set in the GUI the Paste toolbar button doesn't work. Clear
|
|
1567 'paste' when starting the GUI.
|
|
1568
|
155
|
1569 A message about a wrong viminfo line included the trailing NL.
|
|
1570
|
159
|
1571 When 'paste' is set in the GUI the toolbar button doesn't work in Insert mode.
|
|
1572 Use ":exe" in menu.vim to avoid duplicating the commands, instead of using a
|
|
1573 mapping.
|
|
1574
|
|
1575 Treat "mlterm" as an xterm-like terminal. (Seiichi Sato)
|
|
1576
|
|
1577 ":z.4" and ":z=4" didn't work Vi compatible.
|
|
1578
|
162
|
1579 When sourcing a file, editing it and sourcing it again, it could appear twice
|
|
1580 in ":scriptnames" and get a new <SID>, because the inode has changed.
|
|
1581
|
|
1582 When $SHELL is set but empty the 'shell' option would be empty. Don't use an
|
|
1583 empty $SHELL value.
|
|
1584
|
|
1585 A command "w! file" in .vimrc or $EXINIT didn't work. Now it writes an empty
|
|
1586 file.
|
|
1587
|
|
1588 When a CTRL-F command at the end of the file failed, the cursor was still
|
|
1589 moved to the start of the line. Now it remains where it is.
|
|
1590
|
|
1591 When using ":s" or "&" to repeat the last substitute and "$" was used to put
|
|
1592 the cursor in the last column, put the cursor in the last column again. This
|
|
1593 is Vi compatible.
|
|
1594
|
164
|
1595 Vim is not fully POSIX compliant but sticks with traditional Vi behavior.
|
|
1596 Added a few flags in 'cpoptions' to behave the POSIX way when wanted. The
|
|
1597 $VIM_POSIX environment variable is checked to set the default.
|
|
1598
|
|
1599 Appending to a register didn't insert a line break like Vi. Added the '>'
|
|
1600 flag to 'cpoptions' for this.
|
|
1601
|
|
1602 Using "I" in a line with only blanks appended to the line. This is not Vi
|
|
1603 compatible. Added the 'H' flag in 'coptions' for this.
|
|
1604
|
|
1605 When joining multiple lines the cursor would be at the last joint, but Vi
|
|
1606 leaves it at the position where "J" would put it. Added the 'q' flag in
|
|
1607 'cpoptions' for this.
|
|
1608
|
|
1609 Autoindent didn't work for ":insert" and ":append".
|
|
1610
|
|
1611 Using ":append" in an empty buffer kept the dummy line. Now it's deleted to
|
|
1612 be Vi compatible.
|
|
1613
|
|
1614 When reading commands from a file and stdout goes to a terminal, would still
|
|
1615 request the xterm version. Vim can't read it, thus the output went to the
|
|
1616 shell and caused trouble there.
|
|
1617
|
169
|
1618 When redirecting to a register with an invalid name the redirection would
|
|
1619 still be done (after an error message). Now reset "redir_reg". (Yegappan
|
|
1620 Lakshmanan)
|
|
1621
|
|
1622 It was not possible to use a NL after a backslash in Ex mode. This is
|
|
1623 sometimes used to feed multiple lines to a shell command.
|
|
1624
|
170
|
1625 When 'cmdheight' is set to 2 in .vimrc and the GUI uses the number of lines
|
|
1626 from the terminal we actually get 3 lines for the cmdline in gvim.
|
|
1627
|
|
1628 When setting $HOME allocated memory would leak.
|
|
1629
|
179
|
1630 Win32: bold characters may sometimes write in another character cell. Use
|
|
1631 unicodepdy[] as for UTF-8. (Taro Muraoka)
|
|
1632
|
|
1633 ":w fname" didn't work for files with 'buftype' set to "nofile".
|
|
1634
|
192
|
1635 The method used to locate user commands for completion differed from when they
|
|
1636 are executed. Abiguous command names were not completed properly.
|
|
1637
|
197
|
1638 Incremental search may cause a crash when there is a custom statusline that
|
|
1639 indirectly invokes ":normal".
|
|
1640
|
|
1641 Diff mode failed when $DIFF_OPTIONS was set in the environment. Unset it
|
|
1642 before invoking "diff".
|
|
1643
|
200
|
1644 Completion didn't work after ":argdo", ":windo" and ":bufdo". Also for ":set
|
|
1645 &l:opt" and ":set &g:opt". (Peter Winters)
|
|
1646
|
|
1647 When setting 'ttymouse' to "dec" in an xterm that supports the DEC mouse
|
|
1648 locator it doesn't work. Now switch off the mouse before selecting another
|
|
1649 mouse model.
|
|
1650
|
206
|
1651 When the CursorHold event is triggered and the commands peek for typed
|
|
1652 characters the typeahead buffer may be messed up, e.g., when a mouse-up event
|
|
1653 is received. Avoid invoking the autocommands from the function waiting for a
|
|
1654 character, let it put K_CURSORHOLD in the input buffer.
|
|
1655
|
|
1656 Removed the "COUNT" flag from ":argadd", to avoid ":argadd 1*" to be used like
|
218
|
1657 ":1argadd *". Same for ":argdelete" and ":argedit".
|
206
|
1658
|
|
1659 Avoid that $LANG is used for the menus when LC_MESSAGES is "en_US".
|
|
1660
|
218
|
1661 Added backslashes before dashes in the vim.1 manual page to make the appear as
|
|
1662 real dashes. (Pierr Habouzit)
|
|
1663
|
|
1664 Where "gq" left the cursor depended on the value of 'formatprg'. Now "gq"
|
|
1665 always leaves the cursor at the last line of the formatted text.
|
|
1666
|
|
1667 When editing a compressed file, such as "changelog.Debian.gz" file, filetype
|
|
1668 detection may try to check the contents of the file while it's still
|
|
1669 compressed. Skip setting 'filetype' for compressed files until they have been
|
|
1670 decompressed. Required for patterns that end in a "*".
|
|
1671
|
|
1672 Starting with an argument "+cmd" or "-S script" causes the cursor the be moved
|
|
1673 to the first line. That breaks a BufReadPost autocommand that uses g`".
|
|
1674 Don't move the cursor if it's somewhere past the first line.
|
|
1675
|
|
1676 "gg=G" while 'modifiable' is off was uninterruptable.
|
|
1677
|
222
|
1678 When 'encoding' is "sjis" inserting CTRL-V u d800 a few times causes a crash.
|
|
1679 Don't insert a DBCS character with a NUL second byte.
|
|
1680
|
231
|
1681 In Insert mode CTRL-O <Home> didn't move the cursor. Made "ins_at_eol" global
|
|
1682 and reset it in nv_home().
|
|
1683
|
234
|
1684 Wildcard expansion failed: ":w /tmp/$$.`echo test`". Don't put quotes around
|
|
1685 spaces inside backticks.
|
|
1686
|
237
|
1687 After this sequence of commands: Y V p gv: the wrong line is selected. Now
|
|
1688 let "gv" select the text that was put, since the original text is deleted.
|
|
1689 This should be the most useful thing to do.
|
|
1690
|
|
1691 ":sleep 100u" sleeps for 100 seconds, not 100 usec as one might expect. Give
|
|
1692 an error message when the argument isn't recognized.
|
|
1693
|
|
1694 In gui_mch_draw_string() in gui_w32.c "unibuflen" wasn't static, resulting in
|
|
1695 reallocating the buffer every time. (Alexei Alexandrov)
|
|
1696
|
242
|
1697 When using a Python "atexit" function it was not invoked when Vim exits. Now
|
|
1698 call Py_Finalize() for that. (Ugo Di Girolamo)
|
323
|
1699 This breaks the thread stuff though, fixed by Ugo.
|
242
|
1700
|
265
|
1701 GTK GUI: using a .vimrc with "set cmdheight=2 lines=43" and ":split" right
|
|
1702 after startup, the window layout is messed up. (Michael Schaap) Added
|
|
1703 win_new_shellsize() call in gui_init() to fix the topframe size.
|
|
1704
|
|
1705 Trick to get ...MOUSE_NM not used when there are vertical splits. Now pass
|
|
1706 column -1 for the left most window and add MOUSE_COLOFF for others. Limits
|
|
1707 mouse column to 10000.
|
|
1708
|
|
1709 searchpair() may hang when the end pattern has "\zs" at the end. Check that
|
|
1710 we find the same position again and advance one character.
|
|
1711
|
|
1712 When in diff mode and making a change that causes the "changed" highlighting
|
|
1713 to disappear or reappear, it was still highlighted in another window.
|
|
1714
|
271
|
1715 When a ":next" command fails because the user selects "Abort" at the ATTENTION
|
|
1716 prompt the argument index was advanced anyway.
|
|
1717
|
|
1718 When "~" is in 'iskeyword' the "gd" doesn't work, it's used for the previous
|
|
1719 substitute pattern. Put "\V" in the pattern to avoid that.
|
|
1720
|
274
|
1721 Use of sprintf() sometimes didn't check properly for buffer overflow. Also
|
|
1722 when using smsg(). Included code for snprintf() to avoid having to do size
|
|
1723 checks where invoking them
|
|
1724
|
279
|
1725 ":help \=<Tab>" didn't find "sub-replace-\=". Wild menu for help tags didn't
|
|
1726 show backslashes. ":he :s\=" didn't work.
|
|
1727
|
|
1728 When reading an errorfile "~/" in a file name was not expanded.
|
|
1729
|
|
1730 GTK GUI: When adding a scrollbar (e.g. when using ":vsplit") in a script or
|
|
1731 removing it the window size may change. GTK sends us resize events when we
|
|
1732 change the window size ourselves, but they may come at an unexpected moment.
|
|
1733 Peek for a character to get any window resize events and fix 'columns' and
|
|
1734 'lines' to undo this.
|
|
1735
|
284
|
1736 After deleting files from the argument list a session file generated with
|
|
1737 ":mksession" may contain invalid ":next" commands.
|
|
1738
|
|
1739 When 'shortmess' is empty and 'keymap' set to accents, in Insert mode CTRL-N
|
|
1740 may cause the hit-enter prompt. Typing 'a then didn't result in the accented
|
|
1741 character. Put the character typed at the prompt back in the typeahead buffer
|
|
1742 so that mapping is done in the right mode.
|
|
1743
|
337
|
1744 setbufvar() and setwinvar() did not give error messages.
|
|
1745
|
|
1746 It was possible to set a variable with an illegal name, e.g. with setbufvar().
|
344
|
1747 It was possible to define a function with illegal name, e.t. ":func F{-1}()"
|
|
1748
|
|
1749 CTRL-W F and "gf" didn't use the same method to get the file name.
|
337
|
1750
|
375
|
1751 When reporting a conversion error the line number of the last error could be
|
|
1752 given. Now report the first encountered error.
|
|
1753
|
|
1754 When using ":e ++enc=name file" and iconv() was used for conversion an error
|
591
|
1755 caused a fall-back to no conversion. Now replace a character with '?' and
|
375
|
1756 continue.
|
|
1757
|
404
|
1758 When opening a new buffer the local value of 'bomb' was not initialized from
|
|
1759 the global value.
|
|
1760
|
415
|
1761 Win32: When using the "Edit with Vim" entry the file name was limited to about
|
|
1762 200 characters.
|
|
1763
|
436
|
1764 When using command line completion for ":e *foo" and the file "+foo" exists
|
|
1765 the resulting command ":e +foo" doesn't work. Now insert a backslash: ":e
|
|
1766 \+foo".
|
|
1767
|
446
|
1768 When the translation of "-- More --" was not 10 characters long the following
|
|
1769 message would be in the wrong position.
|
|
1770
|
|
1771 At the more-prompt the last character in the last line wasn't drawn.
|
|
1772
|
|
1773 When deleting non-existing text while 'virtualedit' is set the '[ and '] marks
|
|
1774 were not set.
|
|
1775
|
462
|
1776 Win32: Could not use "**/" in 'path', it had to be "**\".
|
|
1777
|
481
|
1778 The search pattern "\n" did not match at the end of the last line.
|
|
1779
|
|
1780 Searching for a pattern backwards, starting on the NUL at the end of the line
|
|
1781 and 'encoding' is "utf-8" would match the pattern just before it incorrectly.
|
|
1782 Affected searchpair('/\*', '', '\*/').
|
|
1783
|
482
|
1784 For the Find/Replace dialog it was possible that not finding the text resulted
|
|
1785 in an error message while redrawing, which cleared the syntax highlighting
|
|
1786 while it was being used, resulting in a crash. Now don't clear syntax
|
|
1787 highlighting, disable it with b_syn_error.
|
|
1788
|
497
|
1789 Win32: Combining UTF-8 characters were drawn on the previous character.
|
|
1790 Could be noticed with a Thai font.
|
|
1791
|
507
|
1792 Output of ":function" could leave some of the typed text behind. (Yegappan
|
|
1793 Lakshmanan)
|
|
1794
|
511
|
1795 When the command line history has only a few lines the command line window
|
|
1796 would be opened with these lines above the first window line.
|
|
1797
|
|
1798 When using a command line window for search strings ":qa" would result in
|
|
1799 searching for "qa" instead of quitting all windows.
|
|
1800
|
520
|
1801 GUI: When scrolling with the scrollbar and there is a line that doesn't fit
|
|
1802 redrawing may fail. Make sure w_skipcol is valid before redrawing.
|
|
1803
|
534
|
1804 Limit the values of 'columns' and 'lines' to avoid an overflow in Rows *
|
|
1805 Columns. Fixed bad effects when running out of memory (command line would be
|
|
1806 reversed, ":qa!" resulted in ":!aq").
|
|
1807
|
557
|
1808 Motif: "gvim -iconic" opened the window anyway. (David Harrison)
|
|
1809
|
|
1810 There is a tiny chance that a symlink gets created between checking for an
|
|
1811 existing file and creating a file. Use the O_NOFOLLOW for open() if it's
|
|
1812 available.
|
|
1813
|
|
1814 In an empty line "ix<CTRL-O>0" moved the cursor to after the line instead of
|
|
1815 sticking to the first column.
|
|
1816
|
572
|
1817 When using ":wq" and a BufWriteCmd autocmd uses inputsecret() the text was
|
|
1818 echoed anyway. Set terminal to raw mode in getcmdline().
|
|
1819
|
580
|
1820 Unix: ":w a;b~c" caused an error in expanding wildcards.
|
|
1821
|
591
|
1822 When appending to a file with ":w >>fname" in a buffer without a name, causing
|
|
1823 the buffer to use "fname", the modified flag was reset.
|
|
1824
|
|
1825 When appending to to current file the "not edited" flag would be reset.
|
|
1826 ":w" would overwrite the file accidentally.
|
|
1827
|
594
|
1828 Unix: When filtering text with an external command Vim would still read input,
|
|
1829 causing text typed for the command (e.g., a password) to be eaten and echoed.
|
|
1830 Don't read input when the terminal is in cooked mode.
|
|
1831
|
604
|
1832 The Cygwin version of xxd used CR/LF line separators. (Corinna Vinschen)
|
|
1833
|
|
1834 Unix: When filtering text through a shell command some resulting text may be
|
|
1835 dropped. Now after detecting that the child has exited try reading some more
|
|
1836 of its output.
|
|
1837
|
607
|
1838 When inside input(), using "CTRL-R =" and the expression throws an exception
|
|
1839 the command line was not abandoned but it wasn't used either. Now abandon
|
|
1840 typing the command line.
|
|
1841
|
610
|
1842 'delcombine' was also used in Visual and Select mode and for commands like
|
|
1843 "cl". That was illogical and has been disabled.
|
|
1844
|
|
1845 When recording while a CursorHold autocommand was defined special keys would
|
|
1846 appear in the register. Now the CursorHold event is not triggered while
|
|
1847 recording.
|
|
1848
|
615
|
1849 Unix: the src/configure script used ${srcdir-.}, not all shells understand
|
|
1850 that. Use ${srcdir:-.} instead.
|
|
1851
|
619
|
1852 When editing file "a" which is a symlink to file "b" that doesn't exist,
|
|
1853 writing file "a" to create "b" and then ":split b" resulted in two buffers on
|
|
1854 the same file with two different swapfile names. Now set the inode in the
|
|
1855 buffer when creating a new file.
|
|
1856
|
620
|
1857 When 'esckeys' is not set don't send the xterm code to request the version
|
|
1858 string, because it may cause trouble in Insert mode.
|
|
1859
|
|
1860 When evaluating an expression for CTRL-R = on the command line it was possible
|
632
|
1861 to call a function that opens a new window, resulting in errors for
|
634
|
1862 incremental search, and many other nasty things were possible. Now use the
|
|
1863 |textlock| to disallow changing the buffer or jumping to another window
|
625
|
1864 to protect from unexpected behavior. Same for CTRL-\ e.
|
620
|
1865
|
|
1866 "d(" deleted the character under the cursor, while the documentation specified
|
|
1867 an exclusive motion. Vi also doesn't delete the character under the cursor.
|
|
1868
|
|
1869 Shift-Insert in Insert mode could put the cursor before the last character
|
|
1870 when it just fits in the window. In coladvance() don't stop at the window
|
|
1871 edge when filling with spaces and when in Insert mode. In mswin.vim avoid
|
|
1872 getting a beep from the "l" command.
|
|
1873
|
625
|
1874 Win32 GUI: When Alt-F4 is used to close the window and Cancel is selected in
|
|
1875 the dialog then Vim would insert <M-F4> in the text. Now it's ignored.
|
|
1876
|
|
1877 When ":silent! {cmd}" caused the swap file dialog, which isn't displayed,
|
|
1878 there would still be a hit-enter prompt.
|
|
1879
|
626
|
1880 Requesting the termresponse (|t_RV|) early may cause problems with "-c"
|
|
1881 arguments that invoke an external command or even "-c quit". Postpone it
|
|
1882 until after executing "-c" arguments.
|
|
1883
|
|
1884 When typing in Insert mode so that a new line is started, using CTRL-G u to
|
|
1885 break undo and start a new change, then joining the lines with <BS> caused
|
|
1886 undo info to be missing. Now reset the insertion start point.
|
|
1887
|
|
1888 Syntax HL: When a region start match has a matchgroup and an offset that
|
|
1889 happens to be after the end of the line then it continued in the next line and
|
|
1890 stopped at the region end match, making the region continue after that.
|
|
1891 Now check for the column being past the end of the line in syn_add_end_off().
|
|
1892
|
630
|
1893 When changing a file, setting 'swapfile' off and then on again, making another
|
|
1894 change and killing Vim, then some blocks may be missing from the swapfile.
|
|
1895 When 'swapfile' is switched back on mark all blocks in the swapfile as dirty.
|
|
1896 Added mf_set_dirty().
|
|
1897
|
|
1898 Expanding wildcards in a command like ":e aap;<>!" didn't work. Put
|
|
1899 backslashes before characters that are special to the shell. (Adri Verhoef)
|
|
1900
|
632
|
1901 A CursorHold autocommand would cause a message to be cleared. Don't show the
|
|
1902 special key for the event for 'showcmd'.
|
|
1903
|
|
1904 When expanding a file name for a shell command, as in "!cmd foo<Tab>" or ":r
|
|
1905 !cmd foo<Tab>" also escape characters that are special for the shell:
|
|
1906 "!;&()<>".
|
|
1907
|
634
|
1908 When the name of the buffer was set by a ":r fname" command |cpo-f| no
|
|
1909 autocommands were triggered to notify about the change in the buffer list.
|
|
1910
|
|
1911 In the quickfix buffer 'bufhidden' was set to "delete", which caused closing
|
|
1912 the quickfix window to leave an unlisted "No Name" buffer behind every time.
|
|
1913
|
637
|
1914 Win32: when using two screens of different size, setting 'lines' to a large
|
|
1915 value didn't fill the whole screen. (SungHyun Nam)
|
|
1916
|
640
|
1917 Win32 installer: The generated _vimrc contained an absolute path to diff.exe.
|
|
1918 After upgrading it becomes invalid. Now use $VIMRUNTIME instead.
|
|
1919
|
644
|
1920 The command line was cleared to often when 'showmode' was set and ":silent
|
|
1921 normal vy" was used. Don't clear the command line unless the mode was
|
|
1922 actually displayed. Added the "mode_displayed" variable.
|
|
1923
|
648
|
1924 The "load session" toolbar item could not handle a space or other special
|
|
1925 characters in v:this_session.
|
|
1926
|
|
1927 ":set sta ts=8 sw=4 sts=2" deleted 4 spaces halfway a line instead of 2.
|
|
1928
|
651
|
1929 In a multi-byte file the foldmarker could be recognized in the trail byte.
|
|
1930 (Taro Muraoka)
|
|
1931
|
654
|
1932 Pasting with CTRL-V and menu didn't work properly when some commands are
|
|
1933 mapped. Use ":normal!" instead of ":normal". (Tony Apuzzo)
|
|
1934
|
|
1935 Crashed when expanding a file name argument in backticks.
|
|
1936
|
666
|
1937 In some situations the menu and scrollbar didn't work, when the value contains
|
|
1938 a CSI byte. (Yukihiro Nakadaira)
|
|
1939
|
667
|
1940 GTK GUI: When drawing the balloon focus changes and we might get a key release
|
|
1941 event that removed the balloon again. Ignore the key release event.
|
|
1942
|
|
1943 'titleold' was included in ":mkexrc" and ":mksession" files.
|
|
1944
|
671
|
1945 ":set background&" didn't use the same logic as was used when starting up.
|
|
1946
|
673
|
1947 When "umask" is set such that nothing is writable then the viminfo file would
|
|
1948 be written without write permission. (Julian Bridle)
|
|
1949
|
674
|
1950 Motif: In diff mode dragging one scrollbar didn't update the scrollbar of the
|
|
1951 other diff'ed window.
|
|
1952
|
680
|
1953 When editing in an xterm with a different number of colors than expected the
|
|
1954 screen would be cleared and redrawn, causing the message about the edited file
|
|
1955 to be cleared. Now set "keep_msg" to redraw the last message.
|
|
1956
|
681
|
1957 For a color terminal: When the Normal HL uses bold, possibly to make the color
|
|
1958 lighter, and another HL group specifies a color it might become light as well.
|
|
1959 Now reset bold if a HL group doesn't specify bold itself.
|
|
1960
|
685
|
1961 When using 256 color xterm the color 255 would show up as color 0. Use a
|
|
1962 short instead of a char to store the color number.
|
|
1963
|
|
1964 ml_get errors when searching for "\n\zs" in an empty file.
|
|
1965
|
689
|
1966 When selecting a block and using "$" to select until the end of every line and
|
|
1967 not highlighting the character under the cursor the first character of the
|
|
1968 block could be unhighlighted.
|
|
1969
|
|
1970 When counting words for the Visual block area and using "$" to select until
|
|
1971 the end of every line only up to the length of the last line was counted.
|
|
1972
|
693
|
1973 "dip" in trailing empty lines left one empty line behind.
|
|
1974
|
694
|
1975 The script ID was only remembered globally for each option. When a buffer- or
|
|
1976 window-local option was set the same "last set" location was changed for all
|
|
1977 buffers and windows. Now remember the script ID for each local option
|
|
1978 separately.
|
|
1979
|
|
1980 GUI: The "Replace All" button didn't handle backslashes in the replacement in
|
|
1981 the same way as "Replace". Escape backslashes so that they are taken
|
|
1982 literally.
|
|
1983
|
697
|
1984 When using Select mode from Insert mode and typing a key, causing lines to be
|
|
1985 deleted and a message displayed, delayed the effect of inserting the key.
|
|
1986 Now overwrite the message without delay.
|
694
|
1987
|
714
|
1988 When 'whichwrap' includes "l" then "dl" and "yl" on a single letter line
|
|
1989 worked differently. Now recognize all operators when using "l" at the end of
|
|
1990 a line.
|
|
1991
|
|
1992 GTK GUI: when the font selector returned a font name with a comma in it then
|
|
1993 it would be handled like two font names. Now put a backslash before the
|
|
1994 comma.
|
|
1995
|
|
1996 MS-DOS, Win32: When 'encoding' defaults to "latin1" then the value for
|
|
1997 'iskeyword' was still for CPxxx. And when 'nocompatible' was set 'isprint'
|
|
1998 would also be the wrong value.
|
|
1999
|
716
|
2000 When a command was defined not to take arguments and no '|' no warning message
|
|
2001 would be given for using a '|'. Also with ":loadkeymap".
|
|
2002
|
717
|
2003 Motif: When using a fontset and 'encoding' is "utf-8" and sizeof(wchar_t) !=
|
|
2004 sizeof(XChar2b) then display was wrong. (Yukihiro Nakadaira)
|
|
2005
|
734
|
2006 ":all" always set the current window to the first window, even when it
|
|
2007 contains a buffer that is not in the argument list (can't be closed because it
|
|
2008 is modified). Now go to the window that has the first item of the argument
|
|
2009 list.
|
|
2010
|
747
|
2011 GUI: To avoid left-over pixels from bold text all characters after a character
|
|
2012 with special attributes were redrawn. Now only do this for characters that
|
|
2013 actually are bold. Speeds up displaying considerably.
|
|
2014
|
|
2015 When only highlighting changes and the text is scrolled at the same time
|
|
2016 everything is redraw instead of using a scroll and updating the changed text.
|
|
2017 E.g., when using ":match" to highlight a paren that the cursor landed on.
|
|
2018 Added SOME_VALID: Redraw the whole window but also try to scroll to minimize
|
|
2019 redrawing.
|
|
2020
|
777
|
2021 Win32: When using Korean IME making it active didn't work properly. (Moon,
|
|
2022 Yu-sung, 2005 March 21)
|
|
2023
|
782
|
2024 Ruby interface: when inserting/deleting lines display wasn't updated. (Ryan
|
|
2025 Paul)
|
777
|
2026
|
7
|
2027 vim:tw=78:ts=8:ft=help:norl:
|