Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 1 | *version7.txt* For Vim version 7.0aa. Last change: 2004 Jul 05 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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| |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 21 | KDE support |new-KDE| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 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". |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 65 | NOT IMPLEMENTED YET! |
| 66 | |
| 67 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 68 | KDE support *new-KDE* |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 74 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame^] | 82 | Printing multi-byte text *new-print-multi-byte* |
| 83 | ------------------ |
| 84 | |
| 85 | The |:hardcopy| command now supports printing multi-byte characters. |
| 86 | The 'printmbcharset' and 'printmbfont' options are used for this. |
| 87 | Also see |postscript-cjk-printing|. (Mike Williams) |
| 88 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 89 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 90 | Various new items *new-items-7* |
| 91 | ----------------- |
| 92 | |
| 93 | Normal mode commands: ~ |
| 94 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 95 | a", a' and a` New text objects to select quoted strings. |a'| |
| 96 | i", i' and i' (Taro Muraoka) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 97 | |
| 98 | Options: ~ |
| 99 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 100 | 'completefunc' The name of a function used for user-specified Insert |
| 101 | mode completion. CTRL-X CTRL-U can be used in Insert |
| 102 | mode to do any kind of completion. (Taro Muraoka) |
| 103 | 'quoteescape' Characters used to escape quotes inside a string. |
| 104 | Used for the a", a' and a` text objects. |a'| |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame] | 105 | 'numberwidth' Minimal width of the space used for the 'number' |
| 106 | option. (Emmanuel Renieris) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 107 | 'mzquantum' Time in msec to schedule MzScheme threads. |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame^] | 108 | 'printmbcharset' CJK character set to be used for :hardcopy |
| 109 | 'printmbfont' font names to be used for CJK output of :hardcopy |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 110 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 111 | |
| 112 | Ex commands: ~ |
| 113 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 114 | Win32: The ":winpos" command now also works in the console. (Vipin Aravind) |
| 115 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame^] | 116 | |:startreplace| Start Replace mode. (Charles Campbell) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 117 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame^] | 118 | |:0file| Removes the name of the buffer. (Charles Campbell) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 119 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 120 | |
| 121 | New functions: ~ |
| 122 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame^] | 123 | tr(expr, from, to) |tr()| Translate characters. (Ron Aaron) |
| 124 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 125 | |
| 126 | New autocommand events: ~ |
| 127 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame^] | 128 | |InsertEnter| starting Insert or Replace mode |
| 129 | |InsertChange| going from Insert to Replace mode or back |
| 130 | |InsertLeave| leaving Insert or Replace mode |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 131 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame^] | 132 | |ColorScheme| after loading a color scheme |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 133 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 134 | |
| 135 | New Syntax/Indent/FTplugin files: ~ |
| 136 | |
| 137 | MuPAD source syntax, indent and ftplugin. (Dave Silvia) |
| 138 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 139 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 140 | Others: ~ |
| 141 | |
| 142 | Mac: Add the selection type to the clipboard, so that Block, line and |
| 143 | character selections can be used between two Vims. (Eckehard Berns) |
| 144 | Also fixes the problem that setting 'clipboard' to "unnamed" breaks using |
| 145 | "yyp". |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 146 | |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame] | 147 | Mac: GUI font selector. (Peter "Rain Dog" Cucka) |
| 148 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 149 | The netrw plugin now also supports viewing a directory, when "scp://" is used. |
| 150 | Deleting and renaming files is possible. (Charles Campbell) |
| 151 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 152 | ============================================================================== |
| 153 | IMPROVEMENTS *improvements-7* |
| 154 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 155 | ":helpgrep" accepts a language specifier after the pattern: "pat@it". |
| 156 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame^] | 157 | Move the help for printing to a separate help file. It's quite a lot now. |
| 158 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 159 | ":breakadd here" and ":breakdel here" can be used to set or delete a |
| 160 | breakpoint at the cursor. |
| 161 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 162 | The tutor was updated to make it simpler to use and added text to explain a |
| 163 | few more important commands. Used ideas from Gabriel Zachmann. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 164 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 165 | Unix: When libcall() fails obtain an error message with dlerror() and display |
| 166 | it. (Johannes Zellner) |
| 167 | |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame] | 168 | Added "nbsp" in 'listchars'. (David Blanchet) |
| 169 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 170 | For lisp indenting and matching parenthesis: (Sergey Khorev) |
| 171 | - square brackets are recognized properly |
| 172 | - #\(, #\), #\[ and #\] are recognized as character literals |
| 173 | - Lisp line comments (delimited by semicolon) are recognized |
| 174 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 175 | ============================================================================== |
| 176 | COMPILE TIME CHANGES *compile-changes-7* |
| 177 | |
| 178 | |
| 179 | ============================================================================== |
| 180 | BUG FIXES *bug-fixes-7* |
| 181 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 182 | When using PostScript printing on MS-DOS the default 'printexpr' used "lpr" |
| 183 | instead of "copy". When 'printdevice' was empty the copy command did not |
| 184 | work. Use "LPT1" then. |
| 185 | |
| 186 | The GTK font dialog uses a font size zero when the font name doesn't include a |
| 187 | size. Use a default size of 10. |
| 188 | |
| 189 | This example in the documentation didn't work: |
| 190 | :e `=foo . ".c" ` |
| 191 | Skip over the expression in `=expr` when looking for comments, |, % and #. |
| 192 | |
| 193 | When ":helpgrep" doesn't find anything there is no error message. |
| 194 | |
| 195 | "L" and "H" did not take closed folds into account. |
| 196 | |
| 197 | Win32: The "-P title" argument stopped at the first title that matched, even |
| 198 | when it doesn't support MDI. |
| 199 | |
| 200 | Mac GUI: CTRL-^ and CTRL-@ did not work. |
| 201 | |
| 202 | "2daw" on "word." at the end of a line didn't include the preceding white |
| 203 | space. |
| 204 | |
| 205 | Win32: Using FindExecutable() doesn't work to find a program. Use |
| 206 | SearchPath() instead. For executable() use $PATHEXT when the program searched |
| 207 | for doesn't have an extension. |
| 208 | |
| 209 | When 'virtualedit' is set, moving the cursor up after appending a character |
| 210 | may move it to a different column. Was caused by auto-formatting moving the |
| 211 | cursor and not putting it back where it was. |
| 212 | |
| 213 | When indent was added automatically and then moving the cursor, the indent was |
| 214 | not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used |
| 215 | to make it work the old way. |
| 216 | |
| 217 | When <Space> is mapped to something that starts with a space, typing <Space> |
| 218 | does not expand abbreviations. Only disable expanding abbreviations when a |
| 219 | mapping is not remapped, not when the RHS starts with the LHS. |
| 220 | |
| 221 | When opening a command-line window, 'textwidth' gets set to 78 by the Vim |
| 222 | filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken. |
| 223 | |
| 224 | After using cursor(line, col) moving up/down doesn't keep the same column. |
| 225 | |
| 226 | Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart |
| 227 | fields. (Walter Briscoe) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 228 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 229 | On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De |
| 230 | Michele) |
| 231 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 232 | Printing with PostScript may keep the printer waiting for more. Append a |
| 233 | CTRL-D to the printer output. (Mike Williams) |
| 234 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 235 | vim:tw=78:ts=8:ft=help:norl: |