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