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