From 59b7163b7388755a14c30f62be45d18e42951b88 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sun, 22 Mar 2009 21:03:33 +0100 Subject: [PATCH] Update runtime files --- runtime/doc/autocmd.txt | 8 +++-- runtime/doc/change.txt | 7 ++++- runtime/doc/cmdline.txt | 4 +-- runtime/doc/diff.txt | 5 +-- runtime/doc/eval.txt | 37 +++++++++++++--------- runtime/doc/if_cscop.txt | 17 ++++++++-- runtime/doc/index.txt | 4 +-- runtime/doc/map.txt | 9 ++++-- runtime/doc/mbyte.txt | 4 +-- runtime/doc/motion.txt | 5 +-- runtime/doc/options.txt | 12 ++++--- runtime/doc/tags | 2 ++ runtime/doc/todo.txt | 70 +++++++++++++++++++---------------------- runtime/doc/visual.txt | 4 +-- runtime/doc/windows.txt | 5 +-- runtime/getdos.aap | 46 +++++++++++++-------------- runtime/getunix.aap | 60 +++++++++++++++++------------------ runtime/menu.vim | 3 +- runtime/syntax/debchangelog.vim | 6 ++-- runtime/syntax/debsources.vim | 4 +-- runtime/syntax/java.vim | 4 +-- runtime/syntax/lisp.vim | 7 +++-- runtime/syntax/python.vim | 6 ++-- runtime/syntax/tex.vim | 6 ++-- runtime/syntax/vim.vim | 16 +++++----- 25 files changed, 190 insertions(+), 161 deletions(-) diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index bbb24622..5579b5c5 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 7.2. Last change: 2008 Sep 16 +*autocmd.txt* For Vim version 7.2. Last change: 2009 Mar 01 VIM REFERENCE MANUAL by Bram Moolenaar @@ -748,8 +748,10 @@ SwapExists Detected an existing swap file when starting 'a' abort, like hitting CTRL-C When set to an empty string the user will be asked, as if there was no SwapExists autocmd. - Note: Do not try to change the buffer, the - results are unpredictable. + *E811* + It is not allowed to change to another buffer, + change a buffer name or change directory + here. *Syntax* Syntax When the 'syntax' option has been set. The pattern is matched against the syntax name. diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 783005f5..83790b0d 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -1,4 +1,4 @@ -*change.txt* For Vim version 7.2. Last change: 2008 Sep 01 +*change.txt* For Vim version 7.2. Last change: 2009 Feb 25 VIM REFERENCE MANUAL by Bram Moolenaar @@ -994,6 +994,11 @@ register. With blockwise selection it also depends on the size of the block and whether the corners are on an existing character. (Implementation detail: it actually works by first putting the register after the selection and then deleting the selection.) +The previously selected text is put in the unnamed register. If you want to +put the same text into a Visual selection several times you need to use +another register. E.g., yank the text to copy, Visually select the text to +replace and use "0p . You can repeat this as many times as you like, the +unnamed register will be changed each time. *blockwise-register* If you use a blockwise Visual mode command to get the text into the register, diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 5d000b12..47e5c33f 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim version 7.2. Last change: 2008 Dec 17 +*cmdline.txt* For Vim version 7.2. Last change: 2009 Feb 25 VIM REFERENCE MANUAL by Bram Moolenaar @@ -118,8 +118,6 @@ CTRL-U Remove all characters between the cursor position and preferred behavior, add the following to your .vimrc: > :cnoremap < - Note: if the command-line becomes empty with one of the - delete commands, Command-line mode is quit. *c_* Toggle between insert and overstrike. {not in Vi} diff --git a/runtime/doc/diff.txt b/runtime/doc/diff.txt index e2cf8cb9..4d279a4e 100644 --- a/runtime/doc/diff.txt +++ b/runtime/doc/diff.txt @@ -1,4 +1,4 @@ -*diff.txt* For Vim version 7.2. Last change: 2009 Feb 11 +*diff.txt* For Vim version 7.2. Last change: 2009 Mar 06 VIM REFERENCE MANUAL by Bram Moolenaar @@ -124,7 +124,8 @@ file for a moment and come back to the same file and be in diff mode again. *:diffo* *:diffoff* :diffoff Switch off diff mode for the current window. -:diffoff! Switch off diff mode for all windows in the current tab page. +:diffoff! Switch off diff mode for the current window and in all windows + in the current tab page where 'diff' is set. The ":diffoff" command resets the relevant options to their default value. This may be different from what the values were before diff mode was started, diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 7ed3083c..ab4a8319 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.2. Last change: 2009 Jan 10 +*eval.txt* For Vim version 7.2. Last change: 2009 Mar 22 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1192,6 +1192,7 @@ They can be used in: Thus not in: - other scripts sourced from this one - mappings +- menus - etc. Script variables can be used to avoid conflicts with global variable names. @@ -1681,9 +1682,9 @@ ceil( {expr}) Float round {expr} up changenr() Number current change number char2nr( {expr}) Number ASCII value of first char in {expr} cindent( {lnum}) Number C indent for line {lnum} -clearmatches() None clear all matches +clearmatches() none clear all matches col( {expr}) Number column nr of cursor or mark -complete({startcol}, {matches}) String set Insert mode completion +complete({startcol}, {matches}) none set Insert mode completion complete_add( {expr}) Number add completion match complete_check() Number check for key typed during completion confirm( {msg} [, {choices} [, {default} [, {type}]]]) @@ -1871,7 +1872,7 @@ setline( {lnum}, {line}) Number set line {lnum} to {line} setloclist( {nr}, {list}[, {action}]) Number modify location list using {list} setmatches( {list}) Number restore a list of matches -setpos( {expr}, {list}) none set the {expr} position to {list} +setpos( {expr}, {list}) Number set the {expr} position to {list} setqflist( {list}[, {action}]) Number modify quickfix list using {list} setreg( {n}, {v}[, {opt}]) Number set register to value and type settabwinvar( {tabnr}, {winnr}, {varname}, {val}) set {varname} in window @@ -1933,7 +1934,7 @@ winheight( {nr}) Number height of window {nr} winline() Number window line of the cursor winnr( [{expr}]) Number number of current window winrestcmd() String returns command to restore window sizes -winrestview({dict}) None restore view of current window +winrestview({dict}) none restore view of current window winsaveview() Dict save view of current window winwidth( {nr}) Number width of window {nr} writefile({list}, {fname} [, {binary}]) @@ -2249,7 +2250,7 @@ complete({startcol}, {matches}) *complete()* *E785* {matches} must be a |List|. Each |List| item is one match. See |complete-items| for the kind of items that are possible. Note that the after calling this function you need to avoid - inserting anything that would completion to stop. + inserting anything that would cause completion to stop. The match can be selected with CTRL-N and CTRL-P as usual with Insert mode completion. The popup menu will appear if specified, see |ins-completion-menu|. @@ -2418,6 +2419,7 @@ cursor({list}) When 'virtualedit' is used {off} specifies the offset in screen columns from the start of the character. E.g., a position within a or after the last character. + Returns 0 when the position could be set, -1 otherwise. deepcopy({expr}[, {noref}]) *deepcopy()* *E698* @@ -3522,9 +3524,9 @@ index({list}, {expr} [, {start} [, {ic}]]) *index()* input({prompt} [, {text} [, {completion}]]) *input()* The result is a String, which is whatever the user typed on - the command-line. The parameter is either a prompt string, or - a blank string (for no prompt). A '\n' can be used in the - prompt to start a new line. + the command-line. The {prompt} argument is either a prompt + string, or a blank string (for no prompt). A '\n' can be used + in the prompt to start a new line. The highlighting set with |:echohl| is used for the prompt. The input is entered just like a command-line, with the same editing commands and mappings. There is a separate history @@ -3534,8 +3536,9 @@ input({prompt} [, {text} [, {completion}]]) *input()* : echo "Cheers!" :endif < - If the optional {text} is present and not empty, this is used - for the default reply, as if the user typed this. Example: > + If the optional {text} argument is present and not empty, this + is used for the default reply, as if the user typed this. + Example: > :let color = input("Color? ", "white") < The optional {completion} argument specifies the type of @@ -6584,15 +6587,19 @@ This would call the function "my_func_whizz(parameter)". removed without effect. Removing any later item means it will not be found. Thus the following example works (an inefficient way to make a list empty): > - :for item in mylist - :call remove(mylist, 0) - :endfor + for item in mylist + call remove(mylist, 0) + endfor < Note that reordering the list (e.g., with sort() or reverse()) may have unexpected effects. Note that the type of each list item should be identical to avoid errors for the type of {var} changing. Unlet the variable at the end of the loop - to allow multiple item types. + to allow multiple item types: > + for item in ["foo", ["bar"]] + echo item + unlet item " E706 without this + endfor :for [{var1}, {var2}, ...] in {listlist} :endfo[r] diff --git a/runtime/doc/if_cscop.txt b/runtime/doc/if_cscop.txt index dae6ebce..94d39782 100644 --- a/runtime/doc/if_cscop.txt +++ b/runtime/doc/if_cscop.txt @@ -1,4 +1,4 @@ -*if_cscop.txt* For Vim version 7.2. Last change: 2005 Mar 29 +*if_cscop.txt* For Vim version 7.2. Last change: 2009 Mar 18 VIM REFERENCE MANUAL by Andy Kahn @@ -131,11 +131,22 @@ The available subcommands are: 7 or f: Find this file 8 or i: Find files #including this file + For all types, except 4 and 6, leading white space for {name} is + removed. For 4 and 6 there is exactly one space between {querytype} + and {name}. Further white space is included in {name}. + EXAMPLES > :cscope find c vim_free - :cscope find 3 vim_free + :cscope find 3 vim_free +< + These two examples perform the same query: functions calling + "vim_free". > + + :cscope find t initOnce + :cscope find t initOnce < - These two examples perform the same query. > + The first one searches for the text "initOnce", the second one for + " initOnce". > :cscope find 0 DEFAULT_TERM < diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt index 9b1aa0ee..a7b58efa 100644 --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -1,4 +1,4 @@ -*index.txt* For Vim version 7.2. Last change: 2009 Jan 27 +*index.txt* For Vim version 7.2. Last change: 2009 Mar 10 VIM REFERENCE MANUAL by Bram Moolenaar @@ -572,7 +572,7 @@ tag command action in Normal mode ~ window N lines high |CTRL-W_t| CTRL-W t go to top window |CTRL-W_v| CTRL-W v split current window vertically, new window - N lines wide + N columns wide |CTRL-W_w| CTRL-W w go to N next window (wrap around) |CTRL-W_x| CTRL-W x exchange current window with window N (default: next window) diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index 4f825cb6..90556ba6 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -1,4 +1,4 @@ -*map.txt* For Vim version 7.2. Last change: 2008 Nov 18 +*map.txt* For Vim version 7.2. Last change: 2009 Mar 15 VIM REFERENCE MANUAL by Bram Moolenaar @@ -586,11 +586,14 @@ otherwise you would not be able to use those commands anymore. Here are a few suggestions: - Function keys , , etc.. Also the shifted function keys , , etc. Note that is already used for the help command. -- Meta-keys (with the ALT key pressed). |:map-alt-keys| +- Meta-keys (with the ALT key pressed). Depending on your keybord accented + characters may be used as well. |:map-alt-keys| - Use the '_' or ',' character and then any other character. The "_" and "," commands do exist in Vim (see |_| and |,|), but you probably never use them. - Use a key that is a synonym for another command. For example: CTRL-P and CTRL-N. Use an extra character to allow more mappings. +- The key defined by and one or more other keys. This is especially + useful in scripts. |mapleader| See the file "index" for keys that are not used and thus can be mapped without losing any builtin function. You can also use ":help {key}^D" to find out if @@ -1401,7 +1404,7 @@ errors and the "update" command to write modified buffers): > This will invoke: > :call Allargs("%s/foo/bar/ge|update") < -When defining an user command in a script, it will be able to call functions +When defining a user command in a script, it will be able to call functions local to the script and use mappings local to the script. When the user invokes the user command, it will run in the context of the script it was defined in. This matters if || is used in a command. diff --git a/runtime/doc/mbyte.txt b/runtime/doc/mbyte.txt index e5bdd636..12c95f11 100644 --- a/runtime/doc/mbyte.txt +++ b/runtime/doc/mbyte.txt @@ -1,4 +1,4 @@ -*mbyte.txt* For Vim version 7.2. Last change: 2008 Dec 03 +*mbyte.txt* For Vim version 7.2. Last change: 2009 Feb 28 VIM REFERENCE MANUAL by Bram Moolenaar et al. @@ -1030,7 +1030,7 @@ For Command-line mode the flag is NOT remembered. You are expected to type an Ex command first, which is ASCII. For typing search patterns the 'imsearch' option is used. It can be set to use the same value as for 'iminsert'. - + *lCursor* It is possible to give the GUI cursor another color when the language mappings are being used. This is disabled by default, to avoid that the cursor becomes invisible when you use a non-standard background color. Here is an example to diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt index 5f282745..6a47404d 100644 --- a/runtime/doc/motion.txt +++ b/runtime/doc/motion.txt @@ -1,4 +1,4 @@ -*motion.txt* For Vim version 7.2. Last change: 2008 Oct 31 +*motion.txt* For Vim version 7.2. Last change: 2009 Mar 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -637,7 +637,8 @@ a` *v_a`* *a`* When the cursor starts on a quote, Vim will figure out which quote pairs form a string by searching from the start of the line. - Any trailing or leading white space is included. + Any trailing white space is included, unless there is + none, then leading white space is included. When used in Visual mode it is made characterwise. Repeating this object in Visual mode another string is included. A count is currently not used. diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 2230df22..dc27e5de 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1,4 +1,4 @@ -*options.txt* For Vim version 7.2. Last change: 2009 Feb 11 +*options.txt* For Vim version 7.2. Last change: 2009 Mar 17 VIM REFERENCE MANUAL by Bram Moolenaar @@ -959,7 +959,8 @@ A jump table for the options with a short description can be found at |Q_op|. {not in Vi} List of directories for the backup file, separated with commas. - The backup file will be created in the first directory in the list - where this is possible. + where this is possible. The directory must exist, Vim will not + create it for you. - Empty means that no backup file will be created ('patchmode' is impossible!). Writing may fail because of this. - A directory "." means to put the backup file in the same directory @@ -1143,7 +1144,7 @@ A jump table for the options with a short description can be found at |Q_op|. Some applications use the BOM to recognize the encoding of the file. Often used for UCS-2 files on MS-Windows. For other applications it causes trouble, for example: "cat file1 file2" makes the BOM of file2 - appear halfway the resulting file. + appear halfway the resulting file. Gcc doesn't accept a BOM. When Vim reads a file and 'fileencodings' starts with "ucs-bom", a check for the presence of the BOM is done and 'bomb' set accordingly. Unless 'binary' is set, it is removed from the first line, so that you @@ -6654,8 +6655,9 @@ A jump table for the options with a short description can be found at |Q_op|. of '2' in the "!_TAG_FILE_SORTED" line for this. A tag file can be case-fold sorted with the -f switch to "sort" in most unices, as in the command: "sort -f -o tags tags". For "Exuberant ctags" version - 5.3 or higher the -f or --fold-case-sort switch can be used for this - as well. Note that case must be folded to uppercase for this to work. + 5.x or higher (at least 5.5) the --sort=foldcase switch can be used + for this as well. Note that case must be folded to uppercase for this + to work. When 'tagbsearch' is off, tags searching is slower when a full match exists, but faster when no full match exists. Tags in unsorted tags diff --git a/runtime/doc/tags b/runtime/doc/tags index 1aef53eb..e7b62e2b 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -4110,6 +4110,7 @@ E808 eval.txt /*E808* E809 cmdline.txt /*E809* E81 map.txt /*E81* E810 diff.txt /*E810* +E811 autocmd.txt /*E811* E82 message.txt /*E82* E83 message.txt /*E83* E84 windows.txt /*E84* @@ -6248,6 +6249,7 @@ keys() eval.txt /*keys()* known-bugs todo.txt /*known-bugs* l motion.txt /*l* l:var eval.txt /*l:var* +lCursor mbyte.txt /*lCursor* lace.vim syntax.txt /*lace.vim* lang-variable eval.txt /*lang-variable* language-mapping map.txt /*language-mapping* diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt index fb5ea4c1..2ec36468 100644 --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 7.2. Last change: 2009 Feb 22 +*todo.txt* For Vim version 7.2. Last change: 2009 Mar 21 VIM REFERENCE MANUAL by Bram Moolenaar @@ -30,52 +30,50 @@ be worked on, but only if you sponsor Vim development. See |sponsor|. *known-bugs* -------------------- Known bugs and current work ----------------------- -Patch for silly autocommands accessing freed memory. (Dominique Pelle, 2009 -Feb 11, more Feb 13) +In Visual block mode, "O" changes end of block in first comment of screen.c, +only two lines selected. -Have a look at the remote-raise patch. (Paul Egan, 2009 Jan 21) +Patch for :scscope and :lcscope completion. (Dominique Pelle, 2009 Mar 21) -Vim_rename(): when CASE_INSENSITIVE_FILENAME is defined and names do differ -in case, use same mechanism as used for Unix when from and to are the same -file. - -When compiled as small version cursor is displayed after end-of-line for some -values of 'tabstop'. (James Vega, 22 Nov 2008) - -Patch for tab page support in VisVim. (Adam Slater, 2009 Feb 6) - -Patch for using cmdwin from input() using the search history. (James Vega, -2009 Feb 17) - -ml_get errors after reloading a file that was overwritten with ":silent! w! -/tmp/tt". +Wrong Visual Block selection size reported when 'wrap' is on and 'showbreak' +is not empty. (Eduardo Daudt Flach, 2009 Feb 12) -Patch to avoid pause(), it may make Vim hang (Dominique Pelle, 2009 Feb 22) -Requires configure check for volatile (already in configure.in) +Dynamic Folding support for 2html.vim. (Benjamin Fritz, 2009 Feb 12) Patch to add "focusonly" to 'scrollopt', so that scrollbind also applies in window that doesn't have focus. (Jonathon Mah, 2009 Jan 12) Needs more work. -Patch for completion of ":find" arguments. (Nazri Ramliy, 2009 Feb 22) +Patch for completion of ":find" arguments. (Nazri Ramliy, 2009 Feb 22, 26) +8 For ":find" and ":sfind" expand files found in 'path'. +Needs more work. -Patch for not redrawing too much after bold character. (Yukihiro Nakadaira, -2009 Feb 23) +Problem with