blob: d8cf0cd6be530d6091f87a25f4183eab6503672d [file] [log] [blame]
Bram Moolenaarfb670262005-06-05 22:06:27 +00001*version7.txt* For Vim version 7.0aa. Last change: 2005 Jun 05
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Bram Moolenaar
5
6
7Welcome to Vim 7! A large number of features has been added. This file
8mentions all the new items, changes to existing features and bug fixes
Bram Moolenaarb2956cd2005-01-27 14:42:53 +00009compared to Vim 6.x. Use this command to see the version you are using: >
10 :version
Bram Moolenaar071d4272004-06-13 20:20:40 +000011
12See |vi_diff.txt| for an overview of differences between Vi and Vim 7.0.
13See |version4.txt| for differences between Vim 3.x and Vim 4.x.
14See |version5.txt| for differences between Vim 4.x and Vim 5.x.
15See |version6.txt| for differences between Vim 5.x and Vim 6.x.
16
17INCOMPATIBLE CHANGES |incompatible-7|
18
19NEW FEATURES |new-7|
20
Bram Moolenaarbac234e2005-01-17 22:21:07 +000021Vim script enhancements |new-vim-script|
Bram Moolenaar60c78922005-03-20 22:40:14 +000022Spell checking |new-spell|
Bram Moolenaar325b7a22004-07-05 15:58:32 +000023KDE support |new-KDE|
Bram Moolenaarfb670262005-06-05 22:06:27 +000024MzScheme interface |new-MzScheme|
25Printing multi-byte text |new-print-multi-byte|
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000026Translated manual pages |new-manpage-trans|
Bram Moolenaar8fc061c2004-12-29 21:03:02 +000027Internal grep |new-vimgrep|
Bram Moolenaar4399ef42005-02-12 14:29:27 +000028POSIX compatibility |new-posix|
Bram Moolenaare2ac10d2005-03-07 23:26:06 +000029Debugger support |new-debug-support|
Bram Moolenaar071d4272004-06-13 20:20:40 +000030Various new items |new-items-7|
31
32IMPROVEMENTS |improvements-7|
33
34COMPILE TIME CHANGES |compile-changes-7|
35
36BUG FIXES |bug-fixes-7|
37
38==============================================================================
39INCOMPATIBLE CHANGES *incompatible-7*
40
41These changes are incompatible with previous releases. Check this list if you
Bram Moolenaarb2956cd2005-01-27 14:42:53 +000042run into a problem when upgrading from Vim 6.x to 7.0.
43
44A ":write file" command no longer resets the 'modified' flag of the buffer,
45unless the '+' flag is in 'cpoptions' |cpo-+|. This was illogical, since the
46buffer is still modified compared to the original file. And when undoing
47all changes the file would actually be marked modified. It does mean that
48":quit" fails now.
Bram Moolenaar071d4272004-06-13 20:20:40 +000049
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000050":helpgrep" now uses a help window to display a match.
51
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000052In an argument list double quotes could be used to include spaces in a file
53name. This caused a difference between ":edit" and ":next" for escaping
54double quotes and it is incompatible with some versions of Vi.
55 Command Vim 6.x file name Vim 7.x file name ~
56 :edit foo\"888 'foo"888' 'foo"888'
57 :next foo\"888 'foo888' 'foo"888'
58 :next a\"b c\"d 'ab cd' 'a"b' and 'c"d'
59
Bram Moolenaar8c711452005-01-14 21:53:12 +000060In a |literal-string| a single quote can be doubled to get one.
61":echo 'a''b'" would result in "a b", but now that two quotes stand for one it
62results in "a'b".
63
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000064
65Minor incompatibilities:
66
67For filetype detection: For many types, instead of ~/.dir/filename use
68*/.dir/filename, so that it also works for other user's files.
69
70":0verbose" now sets 'verbose' to zero instead of one.
71
72Removed the old and incomplete "VimBuddy" code.
73
74Buffers without a name report "No Name" instead of "No File". It was
75confusing for buffers with a name and 'buftype' set to "nofile".
Bram Moolenaar071d4272004-06-13 20:20:40 +000076
Bram Moolenaar7b0294c2004-10-11 10:16:09 +000077When ":file xxx" is used in a buffer without a name, the alternate file name
78isn't set. This avoids creating buffers without a name that are not useful.
79
80The "2html.vim" script now converts closed folds to HTML. This means the HTML
Bram Moolenaarf4630b62005-05-20 21:31:17 +000081looks like its displayed, with the same folds open and closed. Use "zR", or
82"let html_ignore_folding=1", if no folds should appear in the HTML. (partly by
83Carl Osterwisch)
Bram Moolenaar47136d72004-10-12 20:02:24 +000084Diff mode now is also converted as it is displayed.
Bram Moolenaar7b0294c2004-10-11 10:16:09 +000085
Bram Moolenaar293ee4d2004-12-09 21:34:53 +000086Win32: The effect of the <F10> key depended on 'winaltkeys'. Now it depends
87on whether <F10> has been mapped or not. This allows mapping <F10> without
88changing 'winaltkeys'.
89
Bram Moolenaar8c711452005-01-14 21:53:12 +000090When 'octal' is in 'nrformats' and using CTRL-A on "08" it became "018", which
91is illogical. Now it becomes "9". The leading zero(s) is(are) removed to
92avoid the number becoming octal after incrementing "009" to "010".
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000093
94When 'encoding' is set to a Unicode encoding, the value for 'fileencodings'
95now includes "default" before "latin1". This means that for files with 8-bit
96encodings the default is to use the encoding specified by the environment, if
97possible. Previously latin1 would always be used, which is wrong in a
98non-latin1 environment, such as Russian.
99
Bram Moolenaard438e912005-01-31 19:21:46 +0000100Previously Vim would exit when there are two windows, both of them displaying
101a help file, and using ":quit". Now only the window is closed.
102
Bram Moolenaar4399ef42005-02-12 14:29:27 +0000103"-w {scriptout}" only works when {scriptout} doesn't start with a digit.
104Otherwise it's used to set the 'window' option.
105
Bram Moolenaar8bf59b92005-03-06 23:40:56 +0000106Previously <Home> and <xHome> could be mapped separately. This had the
107disadvantage that all mappings (with modifiers) had to be duplicated, since
108you can't be sure what the keyboard generates. Now all <xHome> are internally
109translated to <Home>, both for the keys and for mappings. Also for <xEnd>,
110<xF1>, etc.
111
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +0000112":put" now leaves the cursor on the last inserted line.
113
Bram Moolenaar071d4272004-06-13 20:20:40 +0000114==============================================================================
115NEW FEATURES *new-7*
116
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000117Vim script enhancements *new-vim-script*
118-----------------------
Bram Moolenaar071d4272004-06-13 20:20:40 +0000119
120In Vim scripts the following types have been added:
121
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000122 List ordered list of items |List|
123 Dictionary associative array of items |Dictionary|
124 Funcref reference to a function |Funcref|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000125
126Many functions and commands have been added to support the new types.
127
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000128The |string()| function can be used to get a string representation of a
129variable. Works for Numbers, Strings and composites of them. Then |eval()|
130can be used to turn the string back into the variable value.
131
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000132The |:let| command can now use ":let var += expr" like using ":let var = var +
133expr". "-=" and ".=" works in a similar way.
134
Bram Moolenaar038eb0e2005-02-27 22:43:26 +0000135With the |:profile| command you can find out where your function or script
136wastes its time.
137
Bram Moolenaar843ee412004-06-30 16:16:41 +0000138
Bram Moolenaar60c78922005-03-20 22:40:14 +0000139Spell checking *new-spell*
140--------------
141
142Spell checking has been integrated in Vim. There were a few implementations
143with scripts, but they were slow and/or required an external program.
144
145The 'spell' option is used to switch spell checking on or off.
146The 'spelllang' option is used to specify the languages that are accepted.
147
148The "undercurl" highlighting attribute was added to nicely point out spelling
149mistakes in the GUI (based on patch from Marcin Dalecki).
150The "guisp" color can be used to give it a color different from foreground and
151background.
152The number of possible different highlight attributes was raised from about
153220 to over 30000. This allows for the attributes of spelling to be combined
Bram Moolenaar75c50c42005-06-04 22:06:24 +0000154with syntax highlighting attributes. This is also used for syntax
155highlighting.
Bram Moolenaar60c78922005-03-20 22:40:14 +0000156
157Much more info here: |spell|.
158
159
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000160KDE support *new-KDE*
Bram Moolenaar843ee412004-06-30 16:16:41 +0000161-----------
162
163Kvim is the KDE version of Vim. It uses the Qt toolkit. See |KVim|.
164(Thomas Capricelli, Philippe Fremy, Mickael Marchand, Mark Westcott, et al.)
165
Bram Moolenaar071d4272004-06-13 20:20:40 +0000166
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000167MzScheme interface *new-MzScheme*
168------------------
169
170The MzScheme interpreter is supported. |MzScheme|
171The |:mzscheme| command can be used to execute MzScheme commands.
172The |:mzfile| command can be used to execute an MzScheme script file.
173
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000174
Bram Moolenaar8299df92004-07-10 09:47:34 +0000175Printing multi-byte text *new-print-multi-byte*
176------------------
177
178The |:hardcopy| command now supports printing multi-byte characters.
179The 'printmbcharset' and 'printmbfont' options are used for this.
180Also see |postscript-cjk-printing|. (Mike Williams)
181
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000182
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000183Translated manual pages *new-manpage-trans*
184-----------------------
185
186The manual page of Vim and associated programs is now also available in
Bram Moolenaar4ad237d2005-03-11 22:49:40 +0000187several other languages.
188
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +0000189French - translated by David Blanchet
Bram Moolenaar4ad237d2005-03-11 22:49:40 +0000190Italian - translated by Antonio Colombo
191Russian - translated by Vassily Ragosin
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000192
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +0000193The Unix Makefile installs the Italian manual pages in .../man/it/man1/,
194.../man/it.ISO8859-1/man1/ and .../man/it.UTF-8/man1/. There appears to be no
195standard for what encoding goes in the "it" directory, the 8-bit encoded file
196is used there as a best guess.
197Other languages are installed in similar places.
Bram Moolenaar67fe1a12005-05-22 22:12:58 +0000198The translated pages are not automatically installed when Vim was configured
199with "--disable-nls", but "make install-languages install-tool-languages" will
200do it anyway.
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000201
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000202
Bram Moolenaar8fc061c2004-12-29 21:03:02 +0000203Internal grep *new-vimgrep*
204-------------
205
206The ":vimgrep" command can be used to search for a pattern in a list of files.
207This is like the ":grep" command, but no external program is used. Besides
208better portability, handling of different file encodings and using multi-line
209patterns, this also allows grepping in compressed and remote files.
210|:vimgrep|.
211
Bram Moolenaar05159a02005-02-26 23:04:13 +0000212If you want to use the search results in a script you can use the
Bram Moolenaar2641f772005-03-25 21:58:17 +0000213|getqflist()| function.
Bram Moolenaar05159a02005-02-26 23:04:13 +0000214
Bram Moolenaar8fc061c2004-12-29 21:03:02 +0000215
Bram Moolenaar4399ef42005-02-12 14:29:27 +0000216POSIX compatibility *new-posix*
217-------------------
218
219The POSIX test suite was used to verify POSIX compatibility. A number of
220problems have been fixed to make Vim more POSIX compatible. Some of them
221conflict with traditional Vi or expected behavior. The $VIM_POSIX environment
222variable can be set to get POSIX compatibility. See |posix|.
223
224Items that were fixed for both Vi and POSIX compatibilty:
225- repeating "R" with a count only overwrites text once; added the 'X' flag to
226 'cpoptions' |cpo-X|
227- a vertical movement command that moves to a non-existing line fails; added
228 the '-' flag to 'cpoptions' |cpo--|
229- when preserving a file and doing ":q!" the file can be recovered; added the
230 '&' flag to 'cpoptions' |cpo-&|
231- The 'window' option is partly implemented. It specifies how much CTRL-F and
232 CTRL-B scroll when there is one window. The "-w {number}" argument is now
233 accepted. "-w {scriptout}" only works when {scriptout} doesn't start with a
234 digit.
235- Allow "-c{command}" argument, no space between "-c" and {command}.
236- When writing a file with ":w!" don't reset 'readonly' when 'Z' is present in
237 'cpoptions'.
Bram Moolenaar5313dcb2005-02-22 08:56:13 +0000238- Allow 'l' and '#' flags for ":list", ":print" and ":number".
239- Added the '.' flag to 'cpoptions': ":cd" fails when the buffer is modified.
240- In Ex mode with an empty buffer ":read file" doesn't keep an empty line
241 above or below the new lines.
242- Remove a backslash before a NL for the ":global" command.
243- When ":append", ":insert" or ":change" is used with ":global", get the
244 inserted lines from the command. Can use backslash-NL to separate lines.
245- Can use ":global /pat/ visual" to execute Normal mode commands at each
246 matched line. Use "Q" to continue and go to the next line.
247- The |:open| command has been partially implemented. It stops Ex mode, but
248 redraws the whole screen, not just one line as open mode is supposed to do.
249- Support using a pipe to read the output from and write input to an external
250 command. Added the 'shelltemp' option and has("filterpipe").
251- In ex silent mode the ":set" command output is displayed.
252- The ":@@" and ":**" give an error message when no register was used before.
253- The search pattern "[]-`]" matches ']', '^', '_' and '`'.
254- Autoindent for ":insert" is using the line below the insert.
255- Autoindent for ":change" is using the first changed line.
256- Editing Ex command lines is not done in cooked mode, because CTRL-D and
257 CTRL-T cannot be handled then.
258- In Ex mode, "1,3" prints three lines.
259- Implemented the 'prompt' option.
Bram Moolenaar4399ef42005-02-12 14:29:27 +0000260
261
Bram Moolenaare2ac10d2005-03-07 23:26:06 +0000262Debugger support *new-debug-support*
263----------------
264
265The 'balloonexpr' option has been added. This is a generic way to implement
266balloon functionality. You can use it to show info for the word under the
267mouse pointer.
268
269
Bram Moolenaar071d4272004-06-13 20:20:40 +0000270Various new items *new-items-7*
271-----------------
272
273Normal mode commands: ~
274
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000275a", a' and a` New text objects to select quoted strings. |a'|
276i", i' and i' (Taro Muraoka)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000277
Bram Moolenaar05159a02005-02-26 23:04:13 +0000278CTRL-W <Enter> In the quickfix window: opens a new window to show the
279 location of the error under the cursor.
280
Bram Moolenaar071d4272004-06-13 20:20:40 +0000281Options: ~
282
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000283'completefunc' The name of a function used for user-specified Insert
284 mode completion. CTRL-X CTRL-U can be used in Insert
285 mode to do any kind of completion. (Taro Muraoka)
286'quoteescape' Characters used to escape quotes inside a string.
287 Used for the a", a' and a` text objects. |a'|
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000288'numberwidth' Minimal width of the space used for the 'number'
289 option. (Emmanuel Renieris)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000290'mzquantum' Time in msec to schedule MzScheme threads.
Bram Moolenaar8299df92004-07-10 09:47:34 +0000291'printmbcharset' CJK character set to be used for :hardcopy
292'printmbfont' font names to be used for CJK output of :hardcopy
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000293'fsync' Whether fsync() is called after writing a file.
294 (Ciaran McCreesh)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000295'wildoptions' "tagfile" value enables listing the file name of
296 matching tags for CTRL-D command line completion.
297 (based on an idea from Yegappan Lakshmanan)
Bram Moolenaar86b68352004-12-27 21:59:20 +0000298'formatlistpat' pattern to recognize a numbered list for formatting.
299 (idea by Hugo Haas)
Bram Moolenaar60c78922005-03-20 22:40:14 +0000300'spell' switch spell checking on/off
301'spelllang' languages to check spelling for
Bram Moolenaar54ee7752005-05-31 22:22:17 +0000302'verbosefile' Log messages in a file.
Bram Moolenaar86b68352004-12-27 21:59:20 +0000303
Bram Moolenaar071d4272004-06-13 20:20:40 +0000304
305Ex commands: ~
306
Bram Moolenaar843ee412004-06-30 16:16:41 +0000307Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
308
Bram Moolenaar8299df92004-07-10 09:47:34 +0000309|:startreplace| Start Replace mode. (Charles Campbell)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000310
Bram Moolenaar8299df92004-07-10 09:47:34 +0000311|:0file| Removes the name of the buffer. (Charles Campbell)
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000312
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000313|:diffoff| Switch off diff mode in the current window or in all
314 windows.
315
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000316|:keepalt| Do not change the alternate file.
317
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000318|:delmarks| Delete marks.
319
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000320|:sandbox| Command modifier: execute the argument in the sandbox.
321
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000322|:exusage| Help for Ex commands (Nvi command).
323
324|:viusage| Help for Vi commands (Nvi command).
325
Bram Moolenaar86b68352004-12-27 21:59:20 +0000326|:cbuffer| Read error lines from a buffer. (partly by Yegappan
327 Lakshmanan)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000328
Bram Moolenaar67fe1a12005-05-22 22:12:58 +0000329|:sort| Sort lines in the buffer without depending on an
330 external command.
331
332
Bram Moolenaar071d4272004-06-13 20:20:40 +0000333New functions: ~
334
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000335|add()| append an item to a List
336|append()| append List of lines to the buffer
337|browsedir()| Dialog to select a directory.
338|byteidx()| Index of a character. (Ilya Sher)
339|call()| call a function with List as arguments
340|copy()| make a shallow copy of a List or Dictionary
341|count()| count nr of times a value is in a List or Dictionary
342|deepcopy()| make a full copy of a List or Dictionary
343|empty()| check if List or Dictionary is empty
Bram Moolenaarb982ca52005-03-28 21:02:15 +0000344|getqflist()| list of quickfix errors (Yegappan Lakshmanan)
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000345|extend()| append one List to another or add items from one
346 Dictionary to another
347|filter()| remove selected items from a List or Dictionary
348|finddir()| Find a directory in 'path'.
349|findfile()| Find a file in 'path'. (Johannes Zellner)
350|foldtextresult()| The text displayed for a closed fold at line "lnum".
351|function()| make a Funcref out of a function name
352|get()| get an item from a List or Dictionary
353|getfontname()| Get actual font name being used.
354|getfperm()| Get file permission string. (Nikolai Weibull)
355|getftype()| Get type of file. (Nikolai Weibull)
Bram Moolenaar05159a02005-02-26 23:04:13 +0000356|getline()| With second argument: get List with buffer lines
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000357|has_key()| check whether a key appears in a Dictionary
358|insert()| insert an item somewhere in a List
359|items()| get List of Dictionary key-value pairs
360|join()| join List items into a String
361|keys()| get List of Dictionary keys
362|len()| number of items in a List or Dictionary
363|map()| change each List or Dictionary item
Bram Moolenaar2a8d1f82005-02-05 21:43:56 +0000364|matchlist()| list with match and submatches of a pattern in a string
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000365|max()| maximum value in a List or Dictionary
366|min()| minimum value in a List or Dictionary
Bram Moolenaar5313dcb2005-02-22 08:56:13 +0000367|mkdir()| create a directory
Bram Moolenaar2a8d1f82005-02-05 21:43:56 +0000368|readfile()| read a file into a list of lines
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000369|remove()| remove one or more items from a List or Dictionary
370|repeat()| Repeat "expr" "count" times. (Christophe Poucet)
371|reverse()| reverse the order of a List
Bram Moolenaarb982ca52005-03-28 21:02:15 +0000372|setqflist()| create a quickfix list (Yegappan Lakshmanan)
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000373|sort()| sort a List
374|split()| split a String into a List
375|string()| String representation of a List or Dictionary
376|system()| Filters {input} through a shell command.
Bram Moolenaarfb269802005-03-15 22:46:30 +0000377|taglist()| Get list of matching tags. (Yegappan Lakshmanan)
Bram Moolenaarbac234e2005-01-17 22:21:07 +0000378|tr()| Translate characters. (Ron Aaron)
379|values()| get List of Dictionary values
Bram Moolenaar2a8d1f82005-02-05 21:43:56 +0000380|writefile()| write a list of lines into a file
Bram Moolenaar8299df92004-07-10 09:47:34 +0000381
Bram Moolenaarbee0c5b2005-02-07 22:03:36 +0000382User defined functions can now be loaded automatically from the "autoload"
383directory in 'runtimepath'. See |autoload-functions|.
384
Bram Moolenaar071d4272004-06-13 20:20:40 +0000385
386New autocommand events: ~
387
Bram Moolenaar8299df92004-07-10 09:47:34 +0000388|InsertEnter| starting Insert or Replace mode
389|InsertChange| going from Insert to Replace mode or back
390|InsertLeave| leaving Insert or Replace mode
Bram Moolenaar843ee412004-06-30 16:16:41 +0000391
Bram Moolenaar8299df92004-07-10 09:47:34 +0000392|ColorScheme| after loading a color scheme
Bram Moolenaarbee0c5b2005-02-07 22:03:36 +0000393|QuickFixCmdPre| before :make, :grep et al. (Ciaran McCreesh)
394|QuickFixCmdPost| after :make, :grep et al. (Ciaran McCreesh)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000395
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000396
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000397New items in search patterns: ~
398|/\%d| \%d123 search for character with decimal number
399|/\]| [\d123] idem, in a colletion
400|/\%o| \%o103 search for character with octal number
401|/\]| [\o1o3] idem, in a colletion
402|/\%x| \%x1a search for character with 2 pos. hex number
403|/\]| [\x1a] idem, in a colletion
404|/\%u| \%u12ab search for character with 4 pos. hex number
405|/\]| [\u12ab] idem, in a colletion
406|/\%U| \%U1234abcd search for character with 8 pos. hex number
407|/\]| [\U1234abcd] idem, in a colletion
408 (The above partly by Ciaran McCreesh)
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +0000409|/[[=| [[=a=]] an equivalence class (only for latin1 characters)
410|/[[.| [[.a.]] a collation element (only works with single char)
Bram Moolenaar5313dcb2005-02-22 08:56:13 +0000411
412Nesting |/multi| items no longer is an error when an empty match is possible.
413
414It is now possible to use \{0}, it matches the preceding atom zero times. Not
415useful, just for compatibility.
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000416
417
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000418New Syntax/Indent/FTplugin files: ~
419
420MuPAD source syntax, indent and ftplugin. (Dave Silvia)
421
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000422ABAB/4 syntax file. (Marius van Wyk)
423
424SQL-Informix syntax file. (Dean L Hill)
425
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000426PHP compiler plugin. (Doug Kearns)
427
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000428Sive syntax file. (Nikolai Weibull)
429
Bram Moolenaarb982ca52005-03-28 21:02:15 +0000430Moved all the indent settings from the filetype plugin to the indent file.
431Implemented b:undo_indent to undo indent settings when setting 'filetype' to a
432different value.
433
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000434
Bram Moolenaar47136d72004-10-12 20:02:24 +0000435New Keymaps: ~
436
437Sinhala (Sri Lanka) (Harshula Jayasuriya)
438
439
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000440New message translations: ~
441
442The Ukranian messages are now also available in cp1251.
443
Bram Moolenaar5313dcb2005-02-22 08:56:13 +0000444Irish message translations. (Kevin Patrick Scannell)
445
Bram Moolenaar05159a02005-02-26 23:04:13 +0000446Vietnamese message translations and menu. (Phan Vinh Thinh)
447
Bram Moolenaar071d4272004-06-13 20:20:40 +0000448
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000449Others: ~
450
451Mac: Add the selection type to the clipboard, so that Block, line and
452character selections can be used between two Vims. (Eckehard Berns)
453Also fixes the problem that setting 'clipboard' to "unnamed" breaks using
454"yyp".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000455
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000456Mac: GUI font selector. (Peter "Rain Dog" Cucka)
457
Bram Moolenaar5313dcb2005-02-22 08:56:13 +0000458Mac: support for multi-byte characters. (Da Woon Jung)
459
Bram Moolenaar2079a602005-01-04 21:43:22 +0000460GUI font selector for Motif. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000461
Bram Moolenaarbee0c5b2005-02-07 22:03:36 +0000462Nicer toolbar buttons for Motif. (Marcin Dalecki)
463
Bram Moolenaar2079a602005-01-04 21:43:22 +0000464Mnemonics for the Motif find/replace dialog. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000465
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000466Mac: better integration with Xcode. Post a fake mouse-up event after the odoc
467event and the drag receive handler to work around a stall after Vim loads a
468file. Fixed an off-by-one line number error. (Da Woon Jung)
469
Bram Moolenaar843ee412004-06-30 16:16:41 +0000470The netrw plugin now also supports viewing a directory, when "scp://" is used.
471Deleting and renaming files is possible. (Charles Campbell)
472
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000473Added the t_SI and t_EI escape sequences for starting and ending Insert mode.
474To be used to set the cursor shape to a bar or a block. No default values,
475they are not supported by termcap/terminfo.
476
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000477Autocommands can be defined local to a buffer. This means they will also work
478when the buffer does not have a name or no specific name. See
479|autocmd-buflocal|. (Yakov Lerner)
480
Bram Moolenaar19a09a12005-03-04 23:39:37 +0000481For xterm most combinations of modifiers with function keys are recognized.
482|xterm-modifier-keys|
483
Bram Moolenaar071d4272004-06-13 20:20:40 +0000484==============================================================================
485IMPROVEMENTS *improvements-7*
486
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000487":helpgrep" accepts a language specifier after the pattern: "pat@it".
488
Bram Moolenaar8299df92004-07-10 09:47:34 +0000489Move the help for printing to a separate help file. It's quite a lot now.
490
Bram Moolenaar8bf59b92005-03-06 23:40:56 +0000491The pattern matching code was changed from a recursive function to an
492iterative mechanism. This avoids out-of-stack errors. State is stored in
493allocated memory, running out of memory can always be detected. Allows
494matching more complex things, but Vim may seem to hang while doing that.
495
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000496":breakadd here" and ":breakdel here" can be used to set or delete a
497breakpoint at the cursor.
498
Bram Moolenaar843ee412004-06-30 16:16:41 +0000499The tutor was updated to make it simpler to use and added text to explain a
500few more important commands. Used ideas from Gabriel Zachmann.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000501
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000502Unix: When libcall() fails obtain an error message with dlerror() and display
503it. (Johannes Zellner)
504
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000505Added "nbsp" in 'listchars'. (David Blanchet)
506
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000507Added the "acwrite" value for the 'buftype' option. This is for a buffer that
508doesn not have a name that refers to a file and is written with BufWriteCmd
509autocommands.
510
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000511For lisp indenting and matching parenthesis: (Sergey Khorev)
512- square brackets are recognized properly
513- #\(, #\), #\[ and #\] are recognized as character literals
514- Lisp line comments (delimited by semicolon) are recognized
515
Bram Moolenaar89cb5e02004-07-19 20:55:54 +0000516Added the "count" argument to match(), matchend() and matchstr(). (Ilya Sher)
517
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000518winnr() takes an optional "$" and "#" arguments. (Nikolai Weibull, Yegappan
519Lakshmanan)
520
521Added 'n' flag to search(): don't move the cursor. (Nikolai Weibull)
522
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000523When uncompressing fails in the gzip plugin, give an error message but don't
524delete the raw text. Helps if the file has a .gz extension but is not
525actually compressed. (Andrew Pimlott)
526
527When C, C++ or IDL syntax is used, may additionally load doxygen syntax.
528Also support setting the filetype to "cdoxygen" for C plus doxygen syntax.
529(Michael Geddes)
530
531The ":registers" command now displays multi-byte characters properly.
532
533VMS: In the usage message mention that a slash can be used to make a flag
534upper case. Add color support to the builtin vt320 terminal codes.
535(Zoltan Arpadffy)
536
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000537For the '%' item in 'viminfo', allow a number to set a maximum for the number
538of buffers.
539
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000540The 'statusline' option can be local to the window, so that each window can
541have a different value. (partly by Yegappan Lakshmanan)
542
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000543When a file looks like a shell script, check for an "exec" command that starts
544the tcl interpreter. (suggested by Alexios Zavras)
545
546Support conversion between utf-8 and latin9 (iso-8859-15) internally, so that
547digraphs still work when iconv is not available.
548
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000549When a session file is loaded while editing an unnamed, empty buffer that
550buffer is wiped out. Avoids that there is an unused buffer in the buffer
551list.
552
553Win32: When libintl.dll supports bind_textdomain_codeset(), use it.
554(NAKADAIRA Yukihiro)
555
556When foldtext() finds no text after removing the comment leader, use the
557second line of the fold. Helps for C-style /* */ comments where the first
558line is just "/*".
559
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000560When editing the same file from two systems (e.g., Unix and MS-Windows) there
561mostly was no warning for an existing swap file, because the name of the
562edited file differs (e.g., y:\dir\file vs /home/me/dir/file). Added a flag to
563the swap file to indicate it is in the same directory as the edited file. The
564used path then doesn't matter and the check for editing the same file is much
565more reliable.
566
567Client-server communication now supports 'encoding'. When setting 'encoding'
568in a Vim server to "utf-8", and using "vim --remote fname" in a console,
569"fname" is converted from the console encoding to utf-8. Also allows Vims
570with different 'encoding' settings to exchange messages.
571
Bram Moolenaar86b68352004-12-27 21:59:20 +0000572Internal: Changed ga_room into ga_maxlen, so that it doesn't need to be
573incremented/decremented each time.
574
Bram Moolenaar2079a602005-01-04 21:43:22 +0000575Included a few improvements for Motif from Marcin Dalecki. Draw label
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000576contents ourselves to make them handle fonts in a way configurable by Vim and
577a bit less dependent on the X11 font management.
578
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000579When a register is empty it is not stored in the viminfo file.
580
Bram Moolenaar8c711452005-01-14 21:53:12 +0000581Removed the tcltags script, it's obsolete.
582
Bram Moolenaar67fe1a12005-05-22 22:12:58 +0000583":redir @*>>" and ":redir @+>>" append to the clipboard. Better check for
Bram Moolenaar5313dcb2005-02-22 08:56:13 +0000584invalid characters after the register name. |:redir|
585
586":redir => variable" and ":redir =>> variable" write or append to a variable.
587(Yegappan Lakshmanan) |:redir|
Bram Moolenaardcaf10e2005-01-21 11:55:25 +0000588
Bram Moolenaar67fe1a12005-05-22 22:12:58 +0000589":redir @{a-z}>>" appends to register a to z.
590
Bram Moolenaar54ee7752005-05-31 22:22:17 +0000591The 'verbosefile' option can be used to log messages in a file. Verbose
592messages are not displayed then. The "-V{filename}" argument can be used to
593log startup messages.
594
Bram Moolenaardcaf10e2005-01-21 11:55:25 +0000595":let g:" lists global variables.
596":let b:" lists buffer-local variables.
597":let w:" lists window-local variables.
598":let v:" lists Vim variables.
599
Bram Moolenaard438e912005-01-31 19:21:46 +0000600The stridx() and strridx() functions take a third argument, where to start
601searching. (Yegappan Lakshmanan)
Bram Moolenaarb71ec9f2005-01-25 22:22:02 +0000602
Bram Moolenaar67fe1a12005-05-22 22:12:58 +0000603The getreg() function takes an extra argument to be able to get the expression
604for the '=' register instead of the result of evaluating it.
605
606The setline() function can take a List argument to set multiple lines. When
607the line number is just below the last line the line is appended.
608
Bram Moolenaarbee0c5b2005-02-07 22:03:36 +0000609g CTRL-G also shows the number of characters if it differs from the number of
610bytes.
611
Bram Moolenaar5313dcb2005-02-22 08:56:13 +0000612Completion for ":debug" and entering an expression for the '=' register. Skip
613":" between range and command name. (Peter winters)
614
615CTRL-Q in Insert mode now works like CTRL-V by default. Previously it was
616ignored.
617
618When "beep" is included in 'debug' a function or script that causes a beep
619will result in a message with the source of the error.
620
Bram Moolenaar05159a02005-02-26 23:04:13 +0000621When completing buffer names, match with "\(^\|[\/]\)" instead of "^", so that
622":buf stor<Tab>" finds both "include/storage.h" and "storage/main.c".
623
624To count items (pattern matches) without changing the buffer the 'n' flag has
625been added to |:substitute|. See |count-items|.
626
Bram Moolenaar038eb0e2005-02-27 22:43:26 +0000627The "screen.linux" $TERM name is recognized to set the default for
Bram Moolenaar19a09a12005-03-04 23:39:37 +0000628'background' to "dark". (Ciaran McCreesh) Also for "cygwin".
629
630The |FileChangedShell| autocommand event can now use the |v:fcs_reason|
631variable that specifies what triggered the event. |v:fcs_choice| can be used
632to reload the buffer or ask the user what to do.
Bram Moolenaar038eb0e2005-02-27 22:43:26 +0000633
Bram Moolenaar8bf59b92005-03-06 23:40:56 +0000634Not all modifiers were recognized for xterm function keys. Added the
635possibility in term codes to end in ";*X" or "O*X", where X is any character
636and the * stands for the modifier code.
637Added the <xUp>, <xDown>, <xLeft> and <xRight> keys, to be able to recognize
638the two forms that xterm can send their codes in and still handle all possible
639modifiers.
640
Bram Moolenaarc0761132005-03-18 20:30:32 +0000641getwinvar() now also works to obtain a buffer-local option from the specified
642window.
643
Bram Moolenaarb982ca52005-03-28 21:02:15 +0000644Added the "%s" item to 'errorformat'. (Yegappan Lakshmanan)
645
Bram Moolenaar34cdc3e2005-05-18 22:24:46 +0000646GTK GUI: use the GTK file dialog when it's available. Mix from patches by
647Grahame Bowland and Evan Webb.
648
Bram Moolenaar071d4272004-06-13 20:20:40 +0000649==============================================================================
650COMPILE TIME CHANGES *compile-changes-7*
651
Bram Moolenaar2079a602005-01-04 21:43:22 +0000652Dropped the support for the BeOS and Amiga GUI. They were not maintained and
653probably didn't work. If you want to work on this: get the Vim 6.x version
654and merge it back in.
655
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000656Mac: "make" now creates the Vim.app directory and "make install" copies it to
657its final destination. (Raf)
658
659Mac: Made it possible to compile with Motif, Athena or GTK without tricks and
660still being able to use the MacRoman conversion. Added the os_mac_conv.c
661file.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000662
Bram Moolenaar5313dcb2005-02-22 08:56:13 +0000663When running the tests and one of them fails to produce "test.out" the
664following tests are still executed. This helps when running out of memory.
665
Bram Moolenaar071d4272004-06-13 20:20:40 +0000666==============================================================================
667BUG FIXES *bug-fixes-7*
668
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000669When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
670instead of "copy". When 'printdevice' was empty the copy command did not
671work. Use "LPT1" then.
672
673The GTK font dialog uses a font size zero when the font name doesn't include a
674size. Use a default size of 10.
675
676This example in the documentation didn't work:
677 :e `=foo . ".c" `
678Skip over the expression in `=expr` when looking for comments, |, % and #.
679
680When ":helpgrep" doesn't find anything there is no error message.
681
682"L" and "H" did not take closed folds into account.
683
684Win32: The "-P title" argument stopped at the first title that matched, even
685when it doesn't support MDI.
686
687Mac GUI: CTRL-^ and CTRL-@ did not work.
688
689"2daw" on "word." at the end of a line didn't include the preceding white
690space.
691
692Win32: Using FindExecutable() doesn't work to find a program. Use
693SearchPath() instead. For executable() use $PATHEXT when the program searched
694for doesn't have an extension.
695
696When 'virtualedit' is set, moving the cursor up after appending a character
697may move it to a different column. Was caused by auto-formatting moving the
698cursor and not putting it back where it was.
699
700When indent was added automatically and then moving the cursor, the indent was
701not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
702to make it work the old way.
703
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000704When opening a command-line window, 'textwidth' gets set to 78 by the Vim
705filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
706
707After using cursor(line, col) moving up/down doesn't keep the same column.
708
709Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
710fields. (Walter Briscoe)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000711
Bram Moolenaar843ee412004-06-30 16:16:41 +0000712On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
713Michele)
714
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000715Printing with PostScript may keep the printer waiting for more. Append a
716CTRL-D to the printer output. (Mike Williams)
717
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000718When converting a string with a hex or octal number the leading '-' was
719ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
720
721Using "@:" to repeat a command line didn't work when it contains control
722characters.
723
Bram Moolenaar21cf8232004-07-16 20:18:37 +0000724When using file completion for a user command, it would not expand environment
725variables like for a regular command with a file argument.
726
727'cindent': When the argument of a #define looks like a C++ class the next line
728is indented too much.
729
730When 'comments' includes multi-byte characters inserting the middle part and
731alignment may go wrong. 'cindent' also suffers from this for right-aligned
732items.
733
Bram Moolenaar05159a02005-02-26 23:04:13 +0000734Win32: when 'encoding' is set to "utf-8" getenv() still returns strings in the
735active codepage. Convert to utf-8. Also for $HOME.
736
Bram Moolenaarab79bcb2004-07-18 21:34:53 +0000737The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
738"cn" or "tw" as intended.
739
Bram Moolenaar5eb86f92004-07-26 12:53:41 +0000740When 'bin' is set and 'eol' is not set then line2byte() added the line break
741after the last line while it's not there.
742
743Using foldlevel() in a WinEnter autocommand may not work. Noticed when
744resizing the GUI shell upon startup.
745
746Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
747string with a trailing newline. The newline is ignored.
748
Bram Moolenaar269ec652004-07-29 08:43:53 +0000749When using the ":saveas f2" command for buffer "f1", the Buffers menu would
750contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
751and BufFilePost events for the alternate buffer that gets the old name.
752
Bram Moolenaard4755bb2004-09-02 19:12:26 +0000753strridx() did not work well when the needle is empty. (Ciaran McCreesh)
754
755GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
756just before it is invoked
757
758VMS: Occasionally CR characters were inserted in the file. Expansion of
759environment variables was not correct. (Zoltan Arpadffy)
760
761UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
762from the first character of the word.
763
764When using ":sball" in an autocommand only the filetype in one buffer was
765detected. Reset did_filetype in enter_buffer().
766
767When using ":argdo" and the window already was at the first argument index,
768but not actually editing it, the current buffer would be used instead.
769
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000770When ":next dir/*" includes many matches, adding the names to the argument
771list may take an awful lot of time and can't be interrupted. Allow
772interrupting this.
773
774When editing a file that was already loaded in a buffer, modelines were not
775used. Now window-local options in the modeline are set. Buffer-local options
776and global options remain unmodified.
777
778Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
779command line with non-ASCII characters are not used correctly. Recode the
780file names when 'encoding' is set, using the Unicode command line.
781
Bram Moolenaarc0197e22004-09-13 20:26:32 +0000782Win32 console: When the default for 'encoding' ends up to be "latin1", the
783default value of 'isprint' was wrong.
784
785When an error message is given while waiting for a character (e.g., when an
786xterm reports the number of colors), the hit-enter prompt overwrote the last
787line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
788
Bram Moolenaar3fdfa4a2004-10-07 21:02:47 +0000789Mac GUI: Shift-Tab didn't work.
790
791When defining tooltip text, don't translate terminal codes, since it's not
792going to be used like a command.
793
794GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
795GTK error. Invalid characters may appear when 'encoding' is changed.
796
797GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
798
799Win32: When 'encoding' is changed while starting up, use the Unicode command
800line to convert the file arguments to 'encoding'. Both for the GUI and the
801console version.
802
803Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
804there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
805
Bram Moolenaar7b0294c2004-10-11 10:16:09 +0000806When two versions of GTK+ 2 are installed it was possible to use the header
807files from one and the library from the other. Use GTK_LIBDIR to put the
808directory for the library early in the link flags.
809
810With the GUI find/replace dialog a replace only worked if the pattern was
811literal text. Now it works for any pattern.
812
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000813When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
814cause equalizing window heights in the vertical direction.
815
816When ":emenu" is used in a startup script the command was put in the typeahead
817buffer, causing a prompt for the crypt key to be messed up.
818
819Mac OS/X: The default for 'isprint' included characters 128-160, causes
820problems for Terminal.app.
821
822When a syntax item with "containedin" is used, it may match in the start or
823end of a region with a matchgroup, while this doesn't happen for a "contains"
824argument.
825
826When a transparent syntax items matches in another item where the highlighting
827has already stopped (because of a he= argument), the highlighting would come
828back.
829
830When cscope is used to set the quickfix error list, it didn't get set if there
831was only one match. (Sergey Khorev)
832
833When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
834"cancel", would still give an error message.
835
836The PopUp menu items that started Visual mode didn't work when not in Normal
837mode. Switching between selecting a word and a line was not possible.
838
839Win32: The keypad decimal point always resulted in a '.', while on some
840keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
841
842Removed unused function DisplayCompStringOpaque() from gui_w32.c
843
844In Visual mode there is not always an indication whether the line break is
845selected or not. Highlight the character after the line when the line break
846is included, e.g., after "v$o".
847
848GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
849GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
850
851After "Y" '[ and '] were not at start/end of the yanked text.
852
853When a telnet connection is dropped Vim preserves files and exits. While
854doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
Bram Moolenaar46c9c732004-12-12 11:37:09 +0000855Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
856handle. Added handle_signal().
857
858When using "set laststatus=2 cmdheight=2" in the .gvimrc you may only get one
859line for the cmdline. (Christian Robinson) Invoke command_height() after the
860GUI has started up.
Bram Moolenaar293ee4d2004-12-09 21:34:53 +0000861
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000862When completing a file name on the command line backslashes are required for
863white space. Was only done for a space, not for a Tab.
864
865When configure could not find a terminal library, compiling continued for a
866long time before reporting the problem. Added a configure check for tgetent()
867being found in a library.
868
869When the cursor is on the first char of the last line a ":g/pat/s///" command
870may cause the cursor to be displayed below the text.
871
872Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
873is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
874
875When recovering the 'fileformat' and 'fileencoding' were taken from the
876original file instead of from the swapfile. When the file didn't exist, was
877empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
878be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
879the values when recovering.
880
881":bufdo g/something/p" overwrites each last printed text line with the file
882message for the next buffer. Temporarily clear 'shortmess' to avoid that.
883
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000884Win32: Cannot edit a file starting with # with --remote. Do escape % and #
885when building the ":drop" command.
886
Bram Moolenaar86b68352004-12-27 21:59:20 +0000887A comment or | just after a expresion-backtick argument was not recognized.
888E.g. in :e `="foo"`"comment.
889
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000890"(" does not stop at an empty sentence (single dot and white space) while ")"
891does. Also breaks "das" on that dot.
892
893When doing "yy" with the cursor on a TAB the ruler could be wrong and "k"
894moved the cursor to another column.
895
896When 'commentstring' is '"%s' and there is a double quote in the line a double
897quote before the fold marker isn't removed in the text displayed for a closed
898fold.
899
900In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line
901break, resulting in "selected 202 of 201 bytes".
902
Bram Moolenaar2079a602005-01-04 21:43:22 +0000903Motif: fonts were not used for dialog components. (Marcin Dalecki)
Bram Moolenaar567e4de2004-12-31 21:01:02 +0000904
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000905Motif: After using a toolbar button the keyboard focus would be on the toolbar
Bram Moolenaar2079a602005-01-04 21:43:22 +0000906(Lesstif problem). (Marcin Dalecki)
Bram Moolenaar49cd9572005-01-03 21:06:01 +0000907
Bram Moolenaar1c2fda22005-01-02 11:43:19 +0000908When using "y<C-V>`x" where mark x is in the first column, the last line was
909not included.
910
911Not all test scripts work properly on MS-Windows when checked out from CVS.
912Use a Vim command to fix all fileformats to dos before executing the tests.
913
914When using ":new" and the file fits in the window, lines could still be above
915the window. Now remove empty lines instead of keeping the relative position.
916
Bram Moolenaar3d60ec22005-01-05 22:19:46 +0000917Cmdline completion didn't work after ":let var1 var<Tab>".
918
Bram Moolenaarb7d6e722005-01-09 21:22:45 +0000919When using ":startinsert" or ":startreplace" when already in Insert mode
920(possible when using CTRL-R =), pressing Esc would directly restart Insert
921mode. (Peter Winters)
922
Bram Moolenaar31c67ef2005-01-11 21:34:41 +0000923"2daw" didn't work at end of file if the last word is a single character.
924
Bram Moolenaar8c711452005-01-14 21:53:12 +0000925Completion for ":next a'<Tab>" put a backslash before single quote, but it was
926not removed when editing a file. Now halve backslashes in save_patterns().
Bram Moolenaar798c5a72005-01-16 22:06:30 +0000927Also fix expanding a file name with the shell that contains "\'".
Bram Moolenaar8c711452005-01-14 21:53:12 +0000928
Bram Moolenaarb71ec9f2005-01-25 22:22:02 +0000929When doing "1,6d|put" only "fewer lines" was reported. Now a following "more
930lines" overwrites the message.
931
932Configure could not handle "-Dfoo=long\ long" in the TCL config output.
933
Bram Moolenaarb2956cd2005-01-27 14:42:53 +0000934When searching backwards, using a pattern that matches a newline and uses \zs
935after that, didn't find a match. Could also get a hang or end up in the right
936column in the wrong line.
937
Bram Moolenaard438e912005-01-31 19:21:46 +0000938When $LANG is "sl" for slovenian, the slovak menu was used, since "slovak"
939starts with "sl".
940
941When 'paste' is set in the GUI the Paste toolbar button doesn't work. Clear
942'paste' when starting the GUI.
943
Bram Moolenaarf5836682005-02-02 23:09:45 +0000944A message about a wrong viminfo line included the trailing NL.
945
Bram Moolenaar2a8d1f82005-02-05 21:43:56 +0000946When 'paste' is set in the GUI the toolbar button doesn't work in Insert mode.
947Use ":exe" in menu.vim to avoid duplicating the commands, instead of using a
948mapping.
949
950Treat "mlterm" as an xterm-like terminal. (Seiichi Sato)
951
952":z.4" and ":z=4" didn't work Vi compatible.
953
Bram Moolenaarbee0c5b2005-02-07 22:03:36 +0000954When sourcing a file, editing it and sourcing it again, it could appear twice
955in ":scriptnames" and get a new <SID>, because the inode has changed.
956
957When $SHELL is set but empty the 'shell' option would be empty. Don't use an
958empty $SHELL value.
959
960A command "w! file" in .vimrc or $EXINIT didn't work. Now it writes an empty
961file.
962
963When a CTRL-F command at the end of the file failed, the cursor was still
964moved to the start of the line. Now it remains where it is.
965
966When using ":s" or "&" to repeat the last substitute and "$" was used to put
967the cursor in the last column, put the cursor in the last column again. This
968is Vi compatible.
969
Bram Moolenaar4399ef42005-02-12 14:29:27 +0000970Vim is not fully POSIX compliant but sticks with traditional Vi behavior.
971Added a few flags in 'cpoptions' to behave the POSIX way when wanted. The
972$VIM_POSIX environment variable is checked to set the default.
973
974Appending to a register didn't insert a line break like Vi. Added the '>'
975flag to 'cpoptions' for this.
976
977Using "I" in a line with only blanks appended to the line. This is not Vi
978compatible. Added the 'H' flag in 'coptions' for this.
979
980When joining multiple lines the cursor would be at the last joint, but Vi
981leaves it at the position where "J" would put it. Added the 'q' flag in
982'cpoptions' for this.
983
984Autoindent didn't work for ":insert" and ":append".
985
986Using ":append" in an empty buffer kept the dummy line. Now it's deleted to
987be Vi compatible.
988
989When reading commands from a file and stdout goes to a terminal, would still
990request the xterm version. Vim can't read it, thus the output went to the
991shell and caused trouble there.
992
Bram Moolenaar5313dcb2005-02-22 08:56:13 +0000993When redirecting to a register with an invalid name the redirection would
994still be done (after an error message). Now reset "redir_reg". (Yegappan
995Lakshmanan)
996
997It was not possible to use a NL after a backslash in Ex mode. This is
998sometimes used to feed multiple lines to a shell command.
999
Bram Moolenaar05159a02005-02-26 23:04:13 +00001000When 'cmdheight' is set to 2 in .vimrc and the GUI uses the number of lines
1001from the terminal we actually get 3 lines for the cmdline in gvim.
1002
1003When setting $HOME allocated memory would leak.
1004
Bram Moolenaar19a09a12005-03-04 23:39:37 +00001005Win32: bold characters may sometimes write in another character cell. Use
1006unicodepdy[] as for UTF-8. (Taro Muraoka)
1007
1008":w fname" didn't work for files with 'buftype' set to "nofile".
1009
Bram Moolenaare2ac10d2005-03-07 23:26:06 +00001010The method used to locate user commands for completion differed from when they
1011are executed. Abiguous command names were not completed properly.
1012
Bram Moolenaar9062a9d2005-03-08 22:46:26 +00001013Incremental search may cause a crash when there is a custom statusline that
1014indirectly invokes ":normal".
1015
1016Diff mode failed when $DIFF_OPTIONS was set in the environment. Unset it
1017before invoking "diff".
1018
Bram Moolenaar4ad237d2005-03-11 22:49:40 +00001019Completion didn't work after ":argdo", ":windo" and ":bufdo". Also for ":set
1020&l:opt" and ":set &g:opt". (Peter Winters)
1021
1022When setting 'ttymouse' to "dec" in an xterm that supports the DEC mouse
1023locator it doesn't work. Now switch off the mouse before selecting another
1024mouse model.
1025
Bram Moolenaarfb269802005-03-15 22:46:30 +00001026When the CursorHold event is triggered and the commands peek for typed
1027characters the typeahead buffer may be messed up, e.g., when a mouse-up event
1028is received. Avoid invoking the autocommands from the function waiting for a
1029character, let it put K_CURSORHOLD in the input buffer.
1030
1031Removed the "COUNT" flag from ":argadd", to avoid ":argadd 1*" to be used like
Bram Moolenaarc0761132005-03-18 20:30:32 +00001032":1argadd *". Same for ":argdelete" and ":argedit".
Bram Moolenaarfb269802005-03-15 22:46:30 +00001033
1034Avoid that $LANG is used for the menus when LC_MESSAGES is "en_US".
1035
Bram Moolenaarc0761132005-03-18 20:30:32 +00001036Added backslashes before dashes in the vim.1 manual page to make the appear as
1037real dashes. (Pierr Habouzit)
1038
1039Where "gq" left the cursor depended on the value of 'formatprg'. Now "gq"
1040always leaves the cursor at the last line of the formatted text.
1041
1042When editing a compressed file, such as "changelog.Debian.gz" file, filetype
1043detection may try to check the contents of the file while it's still
1044compressed. Skip setting 'filetype' for compressed files until they have been
1045decompressed. Required for patterns that end in a "*".
1046
1047Starting with an argument "+cmd" or "-S script" causes the cursor the be moved
1048to the first line. That breaks a BufReadPost autocommand that uses g`".
1049Don't move the cursor if it's somewhere past the first line.
1050
1051"gg=G" while 'modifiable' is off was uninterruptable.
1052
Bram Moolenaar60c78922005-03-20 22:40:14 +00001053When 'encoding' is "sjis" inserting CTRL-V u d800 a few times causes a crash.
1054Don't insert a DBCS character with a NUL second byte.
1055
Bram Moolenaar2641f772005-03-25 21:58:17 +00001056In Insert mode CTRL-O <Home> didn't move the cursor. Made "ins_at_eol" global
1057and reset it in nv_home().
1058
Bram Moolenaarb982ca52005-03-28 21:02:15 +00001059Wildcard expansion failed: ":w /tmp/$$.`echo test`". Don't put quotes around
1060spaces inside backticks.
1061
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00001062After this sequence of commands: Y V p gv: the wrong line is selected. Now
1063let "gv" select the text that was put, since the original text is deleted.
1064This should be the most useful thing to do.
1065
1066":sleep 100u" sleeps for 100 seconds, not 100 usec as one might expect. Give
1067an error message when the argument isn't recognized.
1068
1069In gui_mch_draw_string() in gui_w32.c "unibuflen" wasn't static, resulting in
1070reallocating the buffer every time. (Alexei Alexandrov)
1071
Bram Moolenaar0e21a3f2005-04-17 20:28:32 +00001072When using a Python "atexit" function it was not invoked when Vim exits. Now
1073call Py_Finalize() for that. (Ugo Di Girolamo)
1074
Bram Moolenaardba8a912005-04-24 22:08:39 +00001075GTK GUI: using a .vimrc with "set cmdheight=2 lines=43" and ":split" right
1076after startup, the window layout is messed up. (Michael Schaap) Added
1077win_new_shellsize() call in gui_init() to fix the topframe size.
1078
1079Trick to get ...MOUSE_NM not used when there are vertical splits. Now pass
1080column -1 for the left most window and add MOUSE_COLOFF for others. Limits
1081mouse column to 10000.
1082
1083searchpair() may hang when the end pattern has "\zs" at the end. Check that
1084we find the same position again and advance one character.
1085
1086When in diff mode and making a change that causes the "changed" highlighting
1087to disappear or reappear, it was still highlighted in another window.
1088
Bram Moolenaar34cdc3e2005-05-18 22:24:46 +00001089When a ":next" command fails because the user selects "Abort" at the ATTENTION
1090prompt the argument index was advanced anyway.
1091
1092When "~" is in 'iskeyword' the "gd" doesn't work, it's used for the previous
1093substitute pattern. Put "\V" in the pattern to avoid that.
1094
Bram Moolenaar555b2802005-05-19 21:08:39 +00001095Use of sprintf() sometimes didn't check properly for buffer overflow. Also
1096when using smsg(). Included code for snprintf() to avoid having to do size
1097checks where invoking them
1098
Bram Moolenaarf4630b62005-05-20 21:31:17 +00001099":help \=<Tab>" didn't find "sub-replace-\=". Wild menu for help tags didn't
1100show backslashes. ":he :s\=" didn't work.
1101
1102When reading an errorfile "~/" in a file name was not expanded.
1103
1104GTK GUI: When adding a scrollbar (e.g. when using ":vsplit") in a script or
1105removing it the window size may change. GTK sends us resize events when we
1106change the window size ourselves, but they may come at an unexpected moment.
1107Peek for a character to get any window resize events and fix 'columns' and
1108'lines' to undo this.
1109
Bram Moolenaar67fe1a12005-05-22 22:12:58 +00001110After deleting files from the argument list a session file generated with
1111":mksession" may contain invalid ":next" commands.
1112
1113When 'shortmess' is empty and 'keymap' set to accents, in Insert mode CTRL-N
1114may cause the hit-enter prompt. Typing 'a then didn't result in the accented
1115character. Put the character typed at the prompt back in the typeahead buffer
1116so that mapping is done in the right mode.
1117
Bram Moolenaar071d4272004-06-13 20:20:40 +00001118 vim:tw=78:ts=8:ft=help:norl: