1*version7.txt* For Vim version 7.0aa. Last change: 2004 Jun 24 2 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 35":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". 49 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 64 65Various new items *new-items-7* 66----------------- 67 68Normal mode commands: ~ 69 70 71Options: ~ 72 73 74Ex commands: ~ 75 76 77New functions: ~ 78 79 80New autocommand events: ~ 81 82 83New Syntax files: ~ 84 85Others: ~ 86 87Mac: Add the selection type to the clipboard, so that Block, line and 88character selections can be used between two Vims. (Eckehard Berns) 89Also fixes the problem that setting 'clipboard' to "unnamed" breaks using 90"yyp". 91 92============================================================================== 93IMPROVEMENTS *improvements-7* 94 95":helpgrep" accepts a language specifier after the pattern: "pat@it". 96 97":breakadd here" and ":breakdel here" can be used to set or delete a 98breakpoint at the cursor. 99 100 101============================================================================== 102COMPILE TIME CHANGES *compile-changes-7* 103 104 105============================================================================== 106BUG FIXES *bug-fixes-7* 107 108When using PostScript printing on MS-DOS the default 'printexpr' used "lpr" 109instead of "copy". When 'printdevice' was empty the copy command did not 110work. Use "LPT1" then. 111 112The GTK font dialog uses a font size zero when the font name doesn't include a 113size. Use a default size of 10. 114 115This example in the documentation didn't work: 116 :e `=foo . ".c" ` 117Skip over the expression in `=expr` when looking for comments, |, % and #. 118 119When ":helpgrep" doesn't find anything there is no error message. 120 121"L" and "H" did not take closed folds into account. 122 123Win32: The "-P title" argument stopped at the first title that matched, even 124when it doesn't support MDI. 125 126Mac GUI: CTRL-^ and CTRL-@ did not work. 127 128"2daw" on "word." at the end of a line didn't include the preceding white 129space. 130 131Win32: Using FindExecutable() doesn't work to find a program. Use 132SearchPath() instead. For executable() use $PATHEXT when the program searched 133for doesn't have an extension. 134 135When 'virtualedit' is set, moving the cursor up after appending a character 136may move it to a different column. Was caused by auto-formatting moving the 137cursor and not putting it back where it was. 138 139When indent was added automatically and then moving the cursor, the indent was 140not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used 141to make it work the old way. 142 143When <Space> is mapped to something that starts with a space, typing <Space> 144does not expand abbreviations. Only disable expanding abbreviations when a 145mapping is not remapped, not when the RHS starts with the LHS. 146 147When opening a command-line window, 'textwidth' gets set to 78 by the Vim 148filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken. 149 150After using cursor(line, col) moving up/down doesn't keep the same column. 151 152Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart 153fields. (Walter Briscoe) 154 155 vim:tw=78:ts=8:ft=help:norl: 156