Bram Moolenaar | b7d6e72 | 2005-01-09 21:22:45 +0000 | [diff] [blame] | 1 | *version7.txt* For Vim version 7.0aa. Last change: 2005 Jan 09 |
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 | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 22 | Translated manual pages |new-manpage-trans| |
Bram Moolenaar | 8fc061c | 2004-12-29 21:03:02 +0000 | [diff] [blame] | 23 | Internal grep |new-vimgrep| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 24 | Various new items |new-items-7| |
| 25 | |
| 26 | IMPROVEMENTS |improvements-7| |
| 27 | |
| 28 | COMPILE TIME CHANGES |compile-changes-7| |
| 29 | |
| 30 | BUG FIXES |bug-fixes-7| |
| 31 | |
| 32 | ============================================================================== |
| 33 | INCOMPATIBLE CHANGES *incompatible-7* |
| 34 | |
| 35 | These changes are incompatible with previous releases. Check this list if you |
| 36 | run into a problem when upgrading from Vim 6.x to 7.0 |
| 37 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 38 | ":helpgrep" now uses a help window to display a match. |
| 39 | |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 40 | In an argument list double quotes could be used to include spaces in a file |
| 41 | name. This caused a difference between ":edit" and ":next" for escaping |
| 42 | double quotes and it is incompatible with some versions of Vi. |
| 43 | Command Vim 6.x file name Vim 7.x file name ~ |
| 44 | :edit foo\"888 'foo"888' 'foo"888' |
| 45 | :next foo\"888 'foo888' 'foo"888' |
| 46 | :next a\"b c\"d 'ab cd' 'a"b' and 'c"d' |
| 47 | |
| 48 | A ":write file" command no longer resets the 'modified' flag of the buffer, |
| 49 | unless the '+' flag is in 'cpoptions' |cpo-+|. This was illogical, since the |
| 50 | buffer is still modified compared to the original file. And when undoing |
| 51 | all changes the file would actually be marked modified. It does mean that |
| 52 | ":quit" fails now. |
| 53 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 54 | |
| 55 | Minor incompatibilities: |
| 56 | |
| 57 | For filetype detection: For many types, instead of ~/.dir/filename use |
| 58 | */.dir/filename, so that it also works for other user's files. |
| 59 | |
| 60 | ":0verbose" now sets 'verbose' to zero instead of one. |
| 61 | |
| 62 | Removed the old and incomplete "VimBuddy" code. |
| 63 | |
| 64 | Buffers without a name report "No Name" instead of "No File". It was |
| 65 | confusing for buffers with a name and 'buftype' set to "nofile". |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 66 | |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 67 | When ":file xxx" is used in a buffer without a name, the alternate file name |
| 68 | isn't set. This avoids creating buffers without a name that are not useful. |
| 69 | |
| 70 | The "2html.vim" script now converts closed folds to HTML. This means the HTML |
| 71 | looks like its displayed, with the same folds open and closed. Use "zR" if no |
| 72 | folds should appear in the HTML. (partly by Carl Osterwisch) |
Bram Moolenaar | 47136d7 | 2004-10-12 20:02:24 +0000 | [diff] [blame] | 73 | Diff mode now is also converted as it is displayed. |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 74 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 75 | Win32: The effect of the <F10> key depended on 'winaltkeys'. Now it depends |
| 76 | on whether <F10> has been mapped or not. This allows mapping <F10> without |
| 77 | changing 'winaltkeys'. |
| 78 | |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 79 | When using CTRL-A on "08" it became "018", which is illogical. Now it becomes |
| 80 | "9". The leading zero(s) is(are) removed to avoid the number becoming octal |
| 81 | after incrementing "009" to "010". |
| 82 | |
| 83 | When 'encoding' is set to a Unicode encoding, the value for 'fileencodings' |
| 84 | now includes "default" before "latin1". This means that for files with 8-bit |
| 85 | encodings the default is to use the encoding specified by the environment, if |
| 86 | possible. Previously latin1 would always be used, which is wrong in a |
| 87 | non-latin1 environment, such as Russian. |
| 88 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 89 | ============================================================================== |
| 90 | NEW FEATURES *new-7* |
| 91 | |
| 92 | New data types *new-data-types* |
| 93 | -------------- |
| 94 | |
| 95 | In Vim scripts the following types have been added: |
| 96 | |
| 97 | list ordered list of items |
| 98 | dictionary associative array of items |
| 99 | function reference to a function |
| 100 | |
| 101 | Many functions and commands have been added to support the new types. |
| 102 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 103 | NOT IMPLEMENTED YET! |
| 104 | |
| 105 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 106 | KDE support *new-KDE* |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 107 | ----------- |
| 108 | |
| 109 | Kvim is the KDE version of Vim. It uses the Qt toolkit. See |KVim|. |
| 110 | (Thomas Capricelli, Philippe Fremy, Mickael Marchand, Mark Westcott, et al.) |
| 111 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 112 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 113 | MzScheme interface *new-MzScheme* |
| 114 | ------------------ |
| 115 | |
| 116 | The MzScheme interpreter is supported. |MzScheme| |
| 117 | The |:mzscheme| command can be used to execute MzScheme commands. |
| 118 | The |:mzfile| command can be used to execute an MzScheme script file. |
| 119 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 120 | Printing multi-byte text *new-print-multi-byte* |
| 121 | ------------------ |
| 122 | |
| 123 | The |:hardcopy| command now supports printing multi-byte characters. |
| 124 | The 'printmbcharset' and 'printmbfont' options are used for this. |
| 125 | Also see |postscript-cjk-printing|. (Mike Williams) |
| 126 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 127 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 128 | Translated manual pages *new-manpage-trans* |
| 129 | ----------------------- |
| 130 | |
| 131 | The manual page of Vim and associated programs is now also available in |
| 132 | Italian (translated by Antonio Colombo). More languages will follow. |
| 133 | |
Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame] | 134 | The Unix Makefile installs the Italian manual pages in .../man/it/man1/. |
| 135 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 136 | |
Bram Moolenaar | 8fc061c | 2004-12-29 21:03:02 +0000 | [diff] [blame] | 137 | Internal grep *new-vimgrep* |
| 138 | ------------- |
| 139 | |
| 140 | The ":vimgrep" command can be used to search for a pattern in a list of files. |
| 141 | This is like the ":grep" command, but no external program is used. Besides |
| 142 | better portability, handling of different file encodings and using multi-line |
| 143 | patterns, this also allows grepping in compressed and remote files. |
| 144 | |:vimgrep|. |
| 145 | |
| 146 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 147 | Various new items *new-items-7* |
| 148 | ----------------- |
| 149 | |
| 150 | Normal mode commands: ~ |
| 151 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 152 | a", a' and a` New text objects to select quoted strings. |a'| |
| 153 | i", i' and i' (Taro Muraoka) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 154 | |
| 155 | Options: ~ |
| 156 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 157 | 'completefunc' The name of a function used for user-specified Insert |
| 158 | mode completion. CTRL-X CTRL-U can be used in Insert |
| 159 | mode to do any kind of completion. (Taro Muraoka) |
| 160 | 'quoteescape' Characters used to escape quotes inside a string. |
| 161 | Used for the a", a' and a` text objects. |a'| |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame] | 162 | 'numberwidth' Minimal width of the space used for the 'number' |
| 163 | option. (Emmanuel Renieris) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 164 | 'mzquantum' Time in msec to schedule MzScheme threads. |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 165 | 'printmbcharset' CJK character set to be used for :hardcopy |
| 166 | 'printmbfont' font names to be used for CJK output of :hardcopy |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 167 | 'fsync' Whether fsync() is called after writing a file. |
| 168 | (Ciaran McCreesh) |
Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame] | 169 | 'wildoptions' "tagfile" value enables listing the file name of |
| 170 | matching tags for CTRL-D command line completion. |
| 171 | (based on an idea from Yegappan Lakshmanan) |
Bram Moolenaar | 86b6835 | 2004-12-27 21:59:20 +0000 | [diff] [blame] | 172 | 'formatlistpat' pattern to recognize a numbered list for formatting. |
| 173 | (idea by Hugo Haas) |
| 174 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 175 | |
| 176 | Ex commands: ~ |
| 177 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 178 | Win32: The ":winpos" command now also works in the console. (Vipin Aravind) |
| 179 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 180 | |:startreplace| Start Replace mode. (Charles Campbell) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 181 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 182 | |:0file| Removes the name of the buffer. (Charles Campbell) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 183 | |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 184 | |:diffoff| Switch off diff mode in the current window or in all |
| 185 | windows. |
| 186 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 187 | |:keepalt| Do not change the alternate file. |
| 188 | |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 189 | |:delmarks| Delete marks. |
| 190 | |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 191 | |:sandbox| Command modifier: execute the argument in the sandbox. |
| 192 | |
Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame] | 193 | |:exusage| Help for Ex commands (Nvi command). |
| 194 | |
| 195 | |:viusage| Help for Vi commands (Nvi command). |
| 196 | |
Bram Moolenaar | 86b6835 | 2004-12-27 21:59:20 +0000 | [diff] [blame] | 197 | |:cbuffer| Read error lines from a buffer. (partly by Yegappan |
| 198 | Lakshmanan) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 199 | |
| 200 | New functions: ~ |
| 201 | |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 202 | browsedir(title, init) |browsedir()| Dialog to select a directory. |
Bram Moolenaar | 89cb5e0 | 2004-07-19 20:55:54 +0000 | [diff] [blame] | 203 | byteidx(expr, nr) |byteidx()| Index of a character. (Ilya Sher) |
| 204 | finddir(name) |finddir()| Find a directory in 'path'. |
| 205 | findfile(name) |findfile()| Find a file in 'path'. (Johannes |
| 206 | Zellner) |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 207 | foldtextresult(lnum) |foldtextresult()| The text displayed for a closed |
| 208 | fold at line "lnum". |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 209 | getfperm(fname) |getfperm()| Get file permission string. (Nikolai |
| 210 | Weibull) |
| 211 | getftype(fname) |getftype()| Get type of file. (Nikolai Weibull) |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 212 | repeat(expr, count) |repeat()| Repeat "expr" "count" times. |
| 213 | (Christophe Poucet) |
| 214 | tr(expr, from, to) |tr()| Translate characters. (Ron Aaron) |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 215 | system(cmd, input) |system()| Filters {input} through a shell |
| 216 | command. |
Bram Moolenaar | 46c9c73 | 2004-12-12 11:37:09 +0000 | [diff] [blame] | 217 | getfontname([name]) |getfontname()| Get actual font name being used. |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 218 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 219 | |
| 220 | New autocommand events: ~ |
| 221 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 222 | |InsertEnter| starting Insert or Replace mode |
| 223 | |InsertChange| going from Insert to Replace mode or back |
| 224 | |InsertLeave| leaving Insert or Replace mode |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 225 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 226 | |ColorScheme| after loading a color scheme |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 227 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 228 | |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 229 | New items in search patterns: ~ |
| 230 | |/\%d| \%d123 search for character with decimal number |
| 231 | |/\]| [\d123] idem, in a colletion |
| 232 | |/\%o| \%o103 search for character with octal number |
| 233 | |/\]| [\o1o3] idem, in a colletion |
| 234 | |/\%x| \%x1a search for character with 2 pos. hex number |
| 235 | |/\]| [\x1a] idem, in a colletion |
| 236 | |/\%u| \%u12ab search for character with 4 pos. hex number |
| 237 | |/\]| [\u12ab] idem, in a colletion |
| 238 | |/\%U| \%U1234abcd search for character with 8 pos. hex number |
| 239 | |/\]| [\U1234abcd] idem, in a colletion |
| 240 | (The above partly by Ciaran McCreesh) |
| 241 | |
| 242 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 243 | New Syntax/Indent/FTplugin files: ~ |
| 244 | |
| 245 | MuPAD source syntax, indent and ftplugin. (Dave Silvia) |
| 246 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 247 | ABAB/4 syntax file. (Marius van Wyk) |
| 248 | |
| 249 | SQL-Informix syntax file. (Dean L Hill) |
| 250 | |
Bram Moolenaar | 15d0a8c | 2004-09-06 17:44:46 +0000 | [diff] [blame] | 251 | PHP compiler plugin. (Doug Kearns) |
| 252 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 253 | Sive syntax file. (Nikolai Weibull) |
| 254 | |
Bram Moolenaar | 15d0a8c | 2004-09-06 17:44:46 +0000 | [diff] [blame] | 255 | |
Bram Moolenaar | 47136d7 | 2004-10-12 20:02:24 +0000 | [diff] [blame] | 256 | New Keymaps: ~ |
| 257 | |
| 258 | Sinhala (Sri Lanka) (Harshula Jayasuriya) |
| 259 | |
| 260 | |
Bram Moolenaar | 15d0a8c | 2004-09-06 17:44:46 +0000 | [diff] [blame] | 261 | New message translations: ~ |
| 262 | |
| 263 | The Ukranian messages are now also available in cp1251. |
| 264 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 265 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 266 | Others: ~ |
| 267 | |
| 268 | Mac: Add the selection type to the clipboard, so that Block, line and |
| 269 | character selections can be used between two Vims. (Eckehard Berns) |
| 270 | Also fixes the problem that setting 'clipboard' to "unnamed" breaks using |
| 271 | "yyp". |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 272 | |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame] | 273 | Mac: GUI font selector. (Peter "Rain Dog" Cucka) |
| 274 | |
Bram Moolenaar | 2079a60 | 2005-01-04 21:43:22 +0000 | [diff] [blame] | 275 | GUI font selector for Motif. (Marcin Dalecki) |
Bram Moolenaar | 567e4de | 2004-12-31 21:01:02 +0000 | [diff] [blame] | 276 | |
Bram Moolenaar | 2079a60 | 2005-01-04 21:43:22 +0000 | [diff] [blame] | 277 | Mnemonics for the Motif find/replace dialog. (Marcin Dalecki) |
Bram Moolenaar | 567e4de | 2004-12-31 21:01:02 +0000 | [diff] [blame] | 278 | |
Bram Moolenaar | 46c9c73 | 2004-12-12 11:37:09 +0000 | [diff] [blame] | 279 | Mac: better integration with Xcode. Post a fake mouse-up event after the odoc |
| 280 | event and the drag receive handler to work around a stall after Vim loads a |
| 281 | file. Fixed an off-by-one line number error. (Da Woon Jung) |
| 282 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 283 | The netrw plugin now also supports viewing a directory, when "scp://" is used. |
| 284 | Deleting and renaming files is possible. (Charles Campbell) |
| 285 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 286 | Added the t_SI and t_EI escape sequences for starting and ending Insert mode. |
| 287 | To be used to set the cursor shape to a bar or a block. No default values, |
| 288 | they are not supported by termcap/terminfo. |
| 289 | |
Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame] | 290 | Autocommands can be defined local to a buffer. This means they will also work |
| 291 | when the buffer does not have a name or no specific name. See |
| 292 | |autocmd-buflocal|. (Yakov Lerner) |
| 293 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 294 | ============================================================================== |
| 295 | IMPROVEMENTS *improvements-7* |
| 296 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 297 | ":helpgrep" accepts a language specifier after the pattern: "pat@it". |
| 298 | |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 299 | Move the help for printing to a separate help file. It's quite a lot now. |
| 300 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 301 | ":breakadd here" and ":breakdel here" can be used to set or delete a |
| 302 | breakpoint at the cursor. |
| 303 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 304 | The tutor was updated to make it simpler to use and added text to explain a |
| 305 | few more important commands. Used ideas from Gabriel Zachmann. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 306 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 307 | Unix: When libcall() fails obtain an error message with dlerror() and display |
| 308 | it. (Johannes Zellner) |
| 309 | |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame] | 310 | Added "nbsp" in 'listchars'. (David Blanchet) |
| 311 | |
Bram Moolenaar | 21cf823 | 2004-07-16 20:18:37 +0000 | [diff] [blame] | 312 | Added the "acwrite" value for the 'buftype' option. This is for a buffer that |
| 313 | doesn not have a name that refers to a file and is written with BufWriteCmd |
| 314 | autocommands. |
| 315 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 316 | For lisp indenting and matching parenthesis: (Sergey Khorev) |
| 317 | - square brackets are recognized properly |
| 318 | - #\(, #\), #\[ and #\] are recognized as character literals |
| 319 | - Lisp line comments (delimited by semicolon) are recognized |
| 320 | |
Bram Moolenaar | 89cb5e0 | 2004-07-19 20:55:54 +0000 | [diff] [blame] | 321 | Added the "count" argument to match(), matchend() and matchstr(). (Ilya Sher) |
| 322 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 323 | winnr() takes an optional "$" and "#" arguments. (Nikolai Weibull, Yegappan |
| 324 | Lakshmanan) |
| 325 | |
| 326 | Added 'n' flag to search(): don't move the cursor. (Nikolai Weibull) |
| 327 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 328 | When uncompressing fails in the gzip plugin, give an error message but don't |
| 329 | delete the raw text. Helps if the file has a .gz extension but is not |
| 330 | actually compressed. (Andrew Pimlott) |
| 331 | |
| 332 | When C, C++ or IDL syntax is used, may additionally load doxygen syntax. |
| 333 | Also support setting the filetype to "cdoxygen" for C plus doxygen syntax. |
| 334 | (Michael Geddes) |
| 335 | |
| 336 | The ":registers" command now displays multi-byte characters properly. |
| 337 | |
| 338 | VMS: In the usage message mention that a slash can be used to make a flag |
| 339 | upper case. Add color support to the builtin vt320 terminal codes. |
| 340 | (Zoltan Arpadffy) |
| 341 | |
Bram Moolenaar | 15d0a8c | 2004-09-06 17:44:46 +0000 | [diff] [blame] | 342 | For the '%' item in 'viminfo', allow a number to set a maximum for the number |
| 343 | of buffers. |
| 344 | |
Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame] | 345 | The 'statusline' option can be local to the window, so that each window can |
| 346 | have a different value. (partly by Yegappan Lakshmanan) |
| 347 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 348 | When a file looks like a shell script, check for an "exec" command that starts |
| 349 | the tcl interpreter. (suggested by Alexios Zavras) |
| 350 | |
| 351 | Support conversion between utf-8 and latin9 (iso-8859-15) internally, so that |
| 352 | digraphs still work when iconv is not available. |
| 353 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 354 | When a session file is loaded while editing an unnamed, empty buffer that |
| 355 | buffer is wiped out. Avoids that there is an unused buffer in the buffer |
| 356 | list. |
| 357 | |
| 358 | Win32: When libintl.dll supports bind_textdomain_codeset(), use it. |
| 359 | (NAKADAIRA Yukihiro) |
| 360 | |
| 361 | When foldtext() finds no text after removing the comment leader, use the |
| 362 | second line of the fold. Helps for C-style /* */ comments where the first |
| 363 | line is just "/*". |
| 364 | |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 365 | When editing the same file from two systems (e.g., Unix and MS-Windows) there |
| 366 | mostly was no warning for an existing swap file, because the name of the |
| 367 | edited file differs (e.g., y:\dir\file vs /home/me/dir/file). Added a flag to |
| 368 | the swap file to indicate it is in the same directory as the edited file. The |
| 369 | used path then doesn't matter and the check for editing the same file is much |
| 370 | more reliable. |
| 371 | |
| 372 | Client-server communication now supports 'encoding'. When setting 'encoding' |
| 373 | in a Vim server to "utf-8", and using "vim --remote fname" in a console, |
| 374 | "fname" is converted from the console encoding to utf-8. Also allows Vims |
| 375 | with different 'encoding' settings to exchange messages. |
| 376 | |
Bram Moolenaar | 86b6835 | 2004-12-27 21:59:20 +0000 | [diff] [blame] | 377 | Internal: Changed ga_room into ga_maxlen, so that it doesn't need to be |
| 378 | incremented/decremented each time. |
| 379 | |
Bram Moolenaar | 2079a60 | 2005-01-04 21:43:22 +0000 | [diff] [blame] | 380 | Included a few improvements for Motif from Marcin Dalecki. Draw label |
Bram Moolenaar | 567e4de | 2004-12-31 21:01:02 +0000 | [diff] [blame] | 381 | contents ourselves to make them handle fonts in a way configurable by Vim and |
| 382 | a bit less dependent on the X11 font management. |
| 383 | |
Bram Moolenaar | 49cd957 | 2005-01-03 21:06:01 +0000 | [diff] [blame] | 384 | When a register is empty it is not stored in the viminfo file. |
| 385 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 386 | ============================================================================== |
| 387 | COMPILE TIME CHANGES *compile-changes-7* |
| 388 | |
Bram Moolenaar | 2079a60 | 2005-01-04 21:43:22 +0000 | [diff] [blame] | 389 | Dropped the support for the BeOS and Amiga GUI. They were not maintained and |
| 390 | probably didn't work. If you want to work on this: get the Vim 6.x version |
| 391 | and merge it back in. |
| 392 | |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 393 | Mac: "make" now creates the Vim.app directory and "make install" copies it to |
| 394 | its final destination. (Raf) |
| 395 | |
| 396 | Mac: Made it possible to compile with Motif, Athena or GTK without tricks and |
| 397 | still being able to use the MacRoman conversion. Added the os_mac_conv.c |
| 398 | file. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 399 | |
| 400 | ============================================================================== |
| 401 | BUG FIXES *bug-fixes-7* |
| 402 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 403 | When using PostScript printing on MS-DOS the default 'printexpr' used "lpr" |
| 404 | instead of "copy". When 'printdevice' was empty the copy command did not |
| 405 | work. Use "LPT1" then. |
| 406 | |
| 407 | The GTK font dialog uses a font size zero when the font name doesn't include a |
| 408 | size. Use a default size of 10. |
| 409 | |
| 410 | This example in the documentation didn't work: |
| 411 | :e `=foo . ".c" ` |
| 412 | Skip over the expression in `=expr` when looking for comments, |, % and #. |
| 413 | |
| 414 | When ":helpgrep" doesn't find anything there is no error message. |
| 415 | |
| 416 | "L" and "H" did not take closed folds into account. |
| 417 | |
| 418 | Win32: The "-P title" argument stopped at the first title that matched, even |
| 419 | when it doesn't support MDI. |
| 420 | |
| 421 | Mac GUI: CTRL-^ and CTRL-@ did not work. |
| 422 | |
| 423 | "2daw" on "word." at the end of a line didn't include the preceding white |
| 424 | space. |
| 425 | |
| 426 | Win32: Using FindExecutable() doesn't work to find a program. Use |
| 427 | SearchPath() instead. For executable() use $PATHEXT when the program searched |
| 428 | for doesn't have an extension. |
| 429 | |
| 430 | When 'virtualedit' is set, moving the cursor up after appending a character |
| 431 | may move it to a different column. Was caused by auto-formatting moving the |
| 432 | cursor and not putting it back where it was. |
| 433 | |
| 434 | When indent was added automatically and then moving the cursor, the indent was |
| 435 | not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used |
| 436 | to make it work the old way. |
| 437 | |
Bram Moolenaar | f4b8e57 | 2004-06-24 15:53:16 +0000 | [diff] [blame] | 438 | When opening a command-line window, 'textwidth' gets set to 78 by the Vim |
| 439 | filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken. |
| 440 | |
| 441 | After using cursor(line, col) moving up/down doesn't keep the same column. |
| 442 | |
| 443 | Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart |
| 444 | fields. (Walter Briscoe) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 445 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 446 | On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De |
| 447 | Michele) |
| 448 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 449 | Printing with PostScript may keep the printer waiting for more. Append a |
| 450 | CTRL-D to the printer output. (Mike Williams) |
| 451 | |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 452 | When converting a string with a hex or octal number the leading '-' was |
| 453 | ignored. ":echo '-05' + 0" resulted in 5 instead of -5. |
| 454 | |
| 455 | Using "@:" to repeat a command line didn't work when it contains control |
| 456 | characters. |
| 457 | |
Bram Moolenaar | 21cf823 | 2004-07-16 20:18:37 +0000 | [diff] [blame] | 458 | When using file completion for a user command, it would not expand environment |
| 459 | variables like for a regular command with a file argument. |
| 460 | |
| 461 | 'cindent': When the argument of a #define looks like a C++ class the next line |
| 462 | is indented too much. |
| 463 | |
| 464 | When 'comments' includes multi-byte characters inserting the middle part and |
| 465 | alignment may go wrong. 'cindent' also suffers from this for right-aligned |
| 466 | items. |
| 467 | |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 468 | The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use |
| 469 | "cn" or "tw" as intended. |
| 470 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 471 | When 'bin' is set and 'eol' is not set then line2byte() added the line break |
| 472 | after the last line while it's not there. |
| 473 | |
| 474 | Using foldlevel() in a WinEnter autocommand may not work. Noticed when |
| 475 | resizing the GUI shell upon startup. |
| 476 | |
| 477 | Python: Using buffer.append(f.readlines()) didn't work. Allow appending a |
| 478 | string with a trailing newline. The newline is ignored. |
| 479 | |
Bram Moolenaar | 269ec65 | 2004-07-29 08:43:53 +0000 | [diff] [blame] | 480 | When using the ":saveas f2" command for buffer "f1", the Buffers menu would |
| 481 | contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre |
| 482 | and BufFilePost events for the alternate buffer that gets the old name. |
| 483 | |
Bram Moolenaar | d4755bb | 2004-09-02 19:12:26 +0000 | [diff] [blame] | 484 | strridx() did not work well when the needle is empty. (Ciaran McCreesh) |
| 485 | |
| 486 | GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives |
| 487 | just before it is invoked |
| 488 | |
| 489 | VMS: Occasionally CR characters were inserted in the file. Expansion of |
| 490 | environment variables was not correct. (Zoltan Arpadffy) |
| 491 | |
| 492 | UTF-8: When 'delcombine' is set "dw" only deleted the last combining character |
| 493 | from the first character of the word. |
| 494 | |
| 495 | When using ":sball" in an autocommand only the filetype in one buffer was |
| 496 | detected. Reset did_filetype in enter_buffer(). |
| 497 | |
| 498 | When using ":argdo" and the window already was at the first argument index, |
| 499 | but not actually editing it, the current buffer would be used instead. |
| 500 | |
Bram Moolenaar | 15d0a8c | 2004-09-06 17:44:46 +0000 | [diff] [blame] | 501 | When ":next dir/*" includes many matches, adding the names to the argument |
| 502 | list may take an awful lot of time and can't be interrupted. Allow |
| 503 | interrupting this. |
| 504 | |
| 505 | When editing a file that was already loaded in a buffer, modelines were not |
| 506 | used. Now window-local options in the modeline are set. Buffer-local options |
| 507 | and global options remain unmodified. |
| 508 | |
| 509 | Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the |
| 510 | command line with non-ASCII characters are not used correctly. Recode the |
| 511 | file names when 'encoding' is set, using the Unicode command line. |
| 512 | |
Bram Moolenaar | c0197e2 | 2004-09-13 20:26:32 +0000 | [diff] [blame] | 513 | Win32 console: When the default for 'encoding' ends up to be "latin1", the |
| 514 | default value of 'isprint' was wrong. |
| 515 | |
| 516 | When an error message is given while waiting for a character (e.g., when an |
| 517 | xterm reports the number of colors), the hit-enter prompt overwrote the last |
| 518 | line. Don't reset msg_didout in normal_cmd() for K_IGNORE. |
| 519 | |
Bram Moolenaar | 3fdfa4a | 2004-10-07 21:02:47 +0000 | [diff] [blame] | 520 | Mac GUI: Shift-Tab didn't work. |
| 521 | |
| 522 | When defining tooltip text, don't translate terminal codes, since it's not |
| 523 | going to be used like a command. |
| 524 | |
| 525 | GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a |
| 526 | GTK error. Invalid characters may appear when 'encoding' is changed. |
| 527 | |
| 528 | GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango. |
| 529 | |
| 530 | Win32: When 'encoding' is changed while starting up, use the Unicode command |
| 531 | line to convert the file arguments to 'encoding'. Both for the GUI and the |
| 532 | console version. |
| 533 | |
| 534 | Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because |
| 535 | there is no codepage for latin9. Do our own conversion from latin9 to UCS2. |
| 536 | |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 537 | When two versions of GTK+ 2 are installed it was possible to use the header |
| 538 | files from one and the library from the other. Use GTK_LIBDIR to put the |
| 539 | directory for the library early in the link flags. |
| 540 | |
| 541 | With the GUI find/replace dialog a replace only worked if the pattern was |
| 542 | literal text. Now it works for any pattern. |
| 543 | |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 544 | When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still |
| 545 | cause equalizing window heights in the vertical direction. |
| 546 | |
| 547 | When ":emenu" is used in a startup script the command was put in the typeahead |
| 548 | buffer, causing a prompt for the crypt key to be messed up. |
| 549 | |
| 550 | Mac OS/X: The default for 'isprint' included characters 128-160, causes |
| 551 | problems for Terminal.app. |
| 552 | |
| 553 | When a syntax item with "containedin" is used, it may match in the start or |
| 554 | end of a region with a matchgroup, while this doesn't happen for a "contains" |
| 555 | argument. |
| 556 | |
| 557 | When a transparent syntax items matches in another item where the highlighting |
| 558 | has already stopped (because of a he= argument), the highlighting would come |
| 559 | back. |
| 560 | |
| 561 | When cscope is used to set the quickfix error list, it didn't get set if there |
| 562 | was only one match. (Sergey Khorev) |
| 563 | |
| 564 | When 'confirm' is set and using ":bdel" in a modified buffer, then selecting |
| 565 | "cancel", would still give an error message. |
| 566 | |
| 567 | The PopUp menu items that started Visual mode didn't work when not in Normal |
| 568 | mode. Switching between selecting a word and a line was not possible. |
| 569 | |
| 570 | Win32: The keypad decimal point always resulted in a '.', while on some |
| 571 | keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2). |
| 572 | |
| 573 | Removed unused function DisplayCompStringOpaque() from gui_w32.c |
| 574 | |
| 575 | In Visual mode there is not always an indication whether the line break is |
| 576 | selected or not. Highlight the character after the line when the line break |
| 577 | is included, e.g., after "v$o". |
| 578 | |
| 579 | GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a |
| 580 | GTK setting and do select the menu when <F10> isn't mapped. (David Necas) |
| 581 | |
| 582 | After "Y" '[ and '] were not at start/end of the yanked text. |
| 583 | |
| 584 | When a telnet connection is dropped Vim preserves files and exits. While |
| 585 | doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott |
Bram Moolenaar | 46c9c73 | 2004-12-12 11:37:09 +0000 | [diff] [blame] | 586 | Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to |
| 587 | handle. Added handle_signal(). |
| 588 | |
| 589 | When using "set laststatus=2 cmdheight=2" in the .gvimrc you may only get one |
| 590 | line for the cmdline. (Christian Robinson) Invoke command_height() after the |
| 591 | GUI has started up. |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 592 | |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 593 | When completing a file name on the command line backslashes are required for |
| 594 | white space. Was only done for a space, not for a Tab. |
| 595 | |
| 596 | When configure could not find a terminal library, compiling continued for a |
| 597 | long time before reporting the problem. Added a configure check for tgetent() |
| 598 | being found in a library. |
| 599 | |
| 600 | When the cursor is on the first char of the last line a ":g/pat/s///" command |
| 601 | may cause the cursor to be displayed below the text. |
| 602 | |
| 603 | Win32: Editing a file with non-ASCII characters doesn't work when 'encoding' |
| 604 | is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon) |
| 605 | |
| 606 | When recovering the 'fileformat' and 'fileencoding' were taken from the |
| 607 | original file instead of from the swapfile. When the file didn't exist, was |
| 608 | empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could |
| 609 | be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use |
| 610 | the values when recovering. |
| 611 | |
| 612 | ":bufdo g/something/p" overwrites each last printed text line with the file |
| 613 | message for the next buffer. Temporarily clear 'shortmess' to avoid that. |
| 614 | |
Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame] | 615 | Win32: Cannot edit a file starting with # with --remote. Do escape % and # |
| 616 | when building the ":drop" command. |
| 617 | |
Bram Moolenaar | 86b6835 | 2004-12-27 21:59:20 +0000 | [diff] [blame] | 618 | A comment or | just after a expresion-backtick argument was not recognized. |
| 619 | E.g. in :e `="foo"`"comment. |
| 620 | |
Bram Moolenaar | 567e4de | 2004-12-31 21:01:02 +0000 | [diff] [blame] | 621 | "(" does not stop at an empty sentence (single dot and white space) while ")" |
| 622 | does. Also breaks "das" on that dot. |
| 623 | |
| 624 | When doing "yy" with the cursor on a TAB the ruler could be wrong and "k" |
| 625 | moved the cursor to another column. |
| 626 | |
| 627 | When 'commentstring' is '"%s' and there is a double quote in the line a double |
| 628 | quote before the fold marker isn't removed in the text displayed for a closed |
| 629 | fold. |
| 630 | |
| 631 | In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line |
| 632 | break, resulting in "selected 202 of 201 bytes". |
| 633 | |
Bram Moolenaar | 2079a60 | 2005-01-04 21:43:22 +0000 | [diff] [blame] | 634 | Motif: fonts were not used for dialog components. (Marcin Dalecki) |
Bram Moolenaar | 567e4de | 2004-12-31 21:01:02 +0000 | [diff] [blame] | 635 | |
Bram Moolenaar | 49cd957 | 2005-01-03 21:06:01 +0000 | [diff] [blame] | 636 | Motif: After using a toolbar button the keyboard focus would be on the toolbar |
Bram Moolenaar | 2079a60 | 2005-01-04 21:43:22 +0000 | [diff] [blame] | 637 | (Lesstif problem). (Marcin Dalecki) |
Bram Moolenaar | 49cd957 | 2005-01-03 21:06:01 +0000 | [diff] [blame] | 638 | |
Bram Moolenaar | 1c2fda2 | 2005-01-02 11:43:19 +0000 | [diff] [blame] | 639 | When using "y<C-V>`x" where mark x is in the first column, the last line was |
| 640 | not included. |
| 641 | |
| 642 | Not all test scripts work properly on MS-Windows when checked out from CVS. |
| 643 | Use a Vim command to fix all fileformats to dos before executing the tests. |
| 644 | |
| 645 | When using ":new" and the file fits in the window, lines could still be above |
| 646 | the window. Now remove empty lines instead of keeping the relative position. |
| 647 | |
Bram Moolenaar | 3d60ec2 | 2005-01-05 22:19:46 +0000 | [diff] [blame] | 648 | Cmdline completion didn't work after ":let var1 var<Tab>". |
| 649 | |
Bram Moolenaar | b7d6e72 | 2005-01-09 21:22:45 +0000 | [diff] [blame] | 650 | When using ":startinsert" or ":startreplace" when already in Insert mode |
| 651 | (possible when using CTRL-R =), pressing Esc would directly restart Insert |
| 652 | mode. (Peter Winters) |
| 653 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 654 | vim:tw=78:ts=8:ft=help:norl: |