diff options
83 files changed, 169 insertions, 248 deletions
diff --git a/runtime/autoload/zip.vim b/runtime/autoload/zip.vim index d6bde99a7d..f6b876df05 100644 --- a/runtime/autoload/zip.vim +++ b/runtime/autoload/zip.vim @@ -1,7 +1,7 @@ " zip.vim: Handles browsing zipfiles " AUTOLOAD PORTION " Date: Jan 07, 2020 -" Version: 30 +" Version: 31 " Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> " License: Vim License (see vim's :help license) " Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1 @@ -20,7 +20,7 @@ if &cp || exists("g:loaded_zip") finish endif -let g:loaded_zip= "v30" +let g:loaded_zip= "v31" if v:version < 702 echohl WarningMsg echo "***warning*** this version of zip needs vim 7.2 or later" @@ -65,7 +65,7 @@ endif " zip#Browse: {{{2 fun! zip#Browse(zipfile) " call Dfunc("zip#Browse(zipfile<".a:zipfile.">)") - " sanity check: ensure that the zipfile has "PK" as its first two letters + " sanity check: insure that the zipfile has "PK" as its first two letters " (zipped files have a leading PK as a "magic cookie") if !filereadable(a:zipfile) || readfile(a:zipfile, "", 1)[0] !~ '^PK' exe "noswapfile noautocmd noswapfile e ".fnameescape(a:zipfile) diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index f15cd96f04..a5407046a0 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 8.2. Last change: 2020 Sep 25 +*autocmd.txt* For Vim version 8.2. Last change: 2020 Oct 26 VIM REFERENCE MANUAL by Bram Moolenaar @@ -278,7 +278,7 @@ Name triggered by ~ |BufWinLeave| before a buffer is removed from a window |BufUnload| before unloading a buffer -|BufHidden| just after a buffer has become hidden +|BufHidden| just before a buffer becomes hidden |BufNew| just after creating a new buffer |SwapExists| detected an existing swap file @@ -883,7 +883,7 @@ InsertEnter Just before starting Insert mode. Also for string. *InsertLeavePre* InsertLeavePre Just before leaving Insert mode. Also when - using CTRL-O |i_CTRL-O|. Be caseful not to + using CTRL-O |i_CTRL-O|. Be careful not to change mode or use `:normal`, it will likely cause trouble. *InsertLeave* diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt index 18b0232dfa..6e5cfc8356 100644 --- a/runtime/doc/channel.txt +++ b/runtime/doc/channel.txt @@ -1,4 +1,4 @@ -*channel.txt* For Vim version 8.2. Last change: 2020 Sep 03 +*channel.txt* For Vim version 8.2. Last change: 2020 Oct 17 VIM REFERENCE MANUAL by Bram Moolenaar @@ -965,6 +965,10 @@ job_status({job}) *job_status()* *E916* "fail", because a fork happens before the failure can be detected. + If in Vim9 script a variable is declared with type "job" but + never assigned to, passing that variable to job_status() + returns "fail". + If an exit callback was set with the "exit_cb" option and the job is now detected to be "dead" the callback will be invoked. @@ -1288,7 +1292,7 @@ prompt. > " Send the text to a shell with Enter appended. call ch_sendraw(g:shell_job, a:text .. "\n") endfunc - + " Function handling output from the shell: Added above the prompt. func GotOutput(channel, msg) call append(line("$") - 1, "- " . a:msg) diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt index 9b9adf65a5..ab2219de85 100644 --- a/runtime/doc/editing.txt +++ b/runtime/doc/editing.txt @@ -1,4 +1,4 @@ -*editing.txt* For Vim version 8.2. Last change: 2020 Aug 17 +*editing.txt* For Vim version 8.2. Last change: 2020 Oct 23 VIM REFERENCE MANUAL by Bram Moolenaar @@ -73,10 +73,14 @@ g CTRL-G Prints the current position of the cursor in five ways: Column, Line, Word, Character and Byte. If the number of Characters and Bytes is the same then the Character position is omitted. + If there are characters in the line that take more than one position on the screen (<Tab> or special - character), both the "real" column and the screen - column are shown, separated with a dash. + character), or characters using more than one byte per + column (characters above 0x7F when 'encoding' is + utf-8), both the byte column and the screen column are + shown, separated by a dash. + Also see the 'ruler' option and the |wordcount()| function. diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index d58b02b467..b757e5f2f2 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 8.2. Last change: 2020 Oct 05 +*eval.txt* For Vim version 8.2. Last change: 2020 Oct 23 VIM REFERENCE MANUAL by Bram Moolenaar @@ -120,7 +120,7 @@ base, use |str2nr()|. *TRUE* *FALSE* *Boolean* For boolean operators Numbers are used. Zero is FALSE, non-zero is TRUE. -You can also use |v:false| and |v:true|. In Vim9 script |false| and |true|. +You can also use |v:false| and |v:true|. In Vim9 script |false| and |true|. When TRUE is returned from a function it is the Number one, FALSE is the number zero. @@ -2746,7 +2746,7 @@ prop_type_change({name}, {props}) none change an existing property type prop_type_delete({name} [, {props}]) none delete a property type -prop_type_get([{name} [, {props}]]) +prop_type_get({name} [, {props}]) Dict get property type values prop_type_list([{props}]) List get list of property types pum_getpos() Dict position and size of pum if visible @@ -3126,7 +3126,7 @@ appendbufline({expr}, {lnum}, {text}) *appendbufline()* error message is given. Example: > :let failed = appendbufline(13, 0, "# THE START") < -< Can also be used as a |method| after a List, the base is + Can also be used as a |method| after a List, the base is passed as the second argument: > mylist->appendbufline(buf, lnum) @@ -7972,8 +7972,8 @@ printf({fmt}, {expr1} ...) *printf()* prompt_getprompt({buf}) *prompt_getprompt()* - Returns the effective prompt text for buffer {buf}. {buf} can - be a buffer name or number. |prompt-buffer|. + Returns the effective prompt text for buffer {buf}. {buf} can + be a buffer name or number. See |prompt-buffer|. If the buffer doesn't exist or isn't a prompt buffer, an empty string is returned. @@ -10709,8 +10709,8 @@ terminalprops() *terminalprops()* detected from the response to |t_RV| request. See |v:termresponse| for the response itself. If |v:termresponse| is empty most values here will be 'u' for unknown. - cursor_style wether sending |t_RS| works ** - cursor_blink_mode wether sending |t_RC| works ** + cursor_style whether sending |t_RS| works ** + cursor_blink_mode whether sending |t_RC| works ** underline_rgb whether |t_8u| works ** mouse mouse type supported @@ -11366,7 +11366,8 @@ winsaveview() Returns a |Dictionary| that contains information to restore curswant column for vertical movement topline first line in the window topfill filler lines, only in diff mode - leftcol first column displayed + leftcol first column displayed; only used when + 'wrap' is off skipcol columns skipped Note that no option values are saved. @@ -12140,8 +12141,9 @@ be used to pass settings to the autoload script before it's loaded: > Note that when you make a mistake and call a function that is supposed to be defined in an autoload script, but the script doesn't actually define the -function, the script will be sourced every time you try to call the function. -And you will get an error message every time. +function, you will get an error message for the missing function. If you fix +the autoload script it won't be automatically loaded again. Either restart +Vim or manually source the script. Also note that if you have two script files, and one calls a function in the other and vice versa, before the used function is defined, it won't work. diff --git a/runtime/doc/if_mzsch.txt b/runtime/doc/if_mzsch.txt index 6420856a67..f0de21a91b 100644 --- a/runtime/doc/if_mzsch.txt +++ b/runtime/doc/if_mzsch.txt @@ -1,4 +1,4 @@ -*if_mzsch.txt* For Vim version 8.2. Last change: 2019 Dec 07 +*if_mzsch.txt* For Vim version 8.2. Last change: 2020 Oct 14 VIM REFERENCE MANUAL by Sergey Khorev @@ -43,7 +43,7 @@ To speed up the process, you might also want to use --disable-gracket and {script} {endmarker} Execute inlined MzScheme script {script}. - Note: This command doesn't work if the MzScheme + Note: This command doesn't work when the MzScheme feature wasn't compiled in. To avoid errors, see |script-here|. diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index b202a939a8..d70b3e6012 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -1,4 +1,4 @@ -*insert.txt* For Vim version 8.2. Last change: 2020 Sep 19 +*insert.txt* For Vim version 8.2. Last change: 2020 Oct 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -312,6 +312,7 @@ If you enter a value of 10, it will end up in the file as a 0. The 10 is a the buffer to a file, the <NL> character is translated into <Nul>. The <NL> character is written at the end of each line. Thus if you want to insert a <NL> character in a file you will have to make a line break. +Also see 'fileformat'. *i_CTRL-X* *insert_expand* CTRL-X enters a sub-mode where several commands can be used. Most of these diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt index 38282e7825..d6215a4c61 100644 --- a/runtime/doc/motion.txt +++ b/runtime/doc/motion.txt @@ -1,4 +1,4 @@ -*motion.txt* For Vim version 8.2. Last change: 2020 Aug 24 +*motion.txt* For Vim version 8.2. Last change: 2020 Oct 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -190,11 +190,14 @@ l or *l* *^* ^ To the first non-blank character of the line. - |exclusive| motion. + |exclusive| motion. Any count is ignored. *$* *<End>* *<kEnd>* $ or <End> To the end of the line. When a count is given also go - [count - 1] lines downward. |inclusive| motion. + [count - 1] lines downward, or as far is possible. + |inclusive| motion. If a count of 2 of larger is + given and the cursor is on the last line, that is an + error an the cursor doesn't move. In Visual mode the cursor goes to just after the last character in the line. When 'virtualedit' is active, "$" may move the cursor diff --git a/runtime/doc/pi_zip.txt b/runtime/doc/pi_zip.txt index d70df81549..2f9fe1eff2 100644 --- a/runtime/doc/pi_zip.txt +++ b/runtime/doc/pi_zip.txt @@ -154,4 +154,4 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright* v1 Sep 15, 2005 * Initial release, had browsing, reading, and writing ============================================================================== -vim:tw=78:ts=8:noet:ft=help:fdm=marker +vim:tw=78:ts=8:ft=help:noet:norl:fdm=marker diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt index 0e28fdd335..87baee6d8d 100644 --- a/runtime/doc/popup.txt +++ b/runtime/doc/popup.txt @@ -1,4 +1,4 @@ -*popup.txt* For Vim version 8.2. Last change: 2020 Sep 28 +*popup.txt* For Vim version 8.2. Last change: 2020 Oct 17 VIM REFERENCE MANUAL by Bram Moolenaar @@ -314,6 +314,7 @@ popup_filter_menu({id}, {key}) *popup_filter_menu()* <Space> <Enter> accept current selection x Esc CTRL-C cancel the menu Other keys are ignored. + Always returns |v:true|. A match is set on that line to highlight it, see |popup_menu()|. diff --git a/runtime/doc/tabpage.txt b/runtime/doc/tabpage.txt index 5a2ed2e810..7512d0c29d 100644 --- a/runtime/doc/tabpage.txt +++ b/runtime/doc/tabpage.txt @@ -1,4 +1,4 @@ -*tabpage.txt* For Vim version 8.2. Last change: 2020 Aug 10 +*tabpage.txt* For Vim version 8.2. Last change: 2020 Oct 14 VIM REFERENCE MANUAL by Bram Moolenaar @@ -195,8 +195,8 @@ gt *i_CTRL-<PageDown>* *i_<C-PageDown>* :+2tabnext " go to the two next tab page :1tabnext " go to the first tab page :$tabnext " go to the last tab page - :tabnext # " go to the last accessed tab page :tabnext $ " as above + :tabnext # " go to the last accessed tab page :tabnext - " go to the previous tab page :tabnext -1 " as above :tabnext + " go to the next tab page @@ -225,7 +225,7 @@ gT Go to the previous tab page. Wraps around from the first one *:tabl* *:tablast* :tabl[ast] Go to the last tab page. - *g<Tab>* *CTRL-W_g<Tab>* *<C-Tab>* + *g<Tab>* *CTRL-W_g<Tab>* *<C-Tab>* g<Tab> Go to the last accessed tab page. Other commands: @@ -259,7 +259,7 @@ REORDERING TAB PAGES: :tabmove " move the tab page to the last :$tabmove " as above :tabmove $ " as above - :tabmove # " move the tab page after the last accessed + :tabmove # " move the tab page after the last accessed " tab page :tabm[ove] +[N] diff --git a/runtime/doc/tags b/runtime/doc/tags index 5fd41c5d9a..7f07b9ff99 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -4378,7 +4378,6 @@ E538 options.txt /*E538* E539 options.txt /*E539* E54 pattern.txt /*E54* E540 options.txt /*E540* -E541 options.txt /*E541* E542 options.txt /*E542* E543 options.txt /*E543* E544 options.txt /*E544* @@ -4932,6 +4931,7 @@ InsertChange autocmd.txt /*InsertChange* InsertCharPre autocmd.txt /*InsertCharPre* InsertEnter autocmd.txt /*InsertEnter* InsertLeave autocmd.txt /*InsertLeave* +InsertLeavePre autocmd.txt /*InsertLeavePre* Integer eval.txt /*Integer* J change.txt /*J* Japanese mbyte.txt /*Japanese* diff --git a/runtime/doc/textprop.txt b/runtime/doc/textprop.txt index ac6d12a699..169520cfd7 100644 --- a/runtime/doc/textprop.txt +++ b/runtime/doc/textprop.txt @@ -1,4 +1,4 @@ -*textprop.txt* For Vim version 8.2. Last change: 2020 Mar 05 +*textprop.txt* For Vim version 8.2. Last change: 2020 Oct 14 VIM REFERENCE MANUAL by Bram Moolenaar @@ -101,7 +101,7 @@ Manipulating text property types: prop_type_add({name}, {props}) define a new property type prop_type_change({name}, {props}) change an existing property type prop_type_delete({name} [, {props}]) delete a property type -prop_type_get([{name} [, {props}]]) get property type values +prop_type_get({name} [, {props}]) get property type values prop_type_list([{props}]) get list of property types @@ -291,7 +291,7 @@ prop_type_delete({name} [, {props}]) *prop_type_delete()* Can also be used as a |method|: > GetPropName()->prop_type_delete() -prop_type_get([{name} [, {props}]]) *prop_type_get()* +prop_type_get({name} [, {props}]) *prop_type_get()* Returns the properties of property type {name}. This is a dictionary with the same fields as was given to prop_type_add(). diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt index 9795a0fa57..48a7946c1c 100644 --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 8.2. Last change: 2020 Oct 10 +*todo.txt* For Vim version 8.2. Last change: 2020 Oct 26 VIM REFERENCE MANUAL by Bram Moolenaar @@ -38,29 +38,13 @@ browser use: https://github.com/vim/vim/issues/1234 *known-bugs* -------------------- Known bugs and current work ----------------------- +Sign highlight in signcolumn disappears if there is line highlighting. + Making everything work: -- If a function is defined in a block it may need to keep the block-locals, - like a compiled closure. -- Fix memory leaks in test_vim9_assign, remove "if 0" -- Fix memory leaks in test_vim9_script +- Test all command modifiers. +- Check many more builtin function arguments at compile time. - Closure arguments should be more strict, like any function call? -- Remove v:disallow_let -- Recognize call to |