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