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