448
|
1 *version7.txt* For Vim version 7.0aa. Last change: 2005 Jul 28
|
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|
|
14
|
23 KDE support |new-KDE|
|
306
|
24 MzScheme interface |new-MzScheme|
|
|
25 Printing multi-byte text |new-print-multi-byte|
|
36
|
26 Translated manual pages |new-manpage-trans|
|
43
|
27 Internal grep |new-vimgrep|
|
446
|
28 Scroll back in messages |new-scroll-back|
|
164
|
29 POSIX compatibility |new-posix|
|
192
|
30 Debugger support |new-debug-support|
|
7
|
31 Various new items |new-items-7|
|
|
32
|
|
33 IMPROVEMENTS |improvements-7|
|
|
34
|
|
35 COMPILE TIME CHANGES |compile-changes-7|
|
|
36
|
|
37 BUG FIXES |bug-fixes-7|
|
|
38
|
|
39 ==============================================================================
|
|
40 INCOMPATIBLE CHANGES *incompatible-7*
|
|
41
|
|
42 These changes are incompatible with previous releases. Check this list if you
|
141
|
43 run into a problem when upgrading from Vim 6.x to 7.0.
|
|
44
|
|
45 A ":write file" command no longer resets the 'modified' flag of the buffer,
|
|
46 unless the '+' flag is in 'cpoptions' |cpo-+|. This was illogical, since the
|
|
47 buffer is still modified compared to the original file. And when undoing
|
|
48 all changes the file would actually be marked modified. It does mean that
|
|
49 ":quit" fails now.
|
7
|
50
|
10
|
51 ":helpgrep" now uses a help window to display a match.
|
|
52
|
39
|
53 In an argument list double quotes could be used to include spaces in a file
|
|
54 name. This caused a difference between ":edit" and ":next" for escaping
|
|
55 double quotes and it is incompatible with some versions of Vi.
|
|
56 Command Vim 6.x file name Vim 7.x file name ~
|
|
57 :edit foo\"888 'foo"888' 'foo"888'
|
|
58 :next foo\"888 'foo888' 'foo"888'
|
|
59 :next a\"b c\"d 'ab cd' 'a"b' and 'c"d'
|
|
60
|
100
|
61 In a |literal-string| a single quote can be doubled to get one.
|
|
62 ":echo 'a''b'" would result in "a b", but now that two quotes stand for one it
|
|
63 results in "a'b".
|
|
64
|
10
|
65
|
|
66 Minor incompatibilities:
|
|
67
|
|
68 For filetype detection: For many types, instead of ~/.dir/filename use
|
|
69 */.dir/filename, so that it also works for other user's files.
|
|
70
|
|
71 ":0verbose" now sets 'verbose' to zero instead of one.
|
|
72
|
|
73 Removed the old and incomplete "VimBuddy" code.
|
|
74
|
|
75 Buffers without a name report "No Name" instead of "No File". It was
|
|
76 confusing for buffers with a name and 'buftype' set to "nofile".
|
7
|
77
|
29
|
78 When ":file xxx" is used in a buffer without a name, the alternate file name
|
|
79 isn't set. This avoids creating buffers without a name that are not useful.
|
|
80
|
|
81 The "2html.vim" script now converts closed folds to HTML. This means the HTML
|
279
|
82 looks like its displayed, with the same folds open and closed. Use "zR", or
|
|
83 "let html_ignore_folding=1", if no folds should appear in the HTML. (partly by
|
|
84 Carl Osterwisch)
|
32
|
85 Diff mode now is also converted as it is displayed.
|
29
|
86
|
36
|
87 Win32: The effect of the <F10> key depended on 'winaltkeys'. Now it depends
|
|
88 on whether <F10> has been mapped or not. This allows mapping <F10> without
|
|
89 changing 'winaltkeys'.
|
|
90
|
100
|
91 When 'octal' is in 'nrformats' and using CTRL-A on "08" it became "018", which
|
|
92 is illogical. Now it becomes "9". The leading zero(s) is(are) removed to
|
|
93 avoid the number becoming octal after incrementing "009" to "010".
|
39
|
94
|
|
95 When 'encoding' is set to a Unicode encoding, the value for 'fileencodings'
|
|
96 now includes "default" before "latin1". This means that for files with 8-bit
|
|
97 encodings the default is to use the encoding specified by the environment, if
|
|
98 possible. Previously latin1 would always be used, which is wrong in a
|
|
99 non-latin1 environment, such as Russian.
|
|
100
|
149
|
101 Previously Vim would exit when there are two windows, both of them displaying
|
|
102 a help file, and using ":quit". Now only the window is closed.
|
|
103
|
164
|
104 "-w {scriptout}" only works when {scriptout} doesn't start with a digit.
|
|
105 Otherwise it's used to set the 'window' option.
|
|
106
|
181
|
107 Previously <Home> and <xHome> could be mapped separately. This had the
|
|
108 disadvantage that all mappings (with modifiers) had to be duplicated, since
|
|
109 you can't be sure what the keyboard generates. Now all <xHome> are internally
|
|
110 translated to <Home>, both for the keys and for mappings. Also for <xEnd>,
|
|
111 <xF1>, etc.
|
|
112
|
237
|
113 ":put" now leaves the cursor on the last inserted line.
|
|
114
|
379
|
115 When a .gvimrc file exists then 'compatible' is off, just like when a ".vimrc"
|
|
116 file exists.
|
|
117
|
7
|
118 ==============================================================================
|
|
119 NEW FEATURES *new-7*
|
|
120
|
116
|
121 Vim script enhancements *new-vim-script*
|
|
122 -----------------------
|
7
|
123
|
|
124 In Vim scripts the following types have been added:
|
|
125
|
97
|
126 List ordered list of items |List|
|
|
127 Dictionary associative array of items |Dictionary|
|
|
128 Funcref reference to a function |Funcref|
|
7
|
129
|
|
130 Many functions and commands have been added to support the new types.
|
|
131
|
97
|
132 The |string()| function can be used to get a string representation of a
|
|
133 variable. Works for Numbers, Strings and composites of them. Then |eval()|
|
|
134 can be used to turn the string back into the variable value.
|
|
135
|
116
|
136 The |:let| command can now use ":let var += expr" like using ":let var = var +
|
|
137 expr". "-=" and ".=" works in a similar way.
|
|
138
|
175
|
139 With the |:profile| command you can find out where your function or script
|
|
140 wastes its time.
|
|
141
|
11
|
142
|
222
|
143 Spell checking *new-spell*
|
|
144 --------------
|
|
145
|
|
146 Spell checking has been integrated in Vim. There were a few implementations
|
|
147 with scripts, but they were slow and/or required an external program.
|
|
148
|
|
149 The 'spell' option is used to switch spell checking on or off.
|
|
150 The 'spelllang' option is used to specify the languages that are accepted.
|
323
|
151 The 'spellfile' option specifies where new words are added.
|
379
|
152 The 'spellsuggest' option specifies the methods used for making suggestions
|
323
|
153
|
|
154 The |[s| and |]s| commands can be used to move to the next or previous error.
|
|
155 The |zg| and |zw| commands can be used to add good and wrong words.
|
|
156 The |z?| command can be used to correct the word.
|
379
|
157 The |:mkspell| command is used to generate a Vim spell file from word lists.
|
222
|
158
|
|
159 The "undercurl" highlighting attribute was added to nicely point out spelling
|
|
160 mistakes in the GUI (based on patch from Marcin Dalecki).
|
|
161 The "guisp" color can be used to give it a color different from foreground and
|
|
162 background.
|
|
163 The number of possible different highlight attributes was raised from about
|
|
164 220 to over 30000. This allows for the attributes of spelling to be combined
|
301
|
165 with syntax highlighting attributes. This is also used for syntax
|
|
166 highlighting.
|
222
|
167
|
|
168 Much more info here: |spell|.
|
|
169
|
|
170
|
14
|
171 KDE support *new-KDE*
|
11
|
172 -----------
|
|
173
|
|
174 Kvim is the KDE version of Vim. It uses the Qt toolkit. See |KVim|.
|
|
175 (Thomas Capricelli, Philippe Fremy, Mickael Marchand, Mark Westcott, et al.)
|
|
176
|
7
|
177
|
14
|
178 MzScheme interface *new-MzScheme*
|
|
179 ------------------
|
|
180
|
|
181 The MzScheme interpreter is supported. |MzScheme|
|
|
182 The |:mzscheme| command can be used to execute MzScheme commands.
|
|
183 The |:mzfile| command can be used to execute an MzScheme script file.
|
|
184
|
97
|
185
|
15
|
186 Printing multi-byte text *new-print-multi-byte*
|
|
187 ------------------
|
|
188
|
|
189 The |:hardcopy| command now supports printing multi-byte characters.
|
|
190 The 'printmbcharset' and 'printmbfont' options are used for this.
|
|
191 Also see |postscript-cjk-printing|. (Mike Williams)
|
|
192
|
14
|
193
|
36
|
194 Translated manual pages *new-manpage-trans*
|
|
195 -----------------------
|
|
196
|
|
197 The manual page of Vim and associated programs is now also available in
|
200
|
198 several other languages.
|
|
199
|
237
|
200 French - translated by David Blanchet
|
200
|
201 Italian - translated by Antonio Colombo
|
|
202 Russian - translated by Vassily Ragosin
|
36
|
203
|
237
|
204 The Unix Makefile installs the Italian manual pages in .../man/it/man1/,
|
|
205 .../man/it.ISO8859-1/man1/ and .../man/it.UTF-8/man1/. There appears to be no
|
|
206 standard for what encoding goes in the "it" directory, the 8-bit encoded file
|
|
207 is used there as a best guess.
|
|
208 Other languages are installed in similar places.
|
284
|
209 The translated pages are not automatically installed when Vim was configured
|
|
210 with "--disable-nls", but "make install-languages install-tool-languages" will
|
|
211 do it anyway.
|
40
|
212
|
36
|
213
|
43
|
214 Internal grep *new-vimgrep*
|
|
215 -------------
|
|
216
|
|
217 The ":vimgrep" command can be used to search for a pattern in a list of files.
|
|
218 This is like the ":grep" command, but no external program is used. Besides
|
|
219 better portability, handling of different file encodings and using multi-line
|
|
220 patterns, this also allows grepping in compressed and remote files.
|
|
221 |:vimgrep|.
|
|
222
|
170
|
223 If you want to use the search results in a script you can use the
|
231
|
224 |getqflist()| function.
|
170
|
225
|
445
|
226 To search in files in various directories the "**" pattern can be used. It
|
|
227 expands into an arbitrary depth of directories. "**" can be used in all
|
|
228 places where file names are expanded, thus also with |:next| and |:args|.
|
|
229
|
43
|
230
|
446
|
231 Scroll back in messages *new-scroll-back*
|
|
232 -----------------------
|
|
233
|
|
234 When displaying messages, at the |more-prompt| and the |hit-enter-prompt|, The
|
|
235 'k', 'u' and 'b' keys can be used to scroll back to previous messages. This
|
|
236 is especially useful for commands such as ":syntax", ":autocommand" and
|
|
237 ":highlight". This is implemented in a generic way thus it works for all
|
|
238 commands and highlighting is kept. Only works when the 'more' option is set.
|
|
239 Previously it only partly worked for ":clist".
|
|
240
|
448
|
241 The |g<| command can be used to see the last page of messages after you have
|
|
242 hit <Enter> at the |hit-enter-prompt|. Then you can scroll further back.
|
|
243
|
446
|
244
|
164
|
245 POSIX compatibility *new-posix*
|
|
246 -------------------
|
|
247
|
|
248 The POSIX test suite was used to verify POSIX compatibility. A number of
|
|
249 problems have been fixed to make Vim more POSIX compatible. Some of them
|
|
250 conflict with traditional Vi or expected behavior. The $VIM_POSIX environment
|
|
251 variable can be set to get POSIX compatibility. See |posix|.
|
|
252
|
|
253 Items that were fixed for both Vi and POSIX compatibilty:
|
|
254 - repeating "R" with a count only overwrites text once; added the 'X' flag to
|
|
255 'cpoptions' |cpo-X|
|
|
256 - a vertical movement command that moves to a non-existing line fails; added
|
|
257 the '-' flag to 'cpoptions' |cpo--|
|
|
258 - when preserving a file and doing ":q!" the file can be recovered; added the
|
|
259 '&' flag to 'cpoptions' |cpo-&|
|
|
260 - The 'window' option is partly implemented. It specifies how much CTRL-F and
|
|
261 CTRL-B scroll when there is one window. The "-w {number}" argument is now
|
|
262 accepted. "-w {scriptout}" only works when {scriptout} doesn't start with a
|
|
263 digit.
|
|
264 - Allow "-c{command}" argument, no space between "-c" and {command}.
|
|
265 - When writing a file with ":w!" don't reset 'readonly' when 'Z' is present in
|
|
266 'cpoptions'.
|
169
|
267 - Allow 'l' and '#' flags for ":list", ":print" and ":number".
|
|
268 - Added the '.' flag to 'cpoptions': ":cd" fails when the buffer is modified.
|
|
269 - In Ex mode with an empty buffer ":read file" doesn't keep an empty line
|
|
270 above or below the new lines.
|
|
271 - Remove a backslash before a NL for the ":global" command.
|
|
272 - When ":append", ":insert" or ":change" is used with ":global", get the
|
|
273 inserted lines from the command. Can use backslash-NL to separate lines.
|
|
274 - Can use ":global /pat/ visual" to execute Normal mode commands at each
|
|
275 matched line. Use "Q" to continue and go to the next line.
|
|
276 - The |:open| command has been partially implemented. It stops Ex mode, but
|
|
277 redraws the whole screen, not just one line as open mode is supposed to do.
|
|
278 - Support using a pipe to read the output from and write input to an external
|
|
279 command. Added the 'shelltemp' option and has("filterpipe").
|
|
280 - In ex silent mode the ":set" command output is displayed.
|
|
281 - The ":@@" and ":**" give an error message when no register was used before.
|
|
282 - The search pattern "[]-`]" matches ']', '^', '_' and '`'.
|
|
283 - Autoindent for ":insert" is using the line below the insert.
|
|
284 - Autoindent for ":change" is using the first changed line.
|
|
285 - Editing Ex command lines is not done in cooked mode, because CTRL-D and
|
|
286 CTRL-T cannot be handled then.
|
308
|
287 - In Ex mode, "1,3" prints three lines. "%" prints all lines.
|
|
288 - In Ex mode "undo" would undo all changes since Ex mode was started.
|
169
|
289 - Implemented the 'prompt' option.
|
164
|
290
|
|
291
|
192
|
292 Debugger support *new-debug-support*
|
|
293 ----------------
|
|
294
|
|
295 The 'balloonexpr' option has been added. This is a generic way to implement
|
|
296 balloon functionality. You can use it to show info for the word under the
|
|
297 mouse pointer.
|
|
298
|
|
299
|
7
|
300 Various new items *new-items-7*
|
|
301 -----------------
|
|
302
|
|
303 Normal mode commands: ~
|
|
304
|
12
|
305 a", a' and a` New text objects to select quoted strings. |a'|
|
|
306 i", i' and i' (Taro Muraoka)
|
7
|
307
|
170
|
308 CTRL-W <Enter> In the quickfix window: opens a new window to show the
|
|
309 location of the error under the cursor.
|
|
310
|
424
|
311 |at| and |it| text objects select a block of text between HTML or XML tags.
|
|
312
|
|
313
|
7
|
314 Options: ~
|
|
315
|
12
|
316 'completefunc' The name of a function used for user-specified Insert
|
|
317 mode completion. CTRL-X CTRL-U can be used in Insert
|
|
318 mode to do any kind of completion. (Taro Muraoka)
|
|
319 'quoteescape' Characters used to escape quotes inside a string.
|
|
320 Used for the a", a' and a` text objects. |a'|
|
13
|
321 'numberwidth' Minimal width of the space used for the 'number'
|
|
322 option. (Emmanuel Renieris)
|
14
|
323 'mzquantum' Time in msec to schedule MzScheme threads.
|
15
|
324 'printmbcharset' CJK character set to be used for :hardcopy
|
|
325 'printmbfont' font names to be used for CJK output of :hardcopy
|
36
|
326 'fsync' Whether fsync() is called after writing a file.
|
|
327 (Ciaran McCreesh)
|
40
|
328 'wildoptions' "tagfile" value enables listing the file name of
|
|
329 matching tags for CTRL-D command line completion.
|
|
330 (based on an idea from Yegappan Lakshmanan)
|
41
|
331 'formatlistpat' pattern to recognize a numbered list for formatting.
|
|
332 (idea by Hugo Haas)
|
222
|
333 'spell' switch spell checking on/off
|
|
334 'spelllang' languages to check spelling for
|
375
|
335 'spellsuggest' methods for spell suggestions
|
410
|
336 'synmaxcol' maximum column to look for syntax items; avoids very
|
|
337 slow redrawing when there are very long lines
|
294
|
338 'verbosefile' Log messages in a file.
|
41
|
339
|
7
|
340
|
|
341 Ex commands: ~
|
|
342
|
11
|
343 Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
|
|
344
|
15
|
345 |:startreplace| Start Replace mode. (Charles Campbell)
|
14
|
346
|
15
|
347 |:0file| Removes the name of the buffer. (Charles Campbell)
|
14
|
348
|
16
|
349 |:diffoff| Switch off diff mode in the current window or in all
|
|
350 windows.
|
|
351
|
22
|
352 |:keepalt| Do not change the alternate file.
|
|
353
|
24
|
354 |:delmarks| Delete marks.
|
|
355
|
29
|
356 |:sandbox| Command modifier: execute the argument in the sandbox.
|
|
357
|
40
|
358 |:exusage| Help for Ex commands (Nvi command).
|
|
359
|
|
360 |:viusage| Help for Vi commands (Nvi command).
|
|
361
|
41
|
362 |:cbuffer| Read error lines from a buffer. (partly by Yegappan
|
|
363 Lakshmanan)
|
7
|
364
|
284
|
365 |:sort| Sort lines in the buffer without depending on an
|
|
366 external command.
|
|
367
|
446
|
368 |:caddfile| Add error messages to an existing quickfix list
|
|
369 (Yegappan Lakshmanan).
|
|
370
|
|
371 |:cexpr| Read error messages from a Vim expression (Yegappan
|
|
372 Lakshmanan).
|
|
373
|
284
|
374
|
7
|
375 New functions: ~
|
|
376
|
116
|
377 |add()| append an item to a List
|
|
378 |append()| append List of lines to the buffer
|
432
|
379 |browsedir()| dialog to select a directory
|
|
380 |byteidx()| index of a character (Ilya Sher)
|
116
|
381 |call()| call a function with List as arguments
|
|
382 |copy()| make a shallow copy of a List or Dictionary
|
|
383 |count()| count nr of times a value is in a List or Dictionary
|
|
384 |deepcopy()| make a full copy of a List or Dictionary
|
|
385 |empty()| check if List or Dictionary is empty
|
234
|
386 |getqflist()| list of quickfix errors (Yegappan Lakshmanan)
|
116
|
387 |extend()| append one List to another or add items from one
|
|
388 Dictionary to another
|
|
389 |filter()| remove selected items from a List or Dictionary
|
432
|
390 |finddir()| find a directory in 'path'
|
|
391 |findfile()| find a file in 'path' (Johannes Zellner)
|
|
392 |foldtextresult()| the text displayed for a closed fold at line "lnum"
|
116
|
393 |function()| make a Funcref out of a function name
|
|
394 |get()| get an item from a List or Dictionary
|
436
|
395 |getbufline()| get a list of lines from a specified buffer
|
432
|
396 (Yegappan Lakshmanan)
|
|
397 |getfontname()| get actual font name being used
|
|
398 |getfperm()| get file permission string (Nikolai Weibull)
|
|
399 |getftype()| get type of file (Nikolai Weibull)
|
|
400 |getline()| with second argument: get List with buffer lines
|
116
|
401 |has_key()| check whether a key appears in a Dictionary
|
|
402 |insert()| insert an item somewhere in a List
|
|
403 |items()| get List of Dictionary key-value pairs
|
|
404 |join()| join List items into a String
|
|
405 |keys()| get List of Dictionary keys
|
|
406 |len()| number of items in a List or Dictionary
|
|
407 |map()| change each List or Dictionary item
|
159
|
408 |matchlist()| list with match and submatches of a pattern in a string
|
116
|
409 |max()| maximum value in a List or Dictionary
|
|
410 |min()| minimum value in a List or Dictionary
|
169
|
411 |mkdir()| create a directory
|
159
|
412 |readfile()| read a file into a list of lines
|
116
|
413 |remove()| remove one or more items from a List or Dictionary
|
432
|
414 |repeat()| repeat "expr" "count" times (Christophe Poucet)
|
116
|
415 |reverse()| reverse the order of a List
|
234
|
416 |setqflist()| create a quickfix list (Yegappan Lakshmanan)
|
116
|
417 |sort()| sort a List
|
375
|
418 |soundfold()| get the sound-a-like equivalent of a word
|
116
|
419 |split()| split a String into a List
|
375
|
420 |spellbadword()| get a badly spelled word
|
|
421 |spellsuggest()| get suggestions for correct spelling
|
432
|
422 |string()| string representation of a List or Dictionary
|
|
423 |system()| filters {input} through a shell command
|
|
424 |taglist()| get list of matching tags (Yegappan Lakshmanan)
|
|
425 |tr()| translate characters (Ron Aaron)
|
116
|
426 |values()| get List of Dictionary values
|
159
|
427 |writefile()| write a list of lines into a file
|
15
|
428
|
162
|
429 User defined functions can now be loaded automatically from the "autoload"
|
|
430 directory in 'runtimepath'. See |autoload-functions|.
|
|
431
|
7
|
432
|
|
433 New autocommand events: ~
|
|
434
|
15
|
435 |InsertEnter| starting Insert or Replace mode
|
|
436 |InsertChange| going from Insert to Replace mode or back
|
|
437 |InsertLeave| leaving Insert or Replace mode
|
11
|
438
|
15
|
439 |ColorScheme| after loading a color scheme
|
162
|
440 |QuickFixCmdPre| before :make, :grep et al. (Ciaran McCreesh)
|
|
441 |QuickFixCmdPost| after :make, :grep et al. (Ciaran McCreesh)
|
7
|
442
|
12
|
443
|
24
|
444 New items in search patterns: ~
|
|
445 |/\%d| \%d123 search for character with decimal number
|
|
446 |/\]| [\d123] idem, in a colletion
|
|
447 |/\%o| \%o103 search for character with octal number
|
|
448 |/\]| [\o1o3] idem, in a colletion
|
|
449 |/\%x| \%x1a search for character with 2 pos. hex number
|
|
450 |/\]| [\x1a] idem, in a colletion
|
|
451 |/\%u| \%u12ab search for character with 4 pos. hex number
|
|
452 |/\]| [\u12ab] idem, in a colletion
|
|
453 |/\%U| \%U1234abcd search for character with 8 pos. hex number
|
|
454 |/\]| [\U1234abcd] idem, in a colletion
|
|
455 (The above partly by Ciaran McCreesh)
|
237
|
456 |/[[=| [[=a=]] an equivalence class (only for latin1 characters)
|
|
457 |/[[.| [[.a.]] a collation element (only works with single char)
|
169
|
458
|
|
459 Nesting |/multi| items no longer is an error when an empty match is possible.
|
|
460
|
|
461 It is now possible to use \{0}, it matches the preceding atom zero times. Not
|
|
462 useful, just for compatibility.
|
24
|
463
|
|
464
|
12
|
465 New Syntax/Indent/FTplugin files: ~
|
|
466
|
|
467 MuPAD source syntax, indent and ftplugin. (Dave Silvia)
|
|
468
|
22
|
469 ABAB/4 syntax file. (Marius van Wyk)
|
|
470
|
|
471 SQL-Informix syntax file. (Dean L Hill)
|
|
472
|
23
|
473 PHP compiler plugin. (Doug Kearns)
|
|
474
|
36
|
475 Sive syntax file. (Nikolai Weibull)
|
|
476
|
315
|
477 Pascal indent file. (Neil Carter)
|
|
478
|
375
|
479 Many filetype plugins and others from Nikolai Weibull.
|
|
480
|
419
|
481 Xquery syntax file. (Jean-Marc Vanel)
|
|
482
|
234
|
483 Moved all the indent settings from the filetype plugin to the indent file.
|
|
484 Implemented b:undo_indent to undo indent settings when setting 'filetype' to a
|
|
485 different value.
|
|
486
|
23
|
487
|
32
|
488 New Keymaps: ~
|
|
489
|
|
490 Sinhala (Sri Lanka) (Harshula Jayasuriya)
|
|
491
|
|
492
|
23
|
493 New message translations: ~
|
|
494
|
|
495 The Ukranian messages are now also available in cp1251.
|
|
496
|
169
|
497 Irish message translations. (Kevin Patrick Scannell)
|
|
498
|
170
|
499 Vietnamese message translations and menu. (Phan Vinh Thinh)
|
|
500
|
7
|
501
|
10
|
502 Others: ~
|
|
503
|
|
504 Mac: Add the selection type to the clipboard, so that Block, line and
|
|
505 character selections can be used between two Vims. (Eckehard Berns)
|
|
506 Also fixes the problem that setting 'clipboard' to "unnamed" breaks using
|
|
507 "yyp".
|
7
|
508
|
13
|
509 Mac: GUI font selector. (Peter "Rain Dog" Cucka)
|
|
510
|
169
|
511 Mac: support for multi-byte characters. (Da Woon Jung)
|
|
512
|
69
|
513 GUI font selector for Motif. (Marcin Dalecki)
|
46
|
514
|
162
|
515 Nicer toolbar buttons for Motif. (Marcin Dalecki)
|
|
516
|
69
|
517 Mnemonics for the Motif find/replace dialog. (Marcin Dalecki)
|
46
|
518
|
38
|
519 Mac: better integration with Xcode. Post a fake mouse-up event after the odoc
|
|
520 event and the drag receive handler to work around a stall after Vim loads a
|
|
521 file. Fixed an off-by-one line number error. (Da Woon Jung)
|
|
522
|
11
|
523 The netrw plugin now also supports viewing a directory, when "scp://" is used.
|
|
524 Deleting and renaming files is possible. (Charles Campbell)
|
|
525
|
36
|
526 Added the t_SI and t_EI escape sequences for starting and ending Insert mode.
|
|
527 To be used to set the cursor shape to a bar or a block. No default values,
|
|
528 they are not supported by termcap/terminfo.
|
|
529
|
40
|
530 Autocommands can be defined local to a buffer. This means they will also work
|
|
531 when the buffer does not have a name or no specific name. See
|
|
532 |autocmd-buflocal|. (Yakov Lerner)
|
|
533
|
179
|
534 For xterm most combinations of modifiers with function keys are recognized.
|
|
535 |xterm-modifier-keys|
|
|
536
|
7
|
537 ==============================================================================
|
|
538 IMPROVEMENTS *improvements-7*
|
|
539
|
10
|
540 ":helpgrep" accepts a language specifier after the pattern: "pat@it".
|
|
541
|
15
|
542 Move the help for printing to a separate help file. It's quite a lot now.
|
|
543
|
181
|
544 The pattern matching code was changed from a recursive function to an
|
|
545 iterative mechanism. This avoids out-of-stack errors. State is stored in
|
|
546 allocated memory, running out of memory can always be detected. Allows
|
|
547 matching more complex things, but Vim may seem to hang while doing that.
|
|
548
|
10
|
549 ":breakadd here" and ":breakdel here" can be used to set or delete a
|
|
550 breakpoint at the cursor.
|
|
551
|
11
|
552 The tutor was updated to make it simpler to use and added text to explain a
|
|
553 few more important commands. Used ideas from Gabriel Zachmann.
|
7
|
554
|
12
|
555 Unix: When libcall() fails obtain an error message with dlerror() and display
|
|
556 it. (Johannes Zellner)
|
|
557
|
13
|
558 Added "nbsp" in 'listchars'. (David Blanchet)
|
|
559
|
17
|
560 Added the "acwrite" value for the 'buftype' option. This is for a buffer that
|
|
561 doesn not have a name that refers to a file and is written with BufWriteCmd
|
|
562 autocommands.
|
|
563
|
14
|
564 For lisp indenting and matching parenthesis: (Sergey Khorev)
|
|
565 - square brackets are recognized properly
|
|
566 - #\(, #\), #\[ and #\] are recognized as character literals
|
|
567 - Lisp line comments (delimited by semicolon) are recognized
|
|
568
|
19
|
569 Added the "count" argument to match(), matchend() and matchstr(). (Ilya Sher)
|
|
570
|
20
|
571 winnr() takes an optional "$" and "#" arguments. (Nikolai Weibull, Yegappan
|
|
572 Lakshmanan)
|
|
573
|
|
574 Added 'n' flag to search(): don't move the cursor. (Nikolai Weibull)
|
|
575
|
22
|
576 When uncompressing fails in the gzip plugin, give an error message but don't
|
|
577 delete the raw text. Helps if the file has a .gz extension but is not
|
|
578 actually compressed. (Andrew Pimlott)
|
|
579
|
|
580 When C, C++ or IDL syntax is used, may additionally load doxygen syntax.
|
|
581 Also support setting the filetype to "cdoxygen" for C plus doxygen syntax.
|
|
582 (Michael Geddes)
|
|
583
|
|
584 The ":registers" command now displays multi-byte characters properly.
|
|
585
|
|
586 VMS: In the usage message mention that a slash can be used to make a flag
|
|
587 upper case. Add color support to the builtin vt320 terminal codes.
|
|
588 (Zoltan Arpadffy)
|
|
589
|
23
|
590 For the '%' item in 'viminfo', allow a number to set a maximum for the number
|
|
591 of buffers.
|
|
592
|
40
|
593 The 'statusline' option can be local to the window, so that each window can
|
|
594 have a different value. (partly by Yegappan Lakshmanan)
|
|
595
|
26
|
596 When a file looks like a shell script, check for an "exec" command that starts
|
|
597 the tcl interpreter. (suggested by Alexios Zavras)
|
|
598
|
|
599 Support conversion between utf-8 and latin9 (iso-8859-15) internally, so that
|
|
600 digraphs still work when iconv is not available.
|
|
601
|
36
|
602 When a session file is loaded while editing an unnamed, empty buffer that
|
|
603 buffer is wiped out. Avoids that there is an unused buffer in the buffer
|
|
604 list.
|
|
605
|
|
606 Win32: When libintl.dll supports bind_textdomain_codeset(), use it.
|
|
607 (NAKADAIRA Yukihiro)
|
|
608
|
|
609 When foldtext() finds no text after removing the comment leader, use the
|
|
610 second line of the fold. Helps for C-style /* */ comments where the first
|
|
611 line is just "/*".
|
|
612
|
39
|
613 When editing the same file from two systems (e.g., Unix and MS-Windows) there
|
|
614 mostly was no warning for an existing swap file, because the name of the
|
|
615 edited file differs (e.g., y:\dir\file vs /home/me/dir/file). Added a flag to
|
|
616 the swap file to indicate it is in the same directory as the edited file. The
|
|
617 used path then doesn't matter and the check for editing the same file is much
|
|
618 more reliable.
|
|
619
|
|
620 Client-server communication now supports 'encoding'. When setting 'encoding'
|
|
621 in a Vim server to "utf-8", and using "vim --remote fname" in a console,
|
|
622 "fname" is converted from the console encoding to utf-8. Also allows Vims
|
|
623 with different 'encoding' settings to exchange messages.
|
|
624
|
41
|
625 Internal: Changed ga_room into ga_maxlen, so that it doesn't need to be
|
|
626 incremented/decremented each time.
|
|
627
|
69
|
628 Included a few improvements for Motif from Marcin Dalecki. Draw label
|
46
|
629 contents ourselves to make them handle fonts in a way configurable by Vim and
|
|
630 a bit less dependent on the X11 font management.
|
|
631
|
56
|
632 When a register is empty it is not stored in the viminfo file.
|
|
633
|
100
|
634 Removed the tcltags script, it's obsolete.
|
|
635
|
284
|
636 ":redir @*>>" and ":redir @+>>" append to the clipboard. Better check for
|
169
|
637 invalid characters after the register name. |:redir|
|
|
638
|
|
639 ":redir => variable" and ":redir =>> variable" write or append to a variable.
|
|
640 (Yegappan Lakshmanan) |:redir|
|
123
|
641
|
445
|
642 ":redir @{a-z}>>" appends to register a to z. (Yegappan Lakshmanan)
|
284
|
643
|
294
|
644 The 'verbosefile' option can be used to log messages in a file. Verbose
|
|
645 messages are not displayed then. The "-V{filename}" argument can be used to
|
|
646 log startup messages.
|
|
647
|
123
|
648 ":let g:" lists global variables.
|
|
649 ":let b:" lists buffer-local variables.
|
|
650 ":let w:" lists window-local variables.
|
|
651 ":let v:" lists Vim variables.
|
|
652
|
149
|
653 The stridx() and strridx() functions take a third argument, where to start
|
|
654 searching. (Yegappan Lakshmanan)
|
136
|
655
|
284
|
656 The getreg() function takes an extra argument to be able to get the expression
|
|
657 for the '=' register instead of the result of evaluating it.
|
|
658
|
|
659 The setline() function can take a List argument to set multiple lines. When
|
|
660 the line number is just below the last line the line is appended.
|
|
661
|
162
|
662 g CTRL-G also shows the number of characters if it differs from the number of
|
|
663 bytes.
|
|
664
|
169
|
665 Completion for ":debug" and entering an expression for the '=' register. Skip
|
|
666 ":" between range and command name. (Peter winters)
|
|
667
|
|
668 CTRL-Q in Insert mode now works like CTRL-V by default. Previously it was
|
|
669 ignored.
|
|
670
|
|
671 When "beep" is included in 'debug' a function or script that causes a beep
|
|
672 will result in a message with the source of the error.
|
|
673
|
170
|
674 When completing buffer names, match with "\(^\|[\/]\)" instead of "^", so that
|
|
675 ":buf stor<Tab>" finds both "include/storage.h" and "storage/main.c".
|
|
676
|
|
677 To count items (pattern matches) without changing the buffer the 'n' flag has
|
|
678 been added to |:substitute|. See |count-items|.
|
|
679
|
175
|
680 The "screen.linux" $TERM name is recognized to set the default for
|
179
|
681 'background' to "dark". (Ciaran McCreesh) Also for "cygwin".
|
|
682
|
|
683 The |FileChangedShell| autocommand event can now use the |v:fcs_reason|
|
|
684 variable that specifies what triggered the event. |v:fcs_choice| can be used
|
|
685 to reload the buffer or ask the user what to do.
|
175
|
686
|
181
|
687 Not all modifiers were recognized for xterm function keys. Added the
|
|
688 possibility in term codes to end in ";*X" or "O*X", where X is any character
|
|
689 and the * stands for the modifier code.
|
|
690 Added the <xUp>, <xDown>, <xLeft> and <xRight> keys, to be able to recognize
|
|
691 the two forms that xterm can send their codes in and still handle all possible
|
|
692 modifiers.
|
|
693
|
218
|
694 getwinvar() now also works to obtain a buffer-local option from the specified
|
|
695 window.
|
|
696
|
234
|
697 Added the "%s" item to 'errorformat'. (Yegappan Lakshmanan)
|
|
698
|
271
|
699 GTK GUI: use the GTK file dialog when it's available. Mix from patches by
|
|
700 Grahame Bowland and Evan Webb.
|
|
701
|
323
|
702 Added ":scriptnames" to bugreport.vim, so that we can see what plugins were
|
|
703 used.
|
|
704
|
333
|
705 Win32: If the user changes the setting for the number of lines a scroll wheel
|
|
706 click scrolls it is now used immediately. Previously Vim would need to be
|
|
707 restarted.
|
|
708
|
337
|
709 When using @= in an expression the value is expression @= contains. ":let @=
|
|
710 = value" can be used to set the register contents.
|
|
711
|
404
|
712 A ! can be added to ":popup" to have the popup menu appear at the mouse
|
|
713 pointer position instead of the text cursor.
|
|
714
|
408
|
715 The table with encodings has been expanded with many MS-Windows codepages,
|
|
716 such as cp1250 and cp737, so that these can also be used on Unix without
|
|
717 prepending "8bit-".
|
|
718
|
|
719 Added the "customlist" completion argument to a user-defined command. The
|
|
720 user-defined completion function should return the completion candidates as a
|
445
|
721 Vim List and the returned results are not filtered by Vim. (Yegappan
|
|
722 Lakshmanan)
|
408
|
723
|
436
|
724 Win32: Balloons can have multiple lines if common controls supports it.
|
|
725 (Sergey Khorev)
|
|
726
|
445
|
727 The 's' flag is added to the search() and searchpair() function to set the
|
|
728 ' mark if the cursor is moved. (Yegappan Lakshmanan)
|
|
729
|
448
|
730 When 'verbose' is set the output of ":highlight" will show where a highlight
|
|
731 item was last set.
|
|
732
|
7
|
733 ==============================================================================
|
|
734 COMPILE TIME CHANGES *compile-changes-7*
|
|
735
|
69
|
736 Dropped the support for the BeOS and Amiga GUI. They were not maintained and
|
|
737 probably didn't work. If you want to work on this: get the Vim 6.x version
|
|
738 and merge it back in.
|
|
739
|
18
|
740 Mac: "make" now creates the Vim.app directory and "make install" copies it to
|
|
741 its final destination. (Raf)
|
|
742
|
|
743 Mac: Made it possible to compile with Motif, Athena or GTK without tricks and
|
|
744 still being able to use the MacRoman conversion. Added the os_mac_conv.c
|
|
745 file.
|
7
|
746
|
169
|
747 When running the tests and one of them fails to produce "test.out" the
|
|
748 following tests are still executed. This helps when running out of memory.
|
|
749
|
359
|
750 When compiling with EXITFREE defined and the ccmalloc library it is possible
|
|
751 to detect memory leaks. Some memory will always reported as leaked, such as
|
|
752 allocated by X11 library functions and the memory allocated in alloc_cmdbuff()
|
|
753 to store the ":quit" command.
|
|
754
|
445
|
755 Moved the code for printing to src/hardcopy.c.
|
|
756
|
|
757 Moved some code from main() to separate functions to make it easier to see
|
|
758 what is being done. Use a structure to avoid a lot of arguments to the
|
|
759 functions.
|
|
760
|
|
761 Moved unix_expandpath() to misc1.c, so that it can also be used by os_mac.c
|
|
762 without copying the code.
|
|
763
|
7
|
764 ==============================================================================
|
|
765 BUG FIXES *bug-fixes-7*
|
|
766
|
10
|
767 When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
|
|
768 instead of "copy". When 'printdevice' was empty the copy command did not
|
|
769 work. Use "LPT1" then.
|
|
770
|
|
771 The GTK font dialog uses a font size zero when the font name doesn't include a
|
|
772 size. Use a default size of 10.
|
|
773
|
|
774 This example in the documentation didn't work:
|
|
775 :e `=foo . ".c" `
|
|
776 Skip over the expression in `=expr` when looking for comments, |, % and #.
|
|
777
|
|
778 When ":helpgrep" doesn't find anything there is no error message.
|
|
779
|
|
780 "L" and "H" did not take closed folds into account.
|
|
781
|
|
782 Win32: The "-P title" argument stopped at the first title that matched, even
|
|
783 when it doesn't support MDI.
|
|
784
|
|
785 Mac GUI: CTRL-^ and CTRL-@ did not work.
|
|
786
|
|
787 "2daw" on "word." at the end of a line didn't include the preceding white
|
|
788 space.
|
|
789
|
|
790 Win32: Using FindExecutable() doesn't work to find a program. Use
|
|
791 SearchPath() instead. For executable() use $PATHEXT when the program searched
|
|
792 for doesn't have an extension.
|
|
793
|
|
794 When 'virtualedit' is set, moving the cursor up after appending a character
|
|
795 may move it to a different column. Was caused by auto-formatting moving the
|
|
796 cursor and not putting it back where it was.
|
|
797
|
|
798 When indent was added automatically and then moving the cursor, the indent was
|
|
799 not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
|
|
800 to make it work the old way.
|
|
801
|
|
802 When opening a command-line window, 'textwidth' gets set to 78 by the Vim
|
|
803 filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
|
|
804
|
|
805 After using cursor(line, col) moving up/down doesn't keep the same column.
|
|
806
|
|
807 Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
|
|
808 fields. (Walter Briscoe)
|
7
|
809
|
11
|
810 On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
|
|
811 Michele)
|
|
812
|
14
|
813 Printing with PostScript may keep the printer waiting for more. Append a
|
|
814 CTRL-D to the printer output. (Mike Williams)
|
|
815
|
16
|
816 When converting a string with a hex or octal number the leading '-' was
|
|
817 ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
|
|
818
|
|
819 Using "@:" to repeat a command line didn't work when it contains control
|
|
820 characters.
|
|
821
|
17
|
822 When using file completion for a user command, it would not expand environment
|
|
823 variables like for a regular command with a file argument.
|
|
824
|
|
825 'cindent': When the argument of a #define looks like a C++ class the next line
|
|
826 is indented too much.
|
|
827
|
|
828 When 'comments' includes multi-byte characters inserting the middle part and
|
|
829 alignment may go wrong. 'cindent' also suffers from this for right-aligned
|
|
830 items.
|
|
831
|
170
|
832 Win32: when 'encoding' is set to "utf-8" getenv() still returns strings in the
|
|
833 active codepage. Convert to utf-8. Also for $HOME.
|
|
834
|
18
|
835 The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
|
|
836 "cn" or "tw" as intended.
|
|
837
|
20
|
838 When 'bin' is set and 'eol' is not set then line2byte() added the line break
|
|
839 after the last line while it's not there.
|
|
840
|
|
841 Using foldlevel() in a WinEnter autocommand may not work. Noticed when
|
|
842 resizing the GUI shell upon startup.
|
|
843
|
|
844 Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
|
|
845 string with a trailing newline. The newline is ignored.
|
|
846
|
21
|
847 When using the ":saveas f2" command for buffer "f1", the Buffers menu would
|
|
848 contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
|
|
849 and BufFilePost events for the alternate buffer that gets the old name.
|
|
850
|
22
|
851 strridx() did not work well when the needle is empty. (Ciaran McCreesh)
|
|
852
|
|
853 GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
|
|
854 just before it is invoked
|
|
855
|
|
856 VMS: Occasionally CR characters were inserted in the file. Expansion of
|
|
857 environment variables was not correct. (Zoltan Arpadffy)
|
|
858
|
|
859 UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
|
|
860 from the first character of the word.
|
|
861
|
|
862 When using ":sball" in an autocommand only the filetype in one buffer was
|
|
863 detected. Reset did_filetype in enter_buffer().
|
|
864
|
|
865 When using ":argdo" and the window already was at the first argument index,
|
|
866 but not actually editing it, the current buffer would be used instead.
|
|
867
|
23
|
868 When ":next dir/*" includes many matches, adding the names to the argument
|
|
869 list may take an awful lot of time and can't be interrupted. Allow
|
|
870 interrupting this.
|
|
871
|
|
872 When editing a file that was already loaded in a buffer, modelines were not
|
|
873 used. Now window-local options in the modeline are set. Buffer-local options
|
|
874 and global options remain unmodified.
|
|
875
|
|
876 Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
|
|
877 command line with non-ASCII characters are not used correctly. Recode the
|
|
878 file names when 'encoding' is set, using the Unicode command line.
|
|
879
|
24
|
880 Win32 console: When the default for 'encoding' ends up to be "latin1", the
|
|
881 default value of 'isprint' was wrong.
|
|
882
|
|
883 When an error message is given while waiting for a character (e.g., when an
|
|
884 xterm reports the number of colors), the hit-enter prompt overwrote the last
|
|
885 line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
|
|
886
|
26
|
887 Mac GUI: Shift-Tab didn't work.
|
|
888
|
|
889 When defining tooltip text, don't translate terminal codes, since it's not
|
|
890 going to be used like a command.
|
|
891
|
|
892 GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
|
|
893 GTK error. Invalid characters may appear when 'encoding' is changed.
|
|
894
|
|
895 GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
|
|
896
|
|
897 Win32: When 'encoding' is changed while starting up, use the Unicode command
|
|
898 line to convert the file arguments to 'encoding'. Both for the GUI and the
|
|
899 console version.
|
|
900
|
|
901 Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
|
|
902 there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
|
|
903
|
29
|
904 When two versions of GTK+ 2 are installed it was possible to use the header
|
|
905 files from one and the library from the other. Use GTK_LIBDIR to put the
|
|
906 directory for the library early in the link flags.
|
|
907
|
|
908 With the GUI find/replace dialog a replace only worked if the pattern was
|
|
909 literal text. Now it works for any pattern.
|
|
910
|
36
|
911 When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
|
|
912 cause equalizing window heights in the vertical direction.
|
|
913
|
|
914 When ":emenu" is used in a startup script the command was put in the typeahead
|
|
915 buffer, causing a prompt for the crypt key to be messed up.
|
|
916
|
|
917 Mac OS/X: The default for 'isprint' included characters 128-160, causes
|
|
918 problems for Terminal.app.
|
|
919
|
|
920 When a syntax item with "containedin" is used, it may match in the start or
|
|
921 end of a region with a matchgroup, while this doesn't happen for a "contains"
|
|
922 argument.
|
|
923
|
|
924 When a transparent syntax items matches in another item where the highlighting
|
|
925 has already stopped (because of a he= argument), the highlighting would come
|
|
926 back.
|
|
927
|
|
928 When cscope is used to set the quickfix error list, it didn't get set if there
|
|
929 was only one match. (Sergey Khorev)
|
|
930
|
|
931 When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
|
|
932 "cancel", would still give an error message.
|
|
933
|
|
934 The PopUp menu items that started Visual mode didn't work when not in Normal
|
|
935 mode. Switching between selecting a word and a line was not possible.
|
|
936
|
|
937 Win32: The keypad decimal point always resulted in a '.', while on some
|
|
938 keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
|
|
939
|
|
940 Removed unused function DisplayCompStringOpaque() from gui_w32.c
|
|
941
|
|
942 In Visual mode there is not always an indication whether the line break is
|
|
943 selected or not. Highlight the character after the line when the line break
|
|
944 is included, e.g., after "v$o".
|
|
945
|
|
946 GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
|
|
947 GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
|
|
948
|
|
949 After "Y" '[ and '] were not at start/end of the yanked text.
|
|
950
|
|
951 When a telnet connection is dropped Vim preserves files and exits. While
|
|
952 doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
|
38
|
953 Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
|
|
954 handle. Added handle_signal().
|
|
955
|
|
956 When using "set laststatus=2 cmdheight=2" in the .gvimrc you may only get one
|
|
957 line for the cmdline. (Christian Robinson) Invoke command_height() after the
|
|
958 GUI has started up.
|
36
|
959
|
39
|
960 When completing a file name on the command line backslashes are required for
|
|
961 white space. Was only done for a space, not for a Tab.
|
|
962
|
|
963 When configure could not find a terminal library, compiling continued for a
|
|
964 long time before reporting the problem. Added a configure check for tgetent()
|
|
965 being found in a library.
|
|
966
|
|
967 When the cursor is on the first char of the last line a ":g/pat/s///" command
|
|
968 may cause the cursor to be displayed below the text.
|
|
969
|
|
970 Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
|
|
971 is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
|
|
972
|
|
973 When recovering the 'fileformat' and 'fileencoding' were taken from the
|
|
974 original file instead of from the swapfile. When the file didn't exist, was
|
|
975 empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
|
|
976 be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
|
|
977 the values when recovering.
|
|
978
|
|
979 ":bufdo g/something/p" overwrites each last printed text line with the file
|
|
980 message for the next buffer. Temporarily clear 'shortmess' to avoid that.
|
|
981
|
40
|
982 Win32: Cannot edit a file starting with # with --remote. Do escape % and #
|
|
983 when building the ":drop" command.
|
|
984
|
41
|
985 A comment or | just after a expresion-backtick argument was not recognized.
|
|
986 E.g. in :e `="foo"`"comment.
|
|
987
|
46
|
988 "(" does not stop at an empty sentence (single dot and white space) while ")"
|
|
989 does. Also breaks "das" on that dot.
|
|
990
|
|
991 When doing "yy" with the cursor on a TAB the ruler could be wrong and "k"
|
|
992 moved the cursor to another column.
|
|
993
|
|
994 When 'commentstring' is '"%s' and there is a double quote in the line a double
|
|
995 quote before the fold marker isn't removed in the text displayed for a closed
|
|
996 fold.
|
|
997
|
|
998 In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line
|
|
999 break, resulting in "selected 202 of 201 bytes".
|
|
1000
|
69
|
1001 Motif: fonts were not used for dialog components. (Marcin Dalecki)
|
46
|
1002
|
56
|
1003 Motif: After using a toolbar button the keyboard focus would be on the toolbar
|
69
|
1004 (Lesstif problem). (Marcin Dalecki)
|
56
|
1005
|
51
|
1006 When using "y<C-V>`x" where mark x is in the first column, the last line was
|
|
1007 not included.
|
|
1008
|
|
1009 Not all test scripts work properly on MS-Windows when checked out from CVS.
|
|
1010 Use a Vim command to fix all fileformats to dos before executing the tests.
|
|
1011
|
|
1012 When using ":new" and the file fits in the window, lines could still be above
|
|
1013 the window. Now remove empty lines instead of keeping the relative position.
|
|
1014
|
76
|
1015 Cmdline completion didn't work after ":let var1 var<Tab>".
|
|
1016
|
91
|
1017 When using ":startinsert" or ":startreplace" when already in Insert mode
|
|
1018 (possible when using CTRL-R =), pressing Esc would directly restart Insert
|
|
1019 mode. (Peter Winters)
|
|
1020
|
97
|
1021 "2daw" didn't work at end of file if the last word is a single character.
|
|
1022
|
100
|
1023 Completion for ":next a'<Tab>" put a backslash before single quote, but it was
|
|
1024 not removed when editing a file. Now halve backslashes in save_patterns().
|
109
|
1025 Also fix expanding a file name with the shell that contains "\'".
|
100
|
1026
|
136
|
1027 When doing "1,6d|put" only "fewer lines" was reported. Now a following "more
|
|
1028 lines" overwrites the message.
|
|
1029
|
|
1030 Configure could not handle "-Dfoo=long\ long" in the TCL config output.
|
|
1031
|
141
|
1032 When searching backwards, using a pattern that matches a newline and uses \zs
|
|
1033 after that, didn't find a match. Could also get a hang or end up in the right
|
|
1034 column in the wrong line.
|
|
1035
|
149
|
1036 When $LANG is "sl" for slovenian, the slovak menu was used, since "slovak"
|
|
1037 starts with "sl".
|
|
1038
|
|
1039 When 'paste' is set in the GUI the Paste toolbar button doesn't work. Clear
|
|
1040 'paste' when starting the GUI.
|
|
1041
|
155
|
1042 A message about a wrong viminfo line included the trailing NL.
|
|
1043
|
159
|
1044 When 'paste' is set in the GUI the toolbar button doesn't work in Insert mode.
|
|
1045 Use ":exe" in menu.vim to avoid duplicating the commands, instead of using a
|
|
1046 mapping.
|
|
1047
|
|
1048 Treat "mlterm" as an xterm-like terminal. (Seiichi Sato)
|
|
1049
|
|
1050 ":z.4" and ":z=4" didn't work Vi compatible.
|
|
1051
|
162
|
1052 When sourcing a file, editing it and sourcing it again, it could appear twice
|
|
1053 in ":scriptnames" and get a new <SID>, because the inode has changed.
|
|
1054
|
|
1055 When $SHELL is set but empty the 'shell' option would be empty. Don't use an
|
|
1056 empty $SHELL value.
|
|
1057
|
|
1058 A command "w! file" in .vimrc or $EXINIT didn't work. Now it writes an empty
|
|
1059 file.
|
|
1060
|
|
1061 When a CTRL-F command at the end of the file failed, the cursor was still
|
|
1062 moved to the start of the line. Now it remains where it is.
|
|
1063
|
|
1064 When using ":s" or "&" to repeat the last substitute and "$" was used to put
|
|
1065 the cursor in the last column, put the cursor in the last column again. This
|
|
1066 is Vi compatible.
|
|
1067
|
164
|
1068 Vim is not fully POSIX compliant but sticks with traditional Vi behavior.
|
|
1069 Added a few flags in 'cpoptions' to behave the POSIX way when wanted. The
|
|
1070 $VIM_POSIX environment variable is checked to set the default.
|
|
1071
|
|
1072 Appending to a register didn't insert a line break like Vi. Added the '>'
|
|
1073 flag to 'cpoptions' for this.
|
|
1074
|
|
1075 Using "I" in a line with only blanks appended to the line. This is not Vi
|
|
1076 compatible. Added the 'H' flag in 'coptions' for this.
|
|
1077
|
|
1078 When joining multiple lines the cursor would be at the last joint, but Vi
|
|
1079 leaves it at the position where "J" would put it. Added the 'q' flag in
|
|
1080 'cpoptions' for this.
|
|
1081
|
|
1082 Autoindent didn't work for ":insert" and ":append".
|
|
1083
|
|
1084 Using ":append" in an empty buffer kept the dummy line. Now it's deleted to
|
|
1085 be Vi compatible.
|
|
1086
|
|
1087 When reading commands from a file and stdout goes to a terminal, would still
|
|
1088 request the xterm version. Vim can't read it, thus the output went to the
|
|
1089 shell and caused trouble there.
|
|
1090
|
169
|
1091 When redirecting to a register with an invalid name the redirection would
|
|
1092 still be done (after an error message). Now reset "redir_reg". (Yegappan
|
|
1093 Lakshmanan)
|
|
1094
|
|
1095 It was not possible to use a NL after a backslash in Ex mode. This is
|
|
1096 sometimes used to feed multiple lines to a shell command.
|
|
1097
|
170
|
1098 When 'cmdheight' is set to 2 in .vimrc and the GUI uses the number of lines
|
|
1099 from the terminal we actually get 3 lines for the cmdline in gvim.
|
|
1100
|
|
1101 When setting $HOME allocated memory would leak.
|
|
1102
|
179
|
1103 Win32: bold characters may sometimes write in another character cell. Use
|
|
1104 unicodepdy[] as for UTF-8. (Taro Muraoka)
|
|
1105
|
|
1106 ":w fname" didn't work for files with 'buftype' set to "nofile".
|
|
1107
|
192
|
1108 The method used to locate user commands for completion differed from when they
|
|
1109 are executed. Abiguous command names were not completed properly.
|
|
1110
|
197
|
1111 Incremental search may cause a crash when there is a custom statusline that
|
|
1112 indirectly invokes ":normal".
|
|
1113
|
|
1114 Diff mode failed when $DIFF_OPTIONS was set in the environment. Unset it
|
|
1115 before invoking "diff".
|
|
1116
|
200
|
1117 Completion didn't work after ":argdo", ":windo" and ":bufdo". Also for ":set
|
|
1118 &l:opt" and ":set &g:opt". (Peter Winters)
|
|
1119
|
|
1120 When setting 'ttymouse' to "dec" in an xterm that supports the DEC mouse
|
|
1121 locator it doesn't work. Now switch off the mouse before selecting another
|
|
1122 mouse model.
|
|
1123
|
206
|
1124 When the CursorHold event is triggered and the commands peek for typed
|
|
1125 characters the typeahead buffer may be messed up, e.g., when a mouse-up event
|
|
1126 is received. Avoid invoking the autocommands from the function waiting for a
|
|
1127 character, let it put K_CURSORHOLD in the input buffer.
|
|
1128
|
|
1129 Removed the "COUNT" flag from ":argadd", to avoid ":argadd 1*" to be used like
|
218
|
1130 ":1argadd *". Same for ":argdelete" and ":argedit".
|
206
|
1131
|
|
1132 Avoid that $LANG is used for the menus when LC_MESSAGES is "en_US".
|
|
1133
|
218
|
1134 Added backslashes before dashes in the vim.1 manual page to make the appear as
|
|
1135 real dashes. (Pierr Habouzit)
|
|
1136
|
|
1137 Where "gq" left the cursor depended on the value of 'formatprg'. Now "gq"
|
|
1138 always leaves the cursor at the last line of the formatted text.
|
|
1139
|
|
1140 When editing a compressed file, such as "changelog.Debian.gz" file, filetype
|
|
1141 detection may try to check the contents of the file while it's still
|
|
1142 compressed. Skip setting 'filetype' for compressed files until they have been
|
|
1143 decompressed. Required for patterns that end in a "*".
|
|
1144
|
|
1145 Starting with an argument "+cmd" or "-S script" causes the cursor the be moved
|
|
1146 to the first line. That breaks a BufReadPost autocommand that uses g`".
|
|
1147 Don't move the cursor if it's somewhere past the first line.
|
|
1148
|
|
1149 "gg=G" while 'modifiable' is off was uninterruptable.
|
|
1150
|
222
|
1151 When 'encoding' is "sjis" inserting CTRL-V u d800 a few times causes a crash.
|
|
1152 Don't insert a DBCS character with a NUL second byte.
|
|
1153
|
231
|
1154 In Insert mode CTRL-O <Home> didn't move the cursor. Made "ins_at_eol" global
|
|
1155 and reset it in nv_home().
|
|
1156
|
234
|
1157 Wildcard expansion failed: ":w /tmp/$$.`echo test`". Don't put quotes around
|
|
1158 spaces inside backticks.
|
|
1159
|
237
|
1160 After this sequence of commands: Y V p gv: the wrong line is selected. Now
|
|
1161 let "gv" select the text that was put, since the original text is deleted.
|
|
1162 This should be the most useful thing to do.
|
|
1163
|
|
1164 ":sleep 100u" sleeps for 100 seconds, not 100 usec as one might expect. Give
|
|
1165 an error message when the argument isn't recognized.
|
|
1166
|
|
1167 In gui_mch_draw_string() in gui_w32.c "unibuflen" wasn't static, resulting in
|
|
1168 reallocating the buffer every time. (Alexei Alexandrov)
|
|
1169
|
242
|
1170 When using a Python "atexit" function it was not invoked when Vim exits. Now
|
|
1171 call Py_Finalize() for that. (Ugo Di Girolamo)
|
323
|
1172 This breaks the thread stuff though, fixed by Ugo.
|
242
|
1173
|
265
|
1174 GTK GUI: using a .vimrc with "set cmdheight=2 lines=43" and ":split" right
|
|
1175 after startup, the window layout is messed up. (Michael Schaap) Added
|
|
1176 win_new_shellsize() call in gui_init() to fix the topframe size.
|
|
1177
|
|
1178 Trick to get ...MOUSE_NM not used when there are vertical splits. Now pass
|
|
1179 column -1 for the left most window and add MOUSE_COLOFF for others. Limits
|
|
1180 mouse column to 10000.
|
|
1181
|
|
1182 searchpair() may hang when the end pattern has "\zs" at the end. Check that
|
|
1183 we find the same position again and advance one character.
|
|
1184
|
|
1185 When in diff mode and making a change that causes the "changed" highlighting
|
|
1186 to disappear or reappear, it was still highlighted in another window.
|
|
1187
|
271
|
1188 When a ":next" command fails because the user selects "Abort" at the ATTENTION
|
|
1189 prompt the argument index was advanced anyway.
|
|
1190
|
|
1191 When "~" is in 'iskeyword' the "gd" doesn't work, it's used for the previous
|
|
1192 substitute pattern. Put "\V" in the pattern to avoid that.
|
|
1193
|
274
|
1194 Use of sprintf() sometimes didn't check properly for buffer overflow. Also
|
|
1195 when using smsg(). Included code for snprintf() to avoid having to do size
|
|
1196 checks where invoking them
|
|
1197
|
279
|
1198 ":help \=<Tab>" didn't find "sub-replace-\=". Wild menu for help tags didn't
|
|
1199 show backslashes. ":he :s\=" didn't work.
|
|
1200
|
|
1201 When reading an errorfile "~/" in a file name was not expanded.
|
|
1202
|
|
1203 GTK GUI: When adding a scrollbar (e.g. when using ":vsplit") in a script or
|
|
1204 removing it the window size may change. GTK sends us resize events when we
|
|
1205 change the window size ourselves, but they may come at an unexpected moment.
|
|
1206 Peek for a character to get any window resize events and fix 'columns' and
|
|
1207 'lines' to undo this.
|
|
1208
|
284
|
1209 After deleting files from the argument list a session file generated with
|
|
1210 ":mksession" may contain invalid ":next" commands.
|
|
1211
|
|
1212 When 'shortmess' is empty and 'keymap' set to accents, in Insert mode CTRL-N
|
|
1213 may cause the hit-enter prompt. Typing 'a then didn't result in the accented
|
|
1214 character. Put the character typed at the prompt back in the typeahead buffer
|
|
1215 so that mapping is done in the right mode.
|
|
1216
|
337
|
1217 setbufvar() and setwinvar() did not give error messages.
|
|
1218
|
|
1219 It was possible to set a variable with an illegal name, e.g. with setbufvar().
|
344
|
1220 It was possible to define a function with illegal name, e.t. ":func F{-1}()"
|
|
1221
|
|
1222 CTRL-W F and "gf" didn't use the same method to get the file name.
|
337
|
1223
|
375
|
1224 When reporting a conversion error the line number of the last error could be
|
|
1225 given. Now report the first encountered error.
|
|
1226
|
|
1227 When using ":e ++enc=name file" and iconv() was used for conversion an error
|
|
1228 caused a fallback to no conversion. Now replace a character with '?' and
|
|
1229 continue.
|
|
1230
|
404
|
1231 When opening a new buffer the local value of 'bomb' was not initialized from
|
|
1232 the global value.
|
|
1233
|
415
|
1234 Win32: When using the "Edit with Vim" entry the file name was limited to about
|
|
1235 200 characters.
|
|
1236
|
436
|
1237 When using command line completion for ":e *foo" and the file "+foo" exists
|
|
1238 the resulting command ":e +foo" doesn't work. Now insert a backslash: ":e
|
|
1239 \+foo".
|
|
1240
|
446
|
1241 When the translation of "-- More --" was not 10 characters long the following
|
|
1242 message would be in the wrong position.
|
|
1243
|
|
1244 At the more-prompt the last character in the last line wasn't drawn.
|
|
1245
|
|
1246 When deleting non-existing text while 'virtualedit' is set the '[ and '] marks
|
|
1247 were not set.
|
|
1248
|
7
|
1249 vim:tw=78:ts=8:ft=help:norl:
|