vim-patch:1b884a005398

Update runtime files.
1b884a0053

Omit doc/autocmd.txt.
Omit tools/emoji_list.vim. Patch v8.2.1540 is not ported.
This commit is contained in:
Jan Edmund Lazo
2021-05-01 19:29:13 -04:00
parent 83b6a18598
commit 710f0eae2f
10 changed files with 1667 additions and 157 deletions

View File

@@ -4242,9 +4242,9 @@ getbufvar({expr}, {varname} [, {def}]) *getbufvar()*
The result is the value of option or local buffer variable The result is the value of option or local buffer variable
{varname} in buffer {expr}. Note that the name without "b:" {varname} in buffer {expr}. Note that the name without "b:"
must be used. must be used.
When {varname} is empty returns a dictionary with all the When {varname} is empty returns a |Dictionary| with all the
buffer-local variables. buffer-local variables.
When {varname} is equal to "&" returns a dictionary with all When {varname} is equal to "&" returns a |Dictionary| with all
the buffer-local options. the buffer-local options.
Otherwise, when {varname} starts with "&" returns the value of Otherwise, when {varname} starts with "&" returns the value of
a buffer-local option. a buffer-local option.
@@ -4624,8 +4624,9 @@ getloclist({nr},[, {what}]) *getloclist()*
field is applicable only when called from a location list field is applicable only when called from a location list
window. See |location-list-file-window| for more details. window. See |location-list-file-window| for more details.
Returns an empty Dictionary if there is no location list for Returns a |Dictionary| with default values if there is no
the window {nr} or the window is not present. location list for the window {nr}.
Returns an empty Dictionary if window {nr} does not exist.
Examples (See also |getqflist-examples|): > Examples (See also |getqflist-examples|): >
:echo getloclist(3, {'all': 0}) :echo getloclist(3, {'all': 0})
@@ -4701,7 +4702,7 @@ getpos({expr}) Get the position for {expr}. For possible values of {expr}
getqflist([{what}]) *getqflist()* getqflist([{what}]) *getqflist()*
Returns a list with all the current quickfix errors. Each Returns a |List| with all the current quickfix errors. Each
list item is a dictionary with these entries: list item is a dictionary with these entries:
bufnr number of buffer that has the file name, use bufnr number of buffer that has the file name, use
bufname() to get the name bufname() to get the name
@@ -8703,7 +8704,7 @@ tagfiles() Returns a |List| with the file names used to search for tags
taglist({expr} [, {filename}]) *taglist()* taglist({expr} [, {filename}]) *taglist()*
Returns a list of tags matching the regular expression {expr}. Returns a |List| of tags matching the regular expression {expr}.
If {filename} is passed it is used to prioritize the results If {filename} is passed it is used to prioritize the results
in the same way that |:tselect| does. See |tag-priority|. in the same way that |:tselect| does. See |tag-priority|.
@@ -9097,7 +9098,7 @@ wildmenumode() *wildmenumode()*
win_findbuf({bufnr}) *win_findbuf()* win_findbuf({bufnr}) *win_findbuf()*
Returns a list with |window-ID|s for windows that contain Returns a |List| with |window-ID|s for windows that contain
buffer {bufnr}. When there is none the list is empty. buffer {bufnr}. When there is none the list is empty.
win_getid([{win} [, {tab}]]) *win_getid()* win_getid([{win} [, {tab}]]) *win_getid()*

View File

@@ -162,6 +162,25 @@ files in the directories specified in the 'runtimepath' option.
The initial height of the help window can be set with the 'helpheight' option The initial height of the help window can be set with the 'helpheight' option
(default 20). (default 20).
When the help buffer is created, several local options are set to make sure
the help text is displayed as it was intended:
'iskeyword' nearly all ASCII chars except ' ', '*', '"' and '|'
'foldmethod' "manual"
'tabstop' 8
'arabic' off
'binary' off
'buflisted' off
'cursorbind' off
'diff' off
'foldenable' off
'list' off
'modifiable' off
'number' off
'relativenumber' off
'rightleft' off
'scrollbind' off
'spell' off
Jump to specific subjects by using tags. This can be done in two ways: Jump to specific subjects by using tags. This can be done in two ways:
- Use the "CTRL-]" command while standing on the name of a command or option. - Use the "CTRL-]" command while standing on the name of a command or option.
This only works when the tag is a keyword. "<C-Leftmouse>" and This only works when the tag is a keyword. "<C-Leftmouse>" and

