Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 1 | *version7.txt* For Vim version 7.0aa. Last change: 2004 Jul 03 |
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| |
| 21 | Various new items |new-items-7| |
| 22 | |
| 23 | IMPROVEMENTS |improvements-7| |
| 24 | |
| 25 | COMPILE TIME CHANGES |compile-changes-7| |
| 26 | |
| 27 | BUG FIXES |bug-fixes-7| |
| 28 | |
| 29 | ============================================================================== |
| 30 | INCOMPATIBLE CHANGES *incompatible-7* |
| 31 | |
| 32 | These changes are incompatible with previous releases. Check this list if you |
| 33 | run into a problem when upgrading from Vim 6.x to 7.0 |
| 34 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 35 | ":helpgrep" now uses a help window to display a match. |
| 36 | |
| 37 | |
| 38 | Minor incompatibilities: |
| 39 | |
| 40 | For 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 | |
| 45 | Removed the old and incomplete "VimBuddy" code. |
| 46 | |
| 47 | Buffers without a name report "No Name" instead of "No File". It was |
| 48 | confusing for buffers with a name and 'buftype' set to "nofile". |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 49 | |
| 50 | ============================================================================== |
| 51 | NEW FEATURES *new-7* |
| 52 | |
| 53 | New data types *new-data-types* |
| 54 | -------------- |
| 55 | |
| 56 | In 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 | |
| 62 | Many functions and commands have been added to support the new types. |
| 63 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 64 | NOT IMPLEMENTED YET! |
| 65 | |
| 66 | |
| 67 | KDE support *new-kde* |
| 68 | ----------- |
| 69 | |
| 70 | Kvim 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 73 | |
| 74 | Various new items *new-items-7* |
| 75 | ----------------- |
| 76 | |
| 77 | Normal mode commands: ~ |
| 78 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 79 | a", a' and a` New text objects to select quoted strings. |a'| |
| 80 | i", i' and i' (Taro Muraoka) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 81 | |
| 82 | Options: ~ |
| 83 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 84 | '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 Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 89 | 'numberwidth' Minimal width of the space used for the 'number' |
| 90 | option. (Emmanuel Renieris) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 91 | |
| 92 | Ex commands: ~ |
| 93 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 94 | Win32: The ":winpos" command now also works in the console. (Vipin Aravind) |
| 95 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 96 | |
| 97 | New functions: ~ |
| 98 | |
| 99 | |
| 100 | New autocommand events: ~ |
| 101 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 102 | InsertEnter starting Insert or Replace mode |
| 103 | InsertChange going from Insert to Replace mode or back |
| 104 | InsertLeave leaving Insert or Replace mode |
| 105 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 106 | ColorScheme after loading a color scheme |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 107 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 108 | |
| 109 | New Syntax/Indent/FTplugin files: ~ |
| 110 | |
| 111 | MuPAD source syntax, indent and ftplugin. (Dave Silvia) |
| 112 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 113 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 114 | Others: ~ |
| 115 | |
| 116 | Mac: Add the selection type to the clipboard, so that Block, line and |
| 117 | character selections can be used between two Vims. (Eckehard Berns) |
| 118 | Also fixes the problem that setting 'clipboard' to "unnamed" breaks using |
| 119 | "yyp". |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 120 | |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 121 | Mac: GUI font selector. (Peter "Rain Dog" Cucka) |
| 122 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 123 | The netrw plugin now also supports viewing a directory, when "scp://" is used. |
| 124 | Deleting and renaming files is possible. (Charles Campbell) |
| 125 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 126 | ============================================================================== |
| 127 | IMPROVEMENTS *improvements-7* |
| 128 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 129 | ":helpgrep" accepts a language specifier after the pattern: "pat@it". |
| 130 | |
| 131 | ":breakadd here" and ":breakdel here" can be used to set or delete a |
| 132 | breakpoint at the cursor. |
| 133 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 134 | The tutor was updated to make it simpler to use and added text to explain a |
| 135 | few more important commands. Used ideas from Gabriel Zachmann. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 136 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 137 | Unix: When libcall() fails obtain an error message with dlerror() and display |
| 138 | it. (Johannes Zellner) |
| 139 | |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 140 | Added "nbsp" in 'listchars'. (David Blanchet) |
| 141 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 142 | ============================================================================== |
| 143 | COMPILE TIME CHANGES *compile-changes-7* |
| 144 | |
| 145 | |
| 146 | ============================================================================== |
| 147 | BUG FIXES *bug-fixes-7* |
| 148 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 149 | When using PostScript printing on MS-DOS the default 'printexpr' used "lpr" |
| 150 | instead of "copy". When 'printdevice' was empty the copy command did not |
| 151 | work. Use "LPT1" then. |
| 152 | |
| 153 | The GTK font dialog uses a font size zero when the font name doesn't include a |
| 154 | size. Use a default size of 10. |
| 155 | |
| 156 | This example in the documentation didn't work: |
| 157 | :e `=foo . ".c" ` |
| 158 | Skip over the expression in `=expr` when looking for comments, |, % and #. |
| 159 | |
| 160 | When ":helpgrep" doesn't find anything there is no error message. |
| 161 | |
| 162 | "L" and "H" did not take closed folds into account. |
| 163 | |
| 164 | Win32: The "-P title" argument stopped at the first title that matched, even |
| 165 | when it doesn't support MDI. |
| 166 | |
| 167 | Mac GUI: CTRL-^ and CTRL-@ did not work. |
| 168 | |
| 169 | "2daw" on "word." at the end of a line didn't include the preceding white |
| 170 | space. |
| 171 | |
| 172 | Win32: Using FindExecutable() doesn't work to find a program. Use |
| 173 | SearchPath() instead. For executable() use $PATHEXT when the program searched |
| 174 | for doesn't have an extension. |
| 175 | |
| 176 | When 'virtualedit' is set, moving the cursor up after appending a character |
| 177 | may move it to a different column. Was caused by auto-formatting moving the |
| 178 | cursor and not putting it back where it was. |
| 179 | |
| 180 | When indent was added automatically and then moving the cursor, the indent was |
| 181 | not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used |
| 182 | to make it work the old way. |
| 183 | |
| 184 | When <Space> is mapped to something that starts with a space, typing <Space> |
| 185 | does not expand abbreviations. Only disable expanding abbreviations when a |
| 186 | mapping is not remapped, not when the RHS starts with the LHS. |
| 187 | |
| 188 | When opening a command-line window, 'textwidth' gets set to 78 by the Vim |
| 189 | filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken. |
| 190 | |
| 191 | After using cursor(line, col) moving up/down doesn't keep the same column. |
| 192 | |
| 193 | Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart |
| 194 | fields. (Walter Briscoe) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 195 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 196 | On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De |
| 197 | Michele) |
| 198 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 199 | vim:tw=78:ts=8:ft=help:norl: |