blob: a3797ba600b8ff97e168a0afbbb90ea33d2a2c39 [file] [log] [blame]
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +00001*version7.txt* For Vim version 7.0aa. Last change: 2004 Jul 02
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
9compared to Vim 6.x.
10
11See |vi_diff.txt| for an overview of differences between Vi and Vim 7.0.
12See |version4.txt| for differences between Vim 3.x and Vim 4.x.
13See |version5.txt| for differences between Vim 4.x and Vim 5.x.
14See |version6.txt| for differences between Vim 5.x and Vim 6.x.
15
16INCOMPATIBLE CHANGES |incompatible-7|
17
18NEW FEATURES |new-7|
19
20New data types |new-data-types|
21Various new items |new-items-7|
22
23IMPROVEMENTS |improvements-7|
24
25COMPILE TIME CHANGES |compile-changes-7|
26
27BUG FIXES |bug-fixes-7|
28
29==============================================================================
30INCOMPATIBLE CHANGES *incompatible-7*
31
32These changes are incompatible with previous releases. Check this list if you
33run into a problem when upgrading from Vim 6.x to 7.0
34
Bram Moolenaarf4b8e572004-06-24 15:53:16 +000035":helpgrep" now uses a help window to display a match.
36
37
38Minor incompatibilities:
39
40For filetype detection: For many types, instead of ~/.dir/filename use
41*/.dir/filename, so that it also works for other user's files.
42
43":0verbose" now sets 'verbose' to zero instead of one.
44
45Removed the old and incomplete "VimBuddy" code.
46
47Buffers without a name report "No Name" instead of "No File". It was
48confusing for buffers with a name and 'buftype' set to "nofile".
Bram Moolenaar071d4272004-06-13 20:20:40 +000049
50==============================================================================
51NEW FEATURES *new-7*
52
53New data types *new-data-types*
54--------------
55
56In Vim scripts the following types have been added:
57
58 list ordered list of items
59 dictionary associative array of items
60 function reference to a function
61
62Many functions and commands have been added to support the new types.
63
Bram Moolenaar843ee412004-06-30 16:16:41 +000064NOT IMPLEMENTED YET!
65
66
67KDE support *new-kde*
68-----------
69
70Kvim is the KDE version of Vim. It uses the Qt toolkit. See |KVim|.
71(Thomas Capricelli, Philippe Fremy, Mickael Marchand, Mark Westcott, et al.)
72
Bram Moolenaar071d4272004-06-13 20:20:40 +000073
74Various new items *new-items-7*
75-----------------
76
77Normal mode commands: ~
78
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +000079a", a' and a` New text objects to select quoted strings. |a'|
80i", i' and i' (Taro Muraoka)
Bram Moolenaar071d4272004-06-13 20:20:40 +000081
82Options: ~
83
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +000084'completefunc' The name of a function used for user-specified Insert
85 mode completion. CTRL-X CTRL-U can be used in Insert
86 mode to do any kind of completion. (Taro Muraoka)
87'quoteescape' Characters used to escape quotes inside a string.
88 Used for the a", a' and a` text objects. |a'|
Bram Moolenaar071d4272004-06-13 20:20:40 +000089
90Ex commands: ~
91
Bram Moolenaar843ee412004-06-30 16:16:41 +000092Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
93
Bram Moolenaar071d4272004-06-13 20:20:40 +000094
95New functions: ~
96
97
98New autocommand events: ~
99
Bram Moolenaar843ee412004-06-30 16:16:41 +0000100InsertEnter starting Insert or Replace mode
101InsertChange going from Insert to Replace mode or back
102InsertLeave leaving Insert or Replace mode
103
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000104ColorScheme after loading a color scheme
Bram Moolenaar071d4272004-06-13 20:20:40 +0000105
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000106
107New Syntax/Indent/FTplugin files: ~
108
109MuPAD source syntax, indent and ftplugin. (Dave Silvia)
110
Bram Moolenaar071d4272004-06-13 20:20:40 +0000111
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000112Others: ~
113
114Mac: Add the selection type to the clipboard, so that Block, line and
115character selections can be used between two Vims. (Eckehard Berns)
116Also fixes the problem that setting 'clipboard' to "unnamed" breaks using
117"yyp".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000118
Bram Moolenaar843ee412004-06-30 16:16:41 +0000119The netrw plugin now also supports viewing a directory, when "scp://" is used.
120Deleting and renaming files is possible. (Charles Campbell)
121
Bram Moolenaar071d4272004-06-13 20:20:40 +0000122==============================================================================
123IMPROVEMENTS *improvements-7*
124
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000125":helpgrep" accepts a language specifier after the pattern: "pat@it".
126
127":breakadd here" and ":breakdel here" can be used to set or delete a
128breakpoint at the cursor.
129
Bram Moolenaar843ee412004-06-30 16:16:41 +0000130The tutor was updated to make it simpler to use and added text to explain a
131few more important commands. Used ideas from Gabriel Zachmann.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000132
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000133Unix: When libcall() fails obtain an error message with dlerror() and display
134it. (Johannes Zellner)
135
Bram Moolenaar071d4272004-06-13 20:20:40 +0000136==============================================================================
137COMPILE TIME CHANGES *compile-changes-7*
138
139
140==============================================================================
141BUG FIXES *bug-fixes-7*
142
Bram Moolenaarf4b8e572004-06-24 15:53:16 +0000143When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
144instead of "copy". When 'printdevice' was empty the copy command did not
145work. Use "LPT1" then.
146
147The GTK font dialog uses a font size zero when the font name doesn't include a
148size. Use a default size of 10.
149
150This example in the documentation didn't work:
151 :e `=foo . ".c" `
152Skip over the expression in `=expr` when looking for comments, |, % and #.
153
154When ":helpgrep" doesn't find anything there is no error message.
155
156"L" and "H" did not take closed folds into account.
157
158Win32: The "-P title" argument stopped at the first title that matched, even
159when it doesn't support MDI.
160
161Mac GUI: CTRL-^ and CTRL-@ did not work.
162
163"2daw" on "word." at the end of a line didn't include the preceding white
164space.
165
166Win32: Using FindExecutable() doesn't work to find a program. Use
167SearchPath() instead. For executable() use $PATHEXT when the program searched
168for doesn't have an extension.
169
170When 'virtualedit' is set, moving the cursor up after appending a character
171may move it to a different column. Was caused by auto-formatting moving the
172cursor and not putting it back where it was.
173
174When indent was added automatically and then moving the cursor, the indent was
175not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
176to make it work the old way.
177
178When <Space> is mapped to something that starts with a space, typing <Space>
179does not expand abbreviations. Only disable expanding abbreviations when a
180mapping is not remapped, not when the RHS starts with the LHS.
181
182When opening a command-line window, 'textwidth' gets set to 78 by the Vim
183filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
184
185After using cursor(line, col) moving up/down doesn't keep the same column.
186
187Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
188fields. (Walter Briscoe)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000189
Bram Moolenaar843ee412004-06-30 16:16:41 +0000190On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
191Michele)
192
Bram Moolenaar071d4272004-06-13 20:20:40 +0000193 vim:tw=78:ts=8:ft=help:norl: