Skip to content

Commit

Permalink
Merge remote-tracking branch 'vim/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ychin committed Nov 9, 2022
2 parents d582d51 + 76db9e0 commit 07ed537
Show file tree
Hide file tree
Showing 71 changed files with 522 additions and 302 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS_vim
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ runtime/syntax/haml.vim @tpope
runtime/syntax/hare.vim @rsaihe
runtime/syntax/haskell.vim @coot
runtime/syntax/hgcommit.vim @k-takata
runtime/syntax/hollywood.vim @sodero
runtime/syntax/html.vim @dkearns
runtime/syntax/i3config.vim @hiqua
runtime/syntax/icon.vim @dkearns
Expand Down
33 changes: 21 additions & 12 deletions runtime/doc/builtin.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*builtin.txt* For Vim version 9.0. Last change: 2022 Oct 21
*builtin.txt* For Vim version 9.0. Last change: 2022 Nov 09


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -808,8 +808,10 @@ append({lnum}, {text}) *append()*
{lnum} can be zero to insert a line before the first one.
{lnum} is used like with |getline()|.
Returns 1 for failure ({lnum} out of range or out of memory),
0 for success. In |Vim9| script an invalid argument or
negative number results in an error. Example: >
0 for success. When {text} is an empty list zero is returned,
no matter the value of {lnum}.
In |Vim9| script an invalid argument or negative number
results in an error. Example: >
:let failed = append(line('$'), "# THE END")
:let failed = append(0, ["Chapter 1", "the beginning"])
Expand Down Expand Up @@ -837,7 +839,9 @@ appendbufline({buf}, {lnum}, {text}) *appendbufline()*
If {buf} is not a valid buffer or {lnum} is not valid, an
error message is given. Example: >
:let failed = appendbufline(13, 0, "# THE START")
<
< However, when {text} is an empty list then no error is given
for an invalid {lnum}, since {lnum} isn't actually used.

Can also be used as a |method| after a List, the base is
passed as the second argument: >
mylist->appendbufline(buf, lnum)
Expand Down Expand Up @@ -983,7 +987,7 @@ autocmd_add({acmds}) *autocmd_add()*
let acmd.bufnr = 5
let acmd.cmd = 'call BufEnterFunc()'
call autocmd_add([acmd])
<
Can also be used as a |method|: >
GetAutocmdList()->autocmd_add()
<
Expand Down Expand Up @@ -1319,7 +1323,8 @@ bufwinid({buf}) *bufwinid()*
echo "A window containing buffer 1 is " .. (bufwinid(1))
<
Only deals with the current tab page.
Only deals with the current tab page. See |win_findbuf()| for
finding more.

