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