mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:partial 53f7fccc9413 (#15631)
* vim-patch:partial 53f7fccc9413
Update runtime files
53f7fccc94
omit macros/hanoi/hanoi.vim
omit spell/tet/main.aap
omit tools/shtags.1
omit tools/xcmdsrv_client.c
skip doc/pattern.txt (requires 8.2.3110; 8.2.{1665,1872})
skip doc/map.txt (requires 8.2.3228)
This commit is contained in:
parent
e7d2102c91
commit
e31652879e
17
runtime/compiler/spectral.vim
Normal file
17
runtime/compiler/spectral.vim
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Spectral for YAML
|
||||||
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||||
|
" Last Change: 2021 July 21
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "spectral"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet makeprg=spectral\ lint\ %\ -f\ text
|
||||||
|
CompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m
|
||||||
|
|
16
runtime/compiler/yamllint.vim
Normal file
16
runtime/compiler/yamllint.vim
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Yamllint for YAML
|
||||||
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||||
|
" Last Change: 2021 July 21
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "yamllint"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet makeprg=yamllint\ -f\ parsable
|
||||||
|
|
@ -499,10 +499,10 @@ CursorMoved After the cursor was moved in Normal or Visual
|
|||||||
mode or to another window. Also when the text
|
mode or to another window. Also when the text
|
||||||
of the cursor line has been changed, e.g. with
|
of the cursor line has been changed, e.g. with
|
||||||
"x", "rx" or "p".
|
"x", "rx" or "p".
|
||||||
Not triggered when there is typeahead, when
|
Not triggered when there is typeahead, while
|
||||||
an operator is pending or when moving to
|
executing a script file, when an operator is
|
||||||
another window while remaining at the same
|
pending, or when moving to another window while
|
||||||
cursor position.
|
remaining at the same cursor position.
|
||||||
For an example see |match-parens|.
|
For an example see |match-parens|.
|
||||||
Note: Cannot be skipped with |:noautocmd|.
|
Note: Cannot be skipped with |:noautocmd|.
|
||||||
Careful: This is triggered very often, don't
|
Careful: This is triggered very often, don't
|
||||||
|
@ -2678,6 +2678,7 @@ append({lnum}, {text}) *append()*
|
|||||||
Otherwise append {text} as one text line below line {lnum} in
|
Otherwise append {text} as one text line below line {lnum} in
|
||||||
the current buffer.
|
the current buffer.
|
||||||
{lnum} can be zero to insert a line before the first one.
|
{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),
|
Returns 1 for failure ({lnum} out of range or out of memory),
|
||||||
0 for success. Example: >
|
0 for success. Example: >
|
||||||
:let failed = append(line('$'), "# THE END")
|
:let failed = append(line('$'), "# THE END")
|
||||||
@ -2883,8 +2884,9 @@ bufloaded({expr}) *bufloaded()*
|
|||||||
let loaded = 'somename'->bufloaded()
|
let loaded = 'somename'->bufloaded()
|
||||||
|
|
||||||
bufname([{expr}]) *bufname()*
|
bufname([{expr}]) *bufname()*
|
||||||
The result is the name of a buffer, as it is displayed by the
|
The result is the name of a buffer. Mostly as it is displayed
|
||||||
":ls" command.
|
by the `:ls` command, but not using special names such as
|
||||||
|
"[No Name]".
|
||||||
If {expr} is omitted the current buffer is used.
|
If {expr} is omitted the current buffer is used.
|
||||||
If {expr} is a Number, that buffer number's name is given.
|
If {expr} is a Number, that buffer number's name is given.
|
||||||
Number zero is the alternate buffer for the current window.
|
Number zero is the alternate buffer for the current window.
|
||||||
@ -2917,7 +2919,7 @@ bufname([{expr}]) *bufname()*
|
|||||||
*bufnr()*
|
*bufnr()*
|
||||||
bufnr([{expr} [, {create}]])
|
bufnr([{expr} [, {create}]])
|
||||||
The result is the number of a buffer, as it is displayed by
|
The result is the number of a buffer, as it is displayed by
|
||||||
the ":ls" command. For the use of {expr}, see |bufname()|
|
the `:ls` command. For the use of {expr}, see |bufname()|
|
||||||
above.
|
above.
|
||||||
If the buffer doesn't exist, -1 is returned. Or, if the
|
If the buffer doesn't exist, -1 is returned. Or, if the
|
||||||
{create} argument is present and TRUE, a new, unlisted,
|
{create} argument is present and TRUE, a new, unlisted,
|
||||||
@ -3096,10 +3098,10 @@ charidx({string}, {idx} [, {countcc}])
|
|||||||
The index of the first character is zero.
|
The index of the first character is zero.
|
||||||
If there are no multibyte characters the returned value is
|
If there are no multibyte characters the returned value is
|
||||||
equal to {idx}.
|
equal to {idx}.
|
||||||
When {countcc} is omitted or zero, then composing characters
|
When {countcc} is omitted or |FALSE|, then composing characters
|
||||||
are not counted separately, their byte length is added to the
|
are not counted separately, their byte length is
|
||||||
preceding base character.
|
added to the preceding base character.
|
||||||
When {countcc} is set to 1, then composing characters are
|
When {countcc} is |TRUE|, then composing characters are
|
||||||
counted as separate characters.
|
counted as separate characters.
|
||||||
Returns -1 if the arguments are invalid or if {idx} is greater
|
Returns -1 if the arguments are invalid or if {idx} is greater
|
||||||
than the index of the last byte in {string}. An error is
|
than the index of the last byte in {string}. An error is
|
||||||
@ -3241,7 +3243,9 @@ complete_info([{what}])
|
|||||||
See |complete-items|.
|
See |complete-items|.
|
||||||
selected Selected item index. First index is zero.
|
selected Selected item index. First index is zero.
|
||||||
Index is -1 if no item is selected (showing
|
Index is -1 if no item is selected (showing
|
||||||
typed text only)
|
typed text only, or the last completion after
|
||||||
|
no item is selected when using the <Up> or
|
||||||
|
<Down> keys)
|
||||||
inserted Inserted string. [NOT IMPLEMENT YET]
|
inserted Inserted string. [NOT IMPLEMENT YET]
|
||||||
|
|
||||||
*complete_info_mode*
|
*complete_info_mode*
|
||||||
@ -4031,16 +4035,19 @@ filewritable({file}) *filewritable()*
|
|||||||
|
|
||||||
|
|
||||||
filter({expr1}, {expr2}) *filter()*
|
filter({expr1}, {expr2}) *filter()*
|
||||||
{expr1} must be a |List| or a |Dictionary|.
|
{expr1} must be a |List|, |Blob|, or a |Dictionary|.
|
||||||
For each item in {expr1} evaluate {expr2} and when the result
|
For each item in {expr1} evaluate {expr2} and when the result
|
||||||
is zero remove the item from the |List| or |Dictionary|.
|
is zero remove the item from the |List| or |Dictionary|. For a
|
||||||
|
|Blob| each byte is removed.
|
||||||
|
|
||||||
{expr2} must be a |string| or |Funcref|.
|
{expr2} must be a |string| or |Funcref|.
|
||||||
|
|
||||||
If {expr2} is a |string|, inside {expr2} |v:val| has the value
|
If {expr2} is a |string|, inside {expr2} |v:val| has the value
|
||||||
of the current item. For a |Dictionary| |v:key| has the key
|
of the current item. For a |Dictionary| |v:key| has the key
|
||||||
of the current item and for a |List| |v:key| has the index of
|
of the current item and for a |List| |v:key| has the index of
|
||||||
the current item.
|
the current item. For a |Blob| |v:key| has the index of the
|
||||||
For a |Dictionary| |v:key| has the key of the current item.
|
current byte.
|
||||||
|
|
||||||
Examples: >
|
Examples: >
|
||||||
call filter(mylist, 'v:val !~ "OLD"')
|
call filter(mylist, 'v:val !~ "OLD"')
|
||||||
< Removes the items where "OLD" appears. >
|
< Removes the items where "OLD" appears. >
|
||||||
@ -4071,11 +4078,11 @@ filter({expr1}, {expr2}) *filter()*
|
|||||||
|Dictionary| to remain unmodified make a copy first: >
|
|Dictionary| to remain unmodified make a copy first: >
|
||||||
:let l = filter(copy(mylist), 'v:val =~ "KEEP"')
|
:let l = filter(copy(mylist), 'v:val =~ "KEEP"')
|
||||||
|
|
||||||
< Returns {expr1}, the |List| or |Dictionary| that was filtered.
|
< Returns {expr1}, the |List| , |Blob| or |Dictionary| that was
|
||||||
When an error is encountered while evaluating {expr2} no
|
filtered. When an error is encountered while evaluating
|
||||||
further items in {expr1} are processed. When {expr2} is a
|
{expr2} no further items in {expr1} are processed. When
|
||||||
Funcref errors inside a function are ignored, unless it was
|
{expr2} is a Funcref errors inside a function are ignored,
|
||||||
defined with the "abort" flag.
|
unless it was defined with the "abort" flag.
|
||||||
|
|
||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
mylist->filter(expr2)
|
mylist->filter(expr2)
|
||||||
@ -6058,8 +6065,8 @@ line2byte({lnum}) *line2byte()*
|
|||||||
line just below the last line: >
|
line just below the last line: >
|
||||||
line2byte(line("$") + 1)
|
line2byte(line("$") + 1)
|
||||||
< This is the buffer size plus one. If 'fileencoding' is empty
|
< This is the buffer size plus one. If 'fileencoding' is empty
|
||||||
it is the file size plus one.
|
it is the file size plus one. {lnum} is used like with
|
||||||
When {lnum} is invalid -1 is returned.
|
|getline()|. When {lnum} is invalid -1 is returned.
|
||||||
Also see |byte2line()|, |go| and |:goto|.
|
Also see |byte2line()|, |go| and |:goto|.
|
||||||
|
|
||||||
lispindent({lnum}) *lispindent()*
|
lispindent({lnum}) *lispindent()*
|
||||||
@ -6125,7 +6132,8 @@ map({expr1}, {expr2}) *map()*
|
|||||||
If {expr2} is a |string|, inside {expr2} |v:val| has the value
|
If {expr2} is a |string|, inside {expr2} |v:val| has the value
|
||||||
of the current item. For a |Dictionary| |v:key| has the key
|
of the current item. For a |Dictionary| |v:key| has the key
|
||||||
of the current item and for a |List| |v:key| has the index of
|
of the current item and for a |List| |v:key| has the index of
|
||||||
the current item.
|
the current item. For a |Blob| |v:key| has the index of the
|
||||||
|
current byte.
|
||||||
Example: >
|
Example: >
|
||||||
:call map(mylist, '"> " . v:val . " <"')
|
:call map(mylist, '"> " . v:val . " <"')
|
||||||
< This puts "> " before and " <" after each item in "mylist".
|
< This puts "> " before and " <" after each item in "mylist".
|
||||||
@ -6721,6 +6729,7 @@ nextnonblank({lnum}) *nextnonblank()*
|
|||||||
if getline(nextnonblank(1)) =~ "Java"
|
if getline(nextnonblank(1)) =~ "Java"
|
||||||
< When {lnum} is invalid or there is no non-blank line at or
|
< When {lnum} is invalid or there is no non-blank line at or
|
||||||
below it, zero is returned.
|
below it, zero is returned.
|
||||||
|
{lnum} is used like with |getline()|.
|
||||||
See also |prevnonblank()|.
|
See also |prevnonblank()|.
|
||||||
|
|
||||||
nr2char({expr} [, {utf8}]) *nr2char()*
|
nr2char({expr} [, {utf8}]) *nr2char()*
|
||||||
@ -6800,6 +6809,7 @@ prevnonblank({lnum}) *prevnonblank()*
|
|||||||
let ind = indent(prevnonblank(v:lnum - 1))
|
let ind = indent(prevnonblank(v:lnum - 1))
|
||||||
< When {lnum} is invalid or there is no non-blank line at or
|
< When {lnum} is invalid or there is no non-blank line at or
|
||||||
above it, zero is returned.
|
above it, zero is returned.
|
||||||
|
{lnum} is used like with |getline()|.
|
||||||
Also see |nextnonblank()|.
|
Also see |nextnonblank()|.
|
||||||
|
|
||||||
|
|
||||||
@ -7210,6 +7220,7 @@ reltimefloat({time}) *reltimefloat()*
|
|||||||
let seconds = reltimefloat(reltime(start))
|
let seconds = reltimefloat(reltime(start))
|
||||||
See the note of reltimestr() about overhead.
|
See the note of reltimestr() about overhead.
|
||||||
Also see |profiling|.
|
Also see |profiling|.
|
||||||
|
If there is an error an empty string is returned
|
||||||
|
|
||||||
reltimestr({time}) *reltimestr()*
|
reltimestr({time}) *reltimestr()*
|
||||||
Return a String that represents the time value of {time}.
|
Return a String that represents the time value of {time}.
|
||||||
@ -7223,6 +7234,7 @@ reltimestr({time}) *reltimestr()*
|
|||||||
can use split() to remove it. >
|
can use split() to remove it. >
|
||||||
echo split(reltimestr(reltime(start)))[0]
|
echo split(reltimestr(reltime(start)))[0]
|
||||||
< Also see |profiling|.
|
< Also see |profiling|.
|
||||||
|
If there is an error an empty string is returned
|
||||||
|
|
||||||
*remote_expr()* *E449*
|
*remote_expr()* *E449*
|
||||||
remote_expr({server}, {string} [, {idvar} [, {timeout}]])
|
remote_expr({server}, {string} [, {idvar} [, {timeout}]])
|
||||||
@ -8987,7 +8999,7 @@ synID({lnum}, {col}, {trans}) *synID()*
|
|||||||
line. 'synmaxcol' applies, in a longer line zero is returned.
|
line. 'synmaxcol' applies, in a longer line zero is returned.
|
||||||
Note that when the position is after the last character,
|
Note that when the position is after the last character,
|
||||||
that's where the cursor can be in Insert mode, synID() returns
|
that's where the cursor can be in Insert mode, synID() returns
|
||||||
zero.
|
zero. {lnum} is used like with |getline()|.
|
||||||
|
|
||||||
When {trans} is |TRUE|, transparent items are reduced to the
|
When {trans} is |TRUE|, transparent items are reduced to the
|
||||||
item that they reveal. This is useful when wanting to know
|
item that they reveal. This is useful when wanting to know
|
||||||
@ -9052,7 +9064,7 @@ synconcealed({lnum}, {col}) *synconcealed()*
|
|||||||
The result is a |List| with currently three items:
|
The result is a |List| with currently three items:
|
||||||
1. The first item in the list is 0 if the character at the
|
1. The first item in the list is 0 if the character at the
|
||||||
position {lnum} and {col} is not part of a concealable
|
position {lnum} and {col} is not part of a concealable
|
||||||
region, 1 if it is.
|
region, 1 if it is. {lnum} is used like with |getline()|.
|
||||||
2. The second item in the list is a string. If the first item
|
2. The second item in the list is a string. If the first item
|
||||||
is 1, the second item contains the text which will be
|
is 1, the second item contains the text which will be
|
||||||
displayed in place of the concealed text, depending on the
|
displayed in place of the concealed text, depending on the
|
||||||
@ -9076,8 +9088,9 @@ synconcealed({lnum}, {col}) *synconcealed()*
|
|||||||
|
|
||||||
synstack({lnum}, {col}) *synstack()*
|
synstack({lnum}, {col}) *synstack()*
|
||||||
Return a |List|, which is the stack of syntax items at the
|
Return a |List|, which is the stack of syntax items at the
|
||||||
position {lnum} and {col} in the current window. Each item in
|
position {lnum} and {col} in the current window. {lnum} is
|
||||||
the List is an ID like what |synID()| returns.
|
used like with |getline()|. Each item in the List is an ID
|
||||||
|
like what |synID()| returns.
|
||||||
The first item in the List is the outer region, following are
|
The first item in the List is the outer region, following are
|
||||||
items contained in that one. The last one is what |synID()|
|
items contained in that one. The last one is what |synID()|
|
||||||
returns, unless not the whole item is highlighted or it is a
|
returns, unless not the whole item is highlighted or it is a
|
||||||
@ -9674,7 +9687,7 @@ win_screenpos({nr}) *win_screenpos()*
|
|||||||
[1, 1], unless there is a tabline, then it is [2, 1].
|
[1, 1], unless there is a tabline, then it is [2, 1].
|
||||||
{nr} can be the window number or the |window-ID|. Use zero
|
{nr} can be the window number or the |window-ID|. Use zero
|
||||||
for the current window.
|
for the current window.
|
||||||
Return [0, 0] if the window cannot be found in the current
|
Returns [0, 0] if the window cannot be found in the current
|
||||||
tabpage.
|
tabpage.
|
||||||
|
|
||||||
win_splitmove({nr}, {target} [, {options}]) *win_splitmove()*
|
win_splitmove({nr}, {target} [, {options}]) *win_splitmove()*
|
||||||
@ -12046,7 +12059,7 @@ displayed.
|
|||||||
|
|
||||||
*except-several-errors*
|
*except-several-errors*
|
||||||
When several errors appear in a single command, the first error message is
|
When several errors appear in a single command, the first error message is
|
||||||
usually the most specific one and therefor converted to the error exception.
|
usually the most specific one and therefore converted to the error exception.
|
||||||
Example: >
|
Example: >
|
||||||
echo novar
|
echo novar
|
||||||
causes >
|
causes >
|
||||||
|
@ -535,6 +535,8 @@ nest, the nested fold is one character right of the fold it's contained in.
|
|||||||
|
|
||||||
A closed fold is indicated with a '+'.
|
A closed fold is indicated with a '+'.
|
||||||
|
|
||||||
|
These characters can be changed with the 'fillchars' option.
|
||||||
|
|
||||||
Where the fold column is too narrow to display all nested folds, digits are
|
Where the fold column is too narrow to display all nested folds, digits are
|
||||||
shown to indicate the nesting level.
|
shown to indicate the nesting level.
|
||||||
|
|
||||||
|
@ -6749,6 +6749,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
The `g$` command will move to the end of the screen line.
|
The `g$` command will move to the end of the screen line.
|
||||||
It doesn't make sense to combine "all" with "onemore", but you will
|
It doesn't make sense to combine "all" with "onemore", but you will
|
||||||
not get a warning for it.
|
not get a warning for it.
|
||||||
|
When combined with other words, "none" is ignored.
|
||||||
|
|
||||||
*'visualbell'* *'vb'* *'novisualbell'* *'novb'* *beep*
|
*'visualbell'* *'vb'* *'novisualbell'* *'novb'* *beep*
|
||||||
'visualbell' 'vb' boolean (default off)
|
'visualbell' 'vb' boolean (default off)
|
||||||
|
@ -887,7 +887,7 @@ For Visual Basic use: >
|
|||||||
|
|
||||||
BAAN *baan.vim* *baan-syntax*
|
BAAN *baan.vim* *baan-syntax*
|
||||||
|
|
||||||
The baan.vim gives syntax support for BaanC of release BaanIV upto SSA ERP LN
|
The baan.vim gives syntax support for BaanC of release BaanIV up to SSA ERP LN
|
||||||
for both 3 GL and 4 GL programming. Large number of standard defines/constants
|
for both 3 GL and 4 GL programming. Large number of standard defines/constants
|
||||||
are supported.
|
are supported.
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim indent file
|
" Vim indent file
|
||||||
" Language: Bazel (http://bazel.io)
|
" Language: Bazel (http://bazel.io)
|
||||||
" Maintainer: David Barnett (https://github.com/google/vim-ft-bzl)
|
" Maintainer: David Barnett (https://github.com/google/vim-ft-bzl)
|
||||||
" Last Change: 2017 Jun 13
|
" Last Change: 2021 Jul 08
|
||||||
|
|
||||||
if exists('b:did_indent')
|
if exists('b:did_indent')
|
||||||
finish
|
finish
|
||||||
@ -41,13 +41,29 @@ function GetBzlIndent(lnum) abort
|
|||||||
if exists('g:pyindent_open_paren')
|
if exists('g:pyindent_open_paren')
|
||||||
let l:pyindent_open_paren = g:pyindent_open_paren
|
let l:pyindent_open_paren = g:pyindent_open_paren
|
||||||
endif
|
endif
|
||||||
let g:pyindent_nested_paren = 'shiftwidth() * 2'
|
let g:pyindent_nested_paren = 'shiftwidth()'
|
||||||
let g:pyindent_open_paren = 'shiftwidth() * 2'
|
let g:pyindent_open_paren = 'shiftwidth()'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let l:indent = -1
|
let l:indent = -1
|
||||||
|
|
||||||
|
call cursor(a:lnum, 1)
|
||||||
|
let [l:par_line, l:par_col] = searchpairpos('(\|{\|\[', '', ')\|}\|\]', 'bW',
|
||||||
|
\ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :" .
|
||||||
|
\ " synIDattr(synID(line('.'), col('.'), 1), 'name')" .
|
||||||
|
\ " =~ '\\(Comment\\|String\\)$'")
|
||||||
|
if l:par_line > 0
|
||||||
" Indent inside parens.
|
" Indent inside parens.
|
||||||
|
if searchpair('(\|{\|\[', '', ')\|}\|\]', 'W',
|
||||||
|
\ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :" .
|
||||||
|
\ " synIDattr(synID(line('.'), col('.'), 1), 'name')" .
|
||||||
|
\ " =~ '\\(Comment\\|String\\)$'") && line('.') == a:lnum
|
||||||
|
" If cursor is at close parens, match indent with open parens.
|
||||||
|
" E.g.
|
||||||
|
" foo(
|
||||||
|
" )
|
||||||
|
let l:indent = indent(l:par_line)
|
||||||
|
else
|
||||||
" Align with the open paren unless it is at the end of the line.
|
" Align with the open paren unless it is at the end of the line.
|
||||||
" E.g.
|
" E.g.
|
||||||
" open_paren_not_at_EOL(100,
|
" open_paren_not_at_EOL(100,
|
||||||
@ -56,17 +72,12 @@ function GetBzlIndent(lnum) abort
|
|||||||
" 400)
|
" 400)
|
||||||
" open_paren_at_EOL(
|
" open_paren_at_EOL(
|
||||||
" 100, 200, 300, 400)
|
" 100, 200, 300, 400)
|
||||||
call cursor(a:lnum, 1)
|
|
||||||
let [l:par_line, l:par_col] = searchpairpos('(\|{\|\[', '', ')\|}\|\]', 'bW',
|
|
||||||
\ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :" .
|
|
||||||
\ " synIDattr(synID(line('.'), col('.'), 1), 'name')" .
|
|
||||||
\ " =~ '\\(Comment\\|String\\)$'")
|
|
||||||
if l:par_line > 0
|
|
||||||
call cursor(l:par_line, 1)
|
call cursor(l:par_line, 1)
|
||||||
if l:par_col != col('$') - 1
|
if l:par_col != col('$') - 1
|
||||||
let l:indent = l:par_col
|
let l:indent = l:par_col
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
" Delegate the rest to the original function.
|
" Delegate the rest to the original function.
|
||||||
if l:indent == -1
|
if l:indent == -1
|
||||||
|
@ -15,7 +15,7 @@ text comment
|
|||||||
</tag1>
|
</tag1>
|
||||||
<!--
|
<!--
|
||||||
text comment
|
text comment
|
||||||
end coment -->
|
end comment -->
|
||||||
</tag0>
|
</tag0>
|
||||||
<!-- END_INDENT -->
|
<!-- END_INDENT -->
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</tag1>
|
</tag1>
|
||||||
<!--
|
<!--
|
||||||
text comment
|
text comment
|
||||||
end coment -->
|
end comment -->
|
||||||
</tag0>
|
</tag0>
|
||||||
<!-- END_INDENT -->
|
<!-- END_INDENT -->
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ For instructions on installing this file, type
|
|||||||
`:help matchit-install`
|
`:help matchit-install`
|
||||||
inside Vim.
|
inside Vim.
|
||||||
|
|
||||||
For Vim version 8.1. Last change: 2020 Mar 01
|
For Vim version 8.1. Last change: 2021 May 17
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Benji Fisher et al
|
VIM REFERENCE MANUAL by Benji Fisher et al
|
||||||
@ -322,7 +322,7 @@ should work (and have the same effect as "foobar:barfoo:endfoobar"), although
|
|||||||
this has not been thoroughly tested.
|
this has not been thoroughly tested.
|
||||||
|
|
||||||
You can use |zero-width| patterns such as |\@<=| and |\zs|. (The latter has
|
You can use |zero-width| patterns such as |\@<=| and |\zs|. (The latter has
|
||||||
not been thouroughly tested in matchit.vim.) For example, if the keyword "if"
|
not been thoroughly tested in matchit.vim.) For example, if the keyword "if"
|
||||||
must occur at the start of the line, with optional white space, you might use
|
must occur at the start of the line, with optional white space, you might use
|
||||||
the pattern "\(^\s*\)\@<=if" so that the cursor will end on the "i" instead of
|
the pattern "\(^\s*\)\@<=if" so that the cursor will end on the "i" instead of
|
||||||
at the start of the line. For another example, if HTML had only one tag then
|
at the start of the line. For another example, if HTML had only one tag then
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: APT config file
|
" Language: APT config file
|
||||||
" Maintainer: Yann Amar <quidame@poivron.org>
|
" Maintainer: Yann Amar <quidame@poivron.org>
|
||||||
" Last Change: 2015 Dec 22
|
" Last Change: 2021 Jul 12
|
||||||
|
|
||||||
" quit when a syntax file was already loaded
|
" quit when a syntax file was already loaded
|
||||||
if !exists("main_syntax")
|
if !exists("main_syntax")
|
||||||
@ -396,10 +396,13 @@ syn cluster aptconfSynaptic_ contains=aptconfSynaptic,
|
|||||||
" }}}
|
" }}}
|
||||||
" Unattended Upgrade: {{{
|
" Unattended Upgrade: {{{
|
||||||
syn keyword aptconfUnattendedUpgrade contained
|
syn keyword aptconfUnattendedUpgrade contained
|
||||||
\ AutoFixInterruptedDpkg Automatic-Reboot Automatic-Reboot-Time
|
\ Allow-APT-Mark-Fallback Allow-downgrade AutoFixInterruptedDpkg
|
||||||
\ Automatic-Reboot-WithUsers InstallOnShutdown Mail MailOnlyOnError
|
\ Automatic-Reboot Automatic-Reboot-Time Automatic-Reboot-WithUsers
|
||||||
\ MinimalSteps Origins-Pattern Package-Blacklist
|
\ Debug InstallOnShutdown Mail MailOnlyOnError MailReport MinimalSteps
|
||||||
\ Remove-Unused-Dependencies
|
\ OnlyOnACPower Origins-Pattern Package-Blacklist
|
||||||
|
\ Remove-New-Unused-Dependencies Remove-Unused-Dependencies
|
||||||
|
\ Remove-Unused-Kernel-Packages Skip-Updates-On-Metered-Connections
|
||||||
|
\ SyslogEnable SyslogFacility Verbose
|
||||||
|
|
||||||
syn cluster aptconfUnattendedUpgrade_ contains=aptconfUnattendedUpgrade
|
syn cluster aptconfUnattendedUpgrade_ contains=aptconfUnattendedUpgrade
|
||||||
" }}}
|
" }}}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Previous Maintainers: Xavier Crégut <xavier.cregut@enseeiht.fr>
|
" Previous Maintainers: Xavier Crégut <xavier.cregut@enseeiht.fr>
|
||||||
" Mario Eusebio <bio@dq.fct.unl.pt>
|
" Mario Eusebio <bio@dq.fct.unl.pt>
|
||||||
" Last Change: 2021 Apr 23
|
" Last Change: 2021 May 20
|
||||||
|
|
||||||
" Contributors: Tim Chase <tchase@csc.com>,
|
" Contributors: Tim Chase <tchase@csc.com>,
|
||||||
" Stas Grabois <stsi@vtrails.com>,
|
" Stas Grabois <stsi@vtrails.com>,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: ReDIF
|
" Language: ReDIF
|
||||||
" Maintainer: Axel Castellane <axel.castellane@polytechnique.edu>
|
" Maintainer: Axel Castellane <axel.castellane@polytechnique.edu>
|
||||||
" Last Change: 2021 Jun 17
|
" Last Change: 2013 April 17
|
||||||
" Original Author: Axel Castellane
|
" Original Author: Axel Castellane
|
||||||
" Source: http://openlib.org/acmes/root/docu/redif_1.html
|
" Source: http://openlib.org/acmes/root/docu/redif_1.html
|
||||||
" File Extension: rdf
|
" File Extension: rdf
|
||||||
@ -932,7 +932,7 @@ highlight redifFieldDeprecated term=undercurl cterm=undercurl gui=undercurl guis
|
|||||||
" Sync: The template-type (ReDIF-Paper, ReDIF-Archive, etc.) influences which
|
" Sync: The template-type (ReDIF-Paper, ReDIF-Archive, etc.) influences which
|
||||||
" fields can follow. Thus sync must search backwards for it.
|
" fields can follow. Thus sync must search backwards for it.
|
||||||
"
|
"
|
||||||
" I would like to simply ask VIM to search backward for the first occurrence of
|
" I would like to simply ask VIM to search backward for the first occurence of
|
||||||
" /^Template-Type:/, but it does not seem to be possible, so I have to start
|
" /^Template-Type:/, but it does not seem to be possible, so I have to start
|
||||||
" from the beginning of the file... This might slow down a lot for files that
|
" from the beginning of the file... This might slow down a lot for files that
|
||||||
" contain a lot of Template-Type statements.
|
" contain a lot of Template-Type statements.
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user