View File

@@ -798,7 +798,7 @@ otherwise it is interpreted as two key presses:
1.11 MAPPING AN OPERATOR *:map-operator* 1.11 MAPPING AN OPERATOR *:map-operator*
An operator is used before a {motion} command. To define your own operator An operator is used before a {motion} command. To define your own operator
you must create mapping that first sets the 'operatorfunc' option and then you must create a mapping that first sets the 'operatorfunc' option and then
invoke the |g@| operator. After the user types the {motion} command the invoke the |g@| operator. After the user types the {motion} command the
specified function will be called. specified function will be called.
@@ -1200,15 +1200,15 @@ last defined. Example: >
See |:verbose-cmd| for more information. See |:verbose-cmd| for more information.
*E174* *E182* *E174* *E182*
:com[mand][!] [{attr}...] {cmd} {rep} :com[mand][!] [{attr}...] {cmd} {repl}
Define a user command. The name of the command is Define a user command. The name of the command is
{cmd} and its replacement text is {rep}. The command's {cmd} and its replacement text is {repl}. The
attributes (see below) are {attr}. If the command command's attributes (see below) are {attr}. If the
already exists, an error is reported, unless a ! is command already exists, an error is reported, unless a
specified, in which case the command is redefined. ! is specified, in which case the command is
There is one exception: When sourcing a script again, redefined. There is one exception: When sourcing a
a command that was previously defined in that script script again, a command that was previously defined in
will be silently replaced. that script will be silently replaced.
:delc[ommand] {cmd} *:delc* *:delcommand* *E184* :delc[ommand] {cmd} *:delc* *:delcommand* *E184*
@@ -1415,11 +1415,11 @@ feature. Use the full name for new scripts.
Replacement text ~ Replacement text ~
The replacement text for a user defined command is scanned for special escape The replacement text {repl} for a user defined command is scanned for special
sequences, using <...> notation. Escape sequences are replaced with values escape sequences, using <...> notation. Escape sequences are replaced with
from the entered command line, and all other text is copied unchanged. The values from the entered command line, and all other text is copied unchanged.
resulting string is executed as an Ex command. To avoid the replacement use The resulting string is executed as an Ex command. To avoid the replacement
<lt> in place of the initial <. Thus to include "<bang>" literally use use <lt> in place of the initial <. Thus to include "<bang>" literally use
"<lt>bang>". "<lt>bang>".
The valid escape sequences are The valid escape sequences are

View File