Can also be used as a |method|: >
FindBuffer()->bufwinid()
Expand Down Expand Up @@ -1587,7 +1592,7 @@ col({expr}) The result is a Number, which is the byte index of the column
column is one higher if the cursor is after the end of the
line. Also, when using a <Cmd> mapping the cursor isn't
moved, this can be used to obtain the column in Insert mode: >
:imap <F2> <Cmd>echo col(".")<CR>
:imap <F2> <Cmd>echowin col(".")<CR>
< Can also be used as a |method|: >
GetPos()->col()
Expand Down Expand Up @@ -2771,7 +2776,7 @@ flattennew({list} [, {maxdepth}]) *flattennew()*
float2nr({expr}) *float2nr()*
Convert {expr} to a Number by omitting the part after the
decimal point.
{expr} must evaluate to a |Float| or a Number.
{expr} must evaluate to a |Float| or a |Number|.
Returns 0 if {expr} is not a |Float| or a |Number|.
When the value of {expr} is out of range for a |Number| the
result is truncated to 0x7fffffff or -0x7fffffff (or when
Expand Down Expand Up @@ -7875,9 +7880,10 @@ setbufline({buf}, {lnum}, {text}) *setbufline()*
To insert lines use |appendbufline()|.
Any text properties in {lnum} are cleared.

{text} can be a string to set one line, or a list of strings
to set multiple lines. If the list extends below the last
line then those lines are added.
{text} can be a string to set one line, or a List of strings
to set multiple lines. If the List extends below the last
line then those lines are added. If the List is empty then
nothing is changed and zero is returned.

For the use of {buf}, see |bufname()| above.

Expand Down Expand Up @@ -8062,7 +8068,8 @@ setline({lnum}, {text}) *setline()*
When {lnum} is just below the last line the {text} will be
added below the last line.
{text} can be any type or a List of any type, each item is
converted to a String.
converted to a String. When {text} is an empty List then
nothing is changed and FALSE is returned.

If this succeeds, FALSE is returned. If this fails (most likely
because {lnum} is invalid) TRUE is returned.
Expand Down Expand Up @@ -10222,6 +10229,7 @@ win_move_separator({nr}, {offset}) *win_move_separator()*
FALSE otherwise.
This will fail for the rightmost window and a full-width
window, since it has no separator on the right.
Only works for the current tab page. *E1308*

Can also be used as a |method|: >
GetWinnr()->win_move_separator(offset)
Expand All @@ -10236,6 +10244,7 @@ win_move_statusline({nr}, {offset}) *win_move_statusline()*
movement may be smaller than specified (e.g., as a consequence
of maintaining 'winminheight'). Returns TRUE if the window can
be found and FALSE otherwise.
Only works for the current tab page.

Can also be used as a |method|: >
GetWinnr()->win_move_statusline(offset)
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/channel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ a close callback to the channel.

To read all normal output from a RAW channel that is available: >
let output = ch_readraw(channel)
To read all error output from a RAW channel that is available:: >
To read all error output from a RAW channel that is available: >
let output = ch_readraw(channel, {"part": "err"})
Note that if the channel is in NL mode, ch_readraw() will only return one line
for each call.
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/cmdline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ always be swapped then.

Count and Range *N:*

When giving a count before entering ":", this is translated into:
When giving a count before entering ":", this is translated into: >
:.,.+(count - 1)
In words: The "count" lines at and after the cursor. Example: To delete
three lines: >
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/editing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*editing.txt* For Vim version 9.0. Last change: 2022 Apr 16
*editing.txt* For Vim version 9.0. Last change: 2022 Nov 02


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -583,7 +583,7 @@ END OF LINE AND END OF FILE *eol-and-eof*
Vim has several options to control the file format:
'fileformat' the <EOL> style: Unix, DOS, Mac
'endofline' whether the last line ends with a <EOL>
'endooffile' whether the file ends with a CTRL-Z
'endoffile' whether the file ends with a CTRL-Z
'fixendofline' whether to fix eol and eof

The first three values are normally detected automatically when reading the
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/eval.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,7 @@ v:collate The current locale setting for collation order of the runtime
command.
See |multi-lang|.

*v:colornames*
*v:colornames*
v:colornames A dictionary that maps color names to hex color strings. These
color names can be used with the |highlight-guifg|,
|highlight-guibg|, and |highlight-guisp| parameters. Updating
Expand Down Expand Up @@ -3610,7 +3610,7 @@ this pending exception or command is discarded.
For examples see |throw-catch| and |try-finally|.


NESTING OF TRY CONDITIONALS *try-nesting*
NESTING OF TRY CONDITIONALS *try-nesting*

Try conditionals can be nested arbitrarily. That is, a complete try
conditional can be put into the try block, a catch clause, or the finally
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/filetype.txt
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ used.
For example, to set the dialect to a default of "fblite" but still allow for
any #lang directive overrides, use the following command: >
let g:freebasic_lang = "fblite"
let g:freebasic_lang = "fblite"
GIT COMMIT *ft-gitcommit-plugin*
Expand Down
2 changes: 2 additions & 0 deletions runtime/doc/help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ Programming language support ~
|filetype.txt| settings done specifically for a type of file
|quickfix.txt| commands for a quick edit-compile-fix cycle
|ft_ada.txt| Ada (the programming language) support
|ft_context.txt| Filetype plugin for ConTeXt
|ft_mp.txt| Filetype plugin for METAFONT and MetaPost
|ft_ps1.txt| Filetype plugin for Windows PowerShell
|ft_raku.txt| Filetype plugin for Raku
|ft_rust.txt| Filetype plugin for Rust
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/os_haiku.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ additionally installed over the GUI version. Typical build commands are:
./configure --prefix=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY` \
--datarootdir=`finddir B_SYSTEM_NONPACKAGED_DATA_DIRECTORY` \
--mandir=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY`/documentation/man \
--with-tlib=ncurses \
--with-tlib=ncurses
make clean
make install

Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/pi_tar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Copyright 2005-2017: *tar-copyright*
<.vimrc> file.
Default
Variable Value Explanation
*g:tar_browseoptions* "Ptf" used to get a list of contents
*g:tar_browseoptions* "Ptf" used to get a list of contents
*g:tar_readoptions* "OPxf" used to extract a file from a tarball
*g:tar_cmd* "tar" the name of the tar program
*g:tar_nomax* 0 if true, file window will not be maximized
Expand All @@ -98,7 +98,7 @@ Copyright 2005-2017: *tar-copyright*
"-"
Not all tar's support the "--" which is why
it isn't default.
*g:tar_writeoptions* "uf" used to update/replace a file
*g:tar_writeoptions* "uf" used to update/replace a file


==============================================================================
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/spell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1008,8 +1008,8 @@ Note: even when using "num" or "long" the number of flags available to
compounding and prefixes is limited to about 250.


AFFIXES
*spell-PFX* *spell-SFX*
AFFIXES *spell-PFX* *spell-SFX*

The usual PFX (prefix) and SFX (suffix) lines are supported (see the Myspell
documentation or the Aspell manual:
http://aspell.net/man-html/Affix-Compression.html).
Expand Down
10 changes: 5 additions & 5 deletions runtime/doc/syntax.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*syntax.txt* For Vim version 9.0. Last change: 2022 Oct 17
*syntax.txt* For Vim version 9.0. Last change: 2022 Nov 06


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -2416,7 +2416,7 @@ you set the variable: >
:let papp_include_html=1
in your startup file it will try to syntax-hilight html code inside phtml
in your startup file it will try to syntax-highlight html code inside phtml
sections, but this is relatively slow and much too colourful to be able to
edit sensibly. ;)

Expand Down Expand Up @@ -4943,7 +4943,7 @@ Change a couple more colors: >
augroup my_colorschemes
au!
au Colorscheme pablo hi Normal ctermbg=NONE
\ | higlight Special ctermfg=63
\ | highlight Special ctermfg=63
\ | highlight Identifier ctermfg=44
augroup END
Expand Down Expand Up @@ -5386,10 +5386,10 @@ LineNrBelow Line number for when the 'relativenumber'
*hl-CursorLineNr*
CursorLineNr Like LineNr when 'cursorline' is set and 'cursorlineopt'
contains "number" or is "both", for the cursor line.
*hl-CursorLineSign*
CursorLineSign Like SignColumn when 'cursorline' is set for the cursor line.
*hl-CursorLineFold*
CursorLineFold Like FoldColumn when 'cursorline' is set for the cursor line.
*hl-CursorLineSign*
CursorLineSign Like SignColumn when 'cursorline' is set for the cursor line.
*hl-MatchParen*
MatchParen Character under the cursor or just before it, if it
is a paired bracket, and its match. |pi_paren.txt|
Expand Down
2 changes: 2 additions & 0 deletions runtime/doc/tags
Original file line number Diff line number Diff line change
Expand Up @@ -4408,6 +4408,7 @@ E1304 vim9.txt /*E1304*
E1305 textprop.txt /*E1305*
E1306 vim9.txt /*E1306*
E1307 vim9.txt /*E1307*
E1308 builtin.txt /*E1308*
E131 userfunc.txt /*E131*
E132 userfunc.txt /*E132*
E133 userfunc.txt /*E133*
Expand Down Expand Up @@ -6750,6 +6751,7 @@ end intro.txt /*end*
end-of-file pattern.txt /*end-of-file*
enlightened-terminal syntax.txt /*enlightened-terminal*
environ() builtin.txt /*environ()*
eol-and-eof editing.txt /*eol-and-eof*
erlang.vim syntax.txt /*erlang.vim*
err_buf channel.txt /*err_buf*
err_cb channel.txt /*err_cb*
Expand Down
23 changes: 22 additions & 1 deletion runtime/doc/todo.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*todo.txt* For Vim version 9.0. Last change: 2022 Oct 28
*todo.txt* For Vim version 9.0. Last change: 2022 Nov 09


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -38,6 +38,8 @@ browser use: https://github.com/vim/vim/issues/1234
*known-bugs*
-------------------- Known bugs and current work -----------------------

Add test for what 9.0.0827 fixes - '@' in termcap key code

'smoothscroll':
- CTRL-E and gj in long line with 'scrolloff' 5 not working well yet.
- computing 'scrolloff' position row use w_skipcol
Expand Down Expand Up @@ -176,13 +178,19 @@ reduced?

Add BufDeletePost. #11041

Add winid arg to col() and charcol() #11466 (request #11461)

Test property disappears when using CR twice in a row. OK when some text was
entered. (#11151)

NFA regexp does not handle composing characters well: #10286
[ɔ̃] matches both ɔ and ɔ̃
\(ɔ\|ɔ̃\) matches ɔ and not ɔ̃

Is there a way to make 'autowriteall' make a clean exit when the xterm is
closed? (Dennis Nazic says files are preserved, okt 28). Perhaps handle TERM
like HUP?

Improvement in terminal configuration mess: Request the terminfo entry from
the terminal itself. The $TERM value then is only relevant for whether this
feature is supported or not. Replaces the xterm mechanism to request each
Expand All @@ -191,6 +199,16 @@ Multiplexers (screen, tmux) can request it to the underlying terminal, and
pass it on with modifications.
How to get all the text quickly (also over ssh)? Can we use a side channel?

Horizontal mouse scroll only works when compiled with GUI? #11374

In the libvterm fork properly implement:
- modifyOtherKeys 2 - follow xterm implementation as close as possible, that
is the reference.
- Kitty key protocol - just like the latest Kitty
So that in TermDebug the key handling can be stepped through (instead of
having to log messages all over the place to see what happens).
Ask Leonerd about location of code, he might want to take over some of it.

Using "A" and "o" in manually created fold (in empty buffer) does not behave
consistenly (James McCoy, #10698)

Expand Down Expand Up @@ -301,6 +319,9 @@ when redirecting to a local variable (function or script) storing the value
won't work. At least give an error. Is there a way to make it work?
#10616

Completion for ":runtime" should show valid values, not what's in the current
directory. (#11447)

Add an option to start_timer() to return from the input loop with K_IGNORE.
This is useful e.g. when a popup was created that disables mappings, we need
to return from vgetc() to make this happen. #7011
Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/userfunc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function to abort. `:defer` can be used to avoid that: >
call Handle('Outfile')
endfunc
Note that deleting "Outfile" is scheduled before calling system(), since it
Note that deleting "Outfile" is scheduled before calling `system()`, since it
can be created even when `system()` fails.

The deferred functions are called in reverse order, the last one added is
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/usr_03.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_03.txt* For Vim version 9.0. Last change: 2020 Sep 03
*usr_03.txt* For Vim version 9.0. Last change: 2022 Oct 30

VIM USER MANUAL - by Bram Moolenaar

Expand Down Expand Up @@ -223,7 +223,7 @@ you can see? This figure shows the three commands you can use:
+---------------------------+

Hints: "H" stands for Home, "M" for Middle and "L" for Last. Alternatively,
"H" for high, "M" for Middle and "L" for low.
"H" for High, "M" for Middle and "L" for Low.

==============================================================================
*03.6* Telling where you are
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/usr_41.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ FOUR KINDS OF NUMBERS
Numbers can be decimal, hexadecimal, octal and binary.

A hexadecimal number starts with "0x" or "0X". For example "0x1f" is decimal
31 and 0x1234 is decimal 4660.
31 and "0x1234" is decimal 4660.

An octal number starts with "0o", "0O". "0o17" is decimal 15.

Expand Down Expand Up @@ -687,7 +687,7 @@ search() function uses its first argument as a search pattern and the second
one as flags. The "W" flag means the search doesn't wrap around the end of
the file.

Using the `call` command is optional in |Vim9| script. It is required in
Using the `call` command is optional in |Vim9| script. It is required in
legacy script and on the command line: >
call search("Date: ", "W")
Expand Down
5 changes: 3 additions & 2 deletions runtime/doc/various.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*various.txt* For Vim version 9.0. Last change: 2022 Oct 17
*various.txt* For Vim version 9.0. Last change: 2022 Nov 04


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -298,7 +298,8 @@ g8 Print the hex values of the bytes used in the
:silent !{cmd}
< The screen is not redrawn then, thus you have to use
CTRL-L or ":redraw!" if the command did display
something.
something. However, this depends on what the |t_ti|
and |t_te| termcap entries are set to.
Also see |shell-window|.

*:!!*
Expand Down
Loading

0 comments on commit 07ed537

Please sign in to comment.