14
|
1 *version7.txt* For Vim version 7.0aa. Last change: 2004 Jul 05
|
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
|
|
9 compared to Vim 6.x.
|
|
10
|
|
11 See |vi_diff.txt| for an overview of differences between Vi and Vim 7.0.
|
|
12 See |version4.txt| for differences between Vim 3.x and Vim 4.x.
|
|
13 See |version5.txt| for differences between Vim 4.x and Vim 5.x.
|
|
14 See |version6.txt| for differences between Vim 5.x and Vim 6.x.
|
|
15
|
|
16 INCOMPATIBLE CHANGES |incompatible-7|
|
|
17
|
|
18 NEW FEATURES |new-7|
|
|
19
|
|
20 New data types |new-data-types|
|
14
|
21 KDE support |new-KDE|
|
7
|
22 Various new items |new-items-7|
|
|
23
|
|
24 IMPROVEMENTS |improvements-7|
|
|
25
|
|
26 COMPILE TIME CHANGES |compile-changes-7|
|
|
27
|
|
28 BUG FIXES |bug-fixes-7|
|
|
29
|
|
30 ==============================================================================
|
|
31 INCOMPATIBLE CHANGES *incompatible-7*
|
|
32
|
|
33 These changes are incompatible with previous releases. Check this list if you
|
|
34 run into a problem when upgrading from Vim 6.x to 7.0
|
|
35
|
10
|
36 ":helpgrep" now uses a help window to display a match.
|
|
37
|
|
38
|
|
39 Minor incompatibilities:
|
|
40
|
|
41 For filetype detection: For many types, instead of ~/.dir/filename use
|
|
42 */.dir/filename, so that it also works for other user's files.
|
|
43
|
|
44 ":0verbose" now sets 'verbose' to zero instead of one.
|
|
45
|
|
46 Removed the old and incomplete "VimBuddy" code.
|
|
47
|
|
48 Buffers without a name report "No Name" instead of "No File". It was
|
|
49 confusing for buffers with a name and 'buftype' set to "nofile".
|
7
|
50
|
|
51 ==============================================================================
|
|
52 NEW FEATURES *new-7*
|
|
53
|
|
54 New data types *new-data-types*
|
|
55 --------------
|
|
56
|
|
57 In Vim scripts the following types have been added:
|
|
58
|
|
59 list ordered list of items
|
|
60 dictionary associative array of items
|
|
61 function reference to a function
|
|
62
|
|
63 Many functions and commands have been added to support the new types.
|
|
64
|
11
|
65 NOT IMPLEMENTED YET!
|
|
66
|
|
67
|
14
|
68 KDE support *new-KDE*
|
11
|
69 -----------
|
|
70
|
|
71 Kvim is the KDE version of Vim. It uses the Qt toolkit. See |KVim|.
|
|
72 (Thomas Capricelli, Philippe Fremy, Mickael Marchand, Mark Westcott, et al.)
|
|
73
|
7
|
74
|
14
|
75 MzScheme interface *new-MzScheme*
|
|
76 ------------------
|
|
77
|
|
78 The MzScheme interpreter is supported. |MzScheme|
|
|
79 The |:mzscheme| command can be used to execute MzScheme commands.
|
|
80 The |:mzfile| command can be used to execute an MzScheme script file.
|
|
81
|
|
82
|
7
|
83 Various new items *new-items-7*
|
|
84 -----------------
|
|
85
|
|
86 Normal mode commands: ~
|
|
87
|
12
|
88 a", a' and a` New text objects to select quoted strings. |a'|
|
|
89 i", i' and i' (Taro Muraoka)
|
7
|
90
|
|
91 Options: ~
|
|
92
|
12
|
93 'completefunc' The name of a function used for user-specified Insert
|
|
94 mode completion. CTRL-X CTRL-U can be used in Insert
|
|
95 mode to do any kind of completion. (Taro Muraoka)
|
|
96 'quoteescape' Characters used to escape quotes inside a string.
|
|
97 Used for the a", a' and a` text objects. |a'|
|
13
|
98 'numberwidth' Minimal width of the space used for the 'number'
|
|
99 option. (Emmanuel Renieris)
|
14
|
100 'mzquantum' Time in msec to schedule MzScheme threads.
|
|
101
|
7
|
102
|
|
103 Ex commands: ~
|
|
104
|
11
|
105 Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
|
|
106
|
14
|
107 :startreplace Start Replace mode. (Charles Campbell)
|
|
108
|
|
109 :0file Removes the name of the buffer. (Charles Campbell)
|
|
110
|
7
|
111
|
|
112 New functions: ~
|
|
113
|
|
114
|
|
115 New autocommand events: ~
|
|
116
|
11
|
117 InsertEnter starting Insert or Replace mode
|
|
118 InsertChange going from Insert to Replace mode or back
|
|
119 InsertLeave leaving Insert or Replace mode
|
|
120
|
12
|
121 ColorScheme after loading a color scheme
|
7
|
122
|
12
|
123
|
|
124 New Syntax/Indent/FTplugin files: ~
|
|
125
|
|
126 MuPAD source syntax, indent and ftplugin. (Dave Silvia)
|
|
127
|
7
|
128
|
10
|
129 Others: ~
|
|
130
|
|
131 Mac: Add the selection type to the clipboard, so that Block, line and
|
|
132 character selections can be used between two Vims. (Eckehard Berns)
|
|
133 Also fixes the problem that setting 'clipboard' to "unnamed" breaks using
|
|
134 "yyp".
|
7
|
135
|
13
|
136 Mac: GUI font selector. (Peter "Rain Dog" Cucka)
|
|
137
|
11
|
138 The netrw plugin now also supports viewing a directory, when "scp://" is used.
|
|
139 Deleting and renaming files is possible. (Charles Campbell)
|
|
140
|
7
|
141 ==============================================================================
|
|
142 IMPROVEMENTS *improvements-7*
|
|
143
|
10
|
144 ":helpgrep" accepts a language specifier after the pattern: "pat@it".
|
|
145
|
|
146 ":breakadd here" and ":breakdel here" can be used to set or delete a
|
|
147 breakpoint at the cursor.
|
|
148
|
11
|
149 The tutor was updated to make it simpler to use and added text to explain a
|
|
150 few more important commands. Used ideas from Gabriel Zachmann.
|
7
|
151
|
12
|
152 Unix: When libcall() fails obtain an error message with dlerror() and display
|
|
153 it. (Johannes Zellner)
|
|
154
|
13
|
155 Added "nbsp" in 'listchars'. (David Blanchet)
|
|
156
|
14
|
157 For lisp indenting and matching parenthesis: (Sergey Khorev)
|
|
158 - square brackets are recognized properly
|
|
159 - #\(, #\), #\[ and #\] are recognized as character literals
|
|
160 - Lisp line comments (delimited by semicolon) are recognized
|
|
161
|
7
|
162 ==============================================================================
|
|
163 COMPILE TIME CHANGES *compile-changes-7*
|
|
164
|
|
165
|
|
166 ==============================================================================
|
|
167 BUG FIXES *bug-fixes-7*
|
|
168
|
10
|
169 When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
|
|
170 instead of "copy". When 'printdevice' was empty the copy command did not
|
|
171 work. Use "LPT1" then.
|
|
172
|
|
173 The GTK font dialog uses a font size zero when the font name doesn't include a
|
|
174 size. Use a default size of 10.
|
|
175
|
|
176 This example in the documentation didn't work:
|
|
177 :e `=foo . ".c" `
|
|
178 Skip over the expression in `=expr` when looking for comments, |, % and #.
|
|
179
|
|
180 When ":helpgrep" doesn't find anything there is no error message.
|
|
181
|
|
182 "L" and "H" did not take closed folds into account.
|
|
183
|
|
184 Win32: The "-P title" argument stopped at the first title that matched, even
|
|
185 when it doesn't support MDI.
|
|
186
|
|
187 Mac GUI: CTRL-^ and CTRL-@ did not work.
|
|
188
|
|
189 "2daw" on "word." at the end of a line didn't include the preceding white
|
|
190 space.
|
|
191
|
|
192 Win32: Using FindExecutable() doesn't work to find a program. Use
|
|
193 SearchPath() instead. For executable() use $PATHEXT when the program searched
|
|
194 for doesn't have an extension.
|
|
195
|
|
196 When 'virtualedit' is set, moving the cursor up after appending a character
|
|
197 may move it to a different column. Was caused by auto-formatting moving the
|
|
198 cursor and not putting it back where it was.
|
|
199
|
|
200 When indent was added automatically and then moving the cursor, the indent was
|
|
201 not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
|
|
202 to make it work the old way.
|
|
203
|
|
204 When <Space> is mapped to something that starts with a space, typing <Space>
|
|
205 does not expand abbreviations. Only disable expanding abbreviations when a
|
|
206 mapping is not remapped, not when the RHS starts with the LHS.
|
|
207
|
|
208 When opening a command-line window, 'textwidth' gets set to 78 by the Vim
|
|
209 filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
|
|
210
|
|
211 After using cursor(line, col) moving up/down doesn't keep the same column.
|
|
212
|
|
213 Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
|
|
214 fields. (Walter Briscoe)
|
7
|
215
|
11
|
216 On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
|
|
217 Michele)
|
|
218
|
14
|
219 Printing with PostScript may keep the printer waiting for more. Append a
|
|
220 CTRL-D to the printer output. (Mike Williams)
|
|
221
|
7
|
222 vim:tw=78:ts=8:ft=help:norl:
|