@@ -351,8 +351,8 @@ For starters, read chapter 27 of the user manual |usr_27.txt|.
*/atom* */atom*
5. An atom can be one of a long list of items. Many atoms match one character 5. An atom can be one of a long list of items. Many atoms match one character
in the text. It is often an ordinary character or a character class. in the text. It is often an ordinary character or a character class.
Braces can be used to make a pattern into an atom. The "\z(\)" construct Parentheses can be used to make a pattern into an atom. The "\z(\)"
is only for syntax highlighting. construct is only for syntax highlighting.
atom ::= ordinary-atom |/ordinary-atom| atom ::= ordinary-atom |/ordinary-atom|
or \( pattern \) |/\(| or \( pattern \) |/\(|
@@ -666,7 +666,7 @@ overview.
Note that using "\&" works the same as using "\@=": "foo\&.." is the Note that using "\&" works the same as using "\@=": "foo\&.." is the
same as "\(foo\)\@=..". But using "\&" is easier, you don't need the same as "\(foo\)\@=..". But using "\&" is easier, you don't need the
braces. parentheses.
*/\@!* */\@!*
@@ -1058,8 +1058,8 @@ x A single character, with no special meaning, matches itself
[] (with 'nomagic': \[]) */[]* */\[]* */\_[]* */collection* [] (with 'nomagic': \[]) */[]* */\[]* */\_[]* */collection*
\_[] \_[]
A collection. This is a sequence of characters enclosed in brackets. A collection. This is a sequence of characters enclosed in square
It matches any single character in the collection. brackets. It matches any single character in the collection.
Example matches ~ Example matches ~
[xyz] any 'x', 'y' or 'z' [xyz] any 'x', 'y' or 'z'
[a-zA-Z]$ any alphabetic character at the end of a line [a-zA-Z]$ any alphabetic character at the end of a line
@@ -1118,11 +1118,12 @@ x A single character, with no special meaning, matches itself
*[:ident:]* [:ident:] identifier character (same as "\i") *[:ident:]* [:ident:] identifier character (same as "\i")
*[:keyword:]* [:keyword:] keyword character (same as "\k") *[:keyword:]* [:keyword:] keyword character (same as "\k")
*[:fname:]* [:fname:] file name character (same as "\f") *[:fname:]* [:fname:] file name character (same as "\f")
The brackets in character class expressions are additional to the The square brackets in character class expressions are additional to
brackets delimiting a collection. For example, the following is a the square brackets delimiting a collection. For example, the
plausible pattern for a Unix filename: "[-./[:alnum:]_~]\+" That is, following is a plausible pattern for a UNIX filename:
a list of at least one character, each of which is either '-', '.', "[-./[:alnum:]_~]\+". That is, a list of at least one character,
'/', alphabetic, numeric, '_' or '~'. each of which is either '-', '.', '/', alphabetic, numeric, '_' or
'~'.
These items only work for 8-bit characters, except [:lower:] and These items only work for 8-bit characters, except [:lower:] and
[:upper:] also work for multibyte characters when using the new [:upper:] also work for multibyte characters when using the new
regexp engine. See |two-engines|. In the future these items may regexp engine. See |two-engines|. In the future these items may

View File

@@ -3151,6 +3151,7 @@ redrawing can become slow.
TEX *tex.vim* *ft-tex-syntax* *latex-syntax* TEX *tex.vim* *ft-tex-syntax* *latex-syntax*
*syntax-tex* *syntax-latex*
Tex Contents~ Tex Contents~
Tex: Want Syntax Folding? |tex-folding| Tex: Want Syntax Folding? |tex-folding|
@@ -3167,6 +3168,7 @@ TEX *tex.vim* *ft-tex-syntax* *latex-syntax*
Tex: Selective Conceal Mode |g:tex_conceal| Tex: Selective Conceal Mode |g:tex_conceal|
Tex: Controlling iskeyword |g:tex_isk| Tex: Controlling iskeyword |g:tex_isk|
Tex: Fine Subscript and Superscript Control |tex-supersub| Tex: Fine Subscript and Superscript Control |tex-supersub|
Tex: Match Check Control |tex-matchcheck|
*tex-folding* *g:tex_fold_enabled* *tex-folding* *g:tex_fold_enabled*
Tex: Want Syntax Folding? ~ Tex: Want Syntax Folding? ~
@@ -3390,6 +3392,22 @@ syntax highlighting script handles this with the following logic:
< in ~/.config/nvim/ftplugin/tex/tex.vim in order to avoid having < in ~/.config/nvim/ftplugin/tex/tex.vim in order to avoid having
inscrutable utf-8 glyphs appear. inscrutable utf-8 glyphs appear.
*tex-matchcheck* *g:tex_matchcheck*
Tex: Match Check Control~
Sometimes one actually wants mismatched parentheses, square braces,
and or curly braces; for example, \text{(1,10] is a range from but
not including 1 to and including 10}. This wish, of course, conflicts
with the desire to provide delimiter mismatch detection. To
accommodate these conflicting goals, syntax/tex.vim provides >
g:tex_matchcheck = '[({[]'
< which is shown along with its default setting. So, if one doesn't
want [] and () to be checked for mismatches, try using >
let g:tex_matchcheck= '[{}]'
< If you don't want matching to occur inside bold and italicized
regions, >
let g:tex_excludematcher= 1
< will prevent the texMatcher group from being included in those regions.
TF *tf.vim* *ft-tf-syntax* TF *tf.vim* *ft-tf-syntax*

View File

@@ -60,9 +60,9 @@ with the redo command. If you make a new change after the undo command,
the redo will not be possible anymore. the redo will not be possible anymore.
'u' included, the Vi-compatible way: 'u' included, the Vi-compatible way:
The undo command undoes the previous change, and also the previous undo command. The undo command undoes the previous change, and also the previous undo
The redo command repeats the previous undo command. It does NOT repeat a command. The redo command repeats the previous undo command. It does NOT
change command, use "." for that. repeat a change command, use "." for that.
Examples Vim way Vi-compatible way ~ Examples Vim way Vi-compatible way ~
"uu" two times undo no-op "uu" two times undo no-op
@@ -98,7 +98,7 @@ change again. But you can do something like this: >
:undojoin | delete :undojoin | delete
After this an "u" command will undo the delete command and the previous After this a "u" command will undo the delete command and the previous
change. change.
To do the opposite, break a change into two undo blocks, in Insert mode use To do the opposite, break a change into two undo blocks, in Insert mode use

View File

@@ -2,7 +2,7 @@
" "
" Author: Bram Moolenaar " Author: Bram Moolenaar
" Copyright: Vim license applies, see ":help license" " Copyright: Vim license applies, see ":help license"
" Last Change: 2020 Oct 28 " Last Change: 2020 Dec 07
" "
" WORK IN PROGRESS - Only the basics work " WORK IN PROGRESS - Only the basics work
" Note: On MS-Windows you need a recent version of gdb. The one included with " Note: On MS-Windows you need a recent version of gdb. The one included with
@@ -815,8 +815,12 @@ func s:DeleteCommands()
delcommand Program delcommand Program
delcommand Source delcommand Source
delcommand Asm delcommand Asm
delcommand Winbar delcommand Winbar
if exists('s:k_map_saved')
if empty(s:k_map_saved)
nunmap K nunmap K
else
call mapset('n', 0, s:k_map_saved) call mapset('n', 0, s:k_map_saved)
endif endif
unlet s:k_map_saved unlet s:k_map_saved

View File

@@ -2,7 +2,7 @@
" Language: aidl (Android Interface Definition Language) " Language: aidl (Android Interface Definition Language)
" https://developer.android.com/guide/components/aidl " https://developer.android.com/guide/components/aidl
" Maintainer: Dominique Pelle <dominique.pelle@tomtom.com> " Maintainer: Dominique Pelle <dominique.pelle@tomtom.com>
" LastChange: 2020/07/25 " LastChange: 2020/12/03
" Quit when a syntax file was already loaded. " Quit when a syntax file was already loaded.
if exists("b:current_syntax") if exists("b:current_syntax")
@@ -12,7 +12,7 @@ endif
source <sfile>:p:h/java.vim source <sfile>:p:h/java.vim
syn keyword aidlParamDir in out inout syn keyword aidlParamDir in out inout
syn keyword aidlKeyword oneway parcelable syn keyword aidlKeyword const oneway parcelable
" Needed for the 'in', 'out', 'inout' keywords to be highlighted. " Needed for the 'in', 'out', 'inout' keywords to be highlighted.
syn cluster javaTop add=aidlParamDir syn cluster javaTop add=aidlParamDir

View File

@@ -2,7 +2,7 @@
" Language: Diff (context or unified) " Language: Diff (context or unified)
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Translations by Jakson Alves de Aquino. " Translations by Jakson Alves de Aquino.
" Last Change: 2016 Apr 02 " Last Change: 2020 Dec 07
" Quit when a (custom) syntax file was already loaded " Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax") if exists("b:current_syntax")
@@ -346,9 +346,11 @@ syn match diffLine "^---$"
syn match diffLine "^\d\+\(,\d\+\)\=[cda]\d\+\>.*" syn match diffLine "^\d\+\(,\d\+\)\=[cda]\d\+\>.*"
syn match diffFile "^diff\>.*" syn match diffFile "^diff\>.*"
syn match diffFile "^+++ .*"
syn match diffFile "^Index: .*" syn match diffFile "^Index: .*"
syn match diffFile "^==== .*" syn match diffFile "^==== .*"
" Old style diff uses *** for old and --- for new.
" Unified diff uses --- for old and +++ for new; names are wrong but it works.
syn match diffOldFile "^+++ .*"
syn match diffOldFile "^\*\*\* .*" syn match diffOldFile "^\*\*\* .*"
syn match diffNewFile "^--- .*" syn match diffNewFile "^--- .*"

File diff suppressed because it is too large Load Diff