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