mirror of
https://github.com/neovim/neovim.git
synced 2025-11-06 18:54:24 +00:00
vim-patch:partial 1588bc8ebee2 (#17657)
Update runtime files
1588bc8ebe
docs only
skip :argdedupe changes (need v8.2.3888)
skip sound_playfile changes (need +sound)
skip fuzzy-matching changes in *command-attributes* (need #17536)
This commit is contained in:
@@ -4900,7 +4900,7 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()*
|
|||||||
empty list is returned. If length of {str} is greater than
|
empty list is returned. If length of {str} is greater than
|
||||||
256, then returns an empty list.
|
256, then returns an empty list.
|
||||||
|
|
||||||
Refer to |fuzzy-match| for more information about fuzzy
|
Refer to |fuzzy-matching| for more information about fuzzy
|
||||||
matching strings.
|
matching strings.
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
|
|||||||
@@ -229,12 +229,12 @@ prompt. >
|
|||||||
call chansend(g:shell_job, [a:text, ''])
|
call chansend(g:shell_job, [a:text, ''])
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Function handling output from the shell: Added above the prompt.
|
" Function handling output from the shell: Add it above the prompt.
|
||||||
func GotOutput(channel, msg, name)
|
func GotOutput(channel, msg, name)
|
||||||
call append(line("$") - 1, a:msg)
|
call append(line("$") - 1, a:msg)
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Function handling the shell exit: close the window.
|
" Function handling the shell exits: close the window.
|
||||||
func JobExit(job, status, event)
|
func JobExit(job, status, event)
|
||||||
quit!
|
quit!
|
||||||
endfunc
|
endfunc
|
||||||
|
|||||||
@@ -1651,6 +1651,7 @@ Some variables can be set by the user, but the type cannot be changed.
|
|||||||
*v:argv* *argv-variable*
|
*v:argv* *argv-variable*
|
||||||
v:argv The command line arguments Vim was invoked with. This is a
|
v:argv The command line arguments Vim was invoked with. This is a
|
||||||
list of strings. The first item is the Vim command.
|
list of strings. The first item is the Vim command.
|
||||||
|
See |v:progpath| for the command with full path.
|
||||||
|
|
||||||
*v:beval_col* *beval_col-variable*
|
*v:beval_col* *beval_col-variable*
|
||||||
v:beval_col The number of the column, over which the mouse pointer is.
|
v:beval_col The number of the column, over which the mouse pointer is.
|
||||||
@@ -2027,6 +2028,9 @@ v:null Special value used to put "null" in JSON and NIL in msgpack.
|
|||||||
used as a String (e.g. in |expr5| with string concatenation
|
used as a String (e.g. in |expr5| with string concatenation
|
||||||
operator) and to zero when used as a Number (e.g. in |expr5|
|
operator) and to zero when used as a Number (e.g. in |expr5|
|
||||||
or |expr7| when used with numeric operators). Read-only.
|
or |expr7| when used with numeric operators). Read-only.
|
||||||
|
In some places `v:null` can be used for a List, Dict, etc.
|
||||||
|
that is not set. That is slightly different than an empty
|
||||||
|
List, Dict, etc.
|
||||||
|
|
||||||
*v:numbermax* *numbermax-variable*
|
*v:numbermax* *numbermax-variable*
|
||||||
v:numbermax Maximum value of a number.
|
v:numbermax Maximum value of a number.
|
||||||
@@ -3062,16 +3066,17 @@ text...
|
|||||||
opposite of |:lockvar|.
|
opposite of |:lockvar|.
|
||||||
|
|
||||||
:if {expr1} *:if* *:end* *:endif* *:en* *E171* *E579* *E580*
|
:if {expr1} *:if* *:end* *:endif* *:en* *E171* *E579* *E580*
|
||||||
:en[dif] Execute the commands until the next matching ":else"
|
:en[dif] Execute the commands until the next matching `:else`
|
||||||
or ":endif" if {expr1} evaluates to non-zero.
|
or `:endif` if {expr1} evaluates to non-zero.
|
||||||
Although the short forms work, it is recommended to
|
Although the short forms work, it is recommended to
|
||||||
always use `:endif` to avoid confusion.
|
always use `:endif` to avoid confusion and to make
|
||||||
|
auto-indenting work properly.
|
||||||
|
|
||||||
From Vim version 4.5 until 5.0, every Ex command in
|
From Vim version 4.5 until 5.0, every Ex command in
|
||||||
between the ":if" and ":endif" is ignored. These two
|
between the `:if` and `:endif` is ignored. These two
|
||||||
commands were just to allow for future expansions in a
|
commands were just to allow for future expansions in a
|
||||||
backward compatible way. Nesting was allowed. Note
|
backward compatible way. Nesting was allowed. Note
|
||||||
that any ":else" or ":elseif" was ignored, the "else"
|
that any `:else` or `:elseif` was ignored, the `else`
|
||||||
part was not executed either.
|
part was not executed either.
|
||||||
|
|
||||||
You can use this to remain compatible with older
|
You can use this to remain compatible with older
|
||||||
@@ -3080,32 +3085,32 @@ text...
|
|||||||
: version-5-specific-commands
|
: version-5-specific-commands
|
||||||
:endif
|
:endif
|
||||||
< The commands still need to be parsed to find the
|
< The commands still need to be parsed to find the
|
||||||
"endif". Sometimes an older Vim has a problem with a
|
`endif`. Sometimes an older Vim has a problem with a
|
||||||
new command. For example, ":silent" is recognized as
|
new command. For example, `:silent` is recognized as
|
||||||
a ":substitute" command. In that case ":execute" can
|
a `:substitute` command. In that case `:execute` can
|
||||||
avoid problems: >
|
avoid problems: >
|
||||||
:if version >= 600
|
:if version >= 600
|
||||||
: execute "silent 1,$delete"
|
: execute "silent 1,$delete"
|
||||||
:endif
|
:endif
|
||||||
<
|
<
|
||||||
NOTE: The ":append" and ":insert" commands don't work
|
NOTE: The `:append` and `:insert` commands don't work
|
||||||
properly in between ":if" and ":endif".
|
properly in between `:if` and `:endif`.
|
||||||
|
|
||||||
*:else* *:el* *E581* *E583*
|
*:else* *:el* *E581* *E583*
|
||||||
:el[se] Execute the commands until the next matching ":else"
|
:el[se] Execute the commands until the next matching `:else`
|
||||||
or ":endif" if they previously were not being
|
or `:endif` if they previously were not being
|
||||||
executed.
|
executed.
|
||||||
|
|
||||||
*:elseif* *:elsei* *E582* *E584*
|
*:elseif* *:elsei* *E582* *E584*
|
||||||
:elsei[f] {expr1} Short for ":else" ":if", with the addition that there
|
:elsei[f] {expr1} Short for `:else` `:if`, with the addition that there
|
||||||
is no extra ":endif".
|
is no extra `:endif`.
|
||||||
|
|
||||||
:wh[ile] {expr1} *:while* *:endwhile* *:wh* *:endw*
|
:wh[ile] {expr1} *:while* *:endwhile* *:wh* *:endw*
|
||||||
*E170* *E585* *E588* *E733*
|
*E170* *E585* *E588* *E733*
|
||||||
:endw[hile] Repeat the commands between ":while" and ":endwhile",
|
:endw[hile] Repeat the commands between `:while` and `:endwhile`,
|
||||||
as long as {expr1} evaluates to non-zero.
|
as long as {expr1} evaluates to non-zero.
|
||||||
When an error is detected from a command inside the
|
When an error is detected from a command inside the
|
||||||
loop, execution continues after the "endwhile".
|
loop, execution continues after the `endwhile`.
|
||||||
Example: >
|
Example: >
|
||||||
:let lnum = 1
|
:let lnum = 1
|
||||||
:while lnum <= line("$")
|
:while lnum <= line("$")
|
||||||
@@ -3113,16 +3118,16 @@ text...
|
|||||||
:let lnum = lnum + 1
|
:let lnum = lnum + 1
|
||||||
:endwhile
|
:endwhile
|
||||||
<
|
<
|
||||||
NOTE: The ":append" and ":insert" commands don't work
|
NOTE: The `:append` and `:insert` commands don't work
|
||||||
properly inside a ":while" and ":for" loop.
|
properly inside a `:while` and `:for` loop.
|
||||||
|
|
||||||
:for {var} in {object} *:for* *E690* *E732*
|
:for {var} in {object} *:for* *E690* *E732*
|
||||||
:endfo[r] *:endfo* *:endfor*
|
:endfo[r] *:endfo* *:endfor*
|
||||||
Repeat the commands between ":for" and ":endfor" for
|
Repeat the commands between `:for` and `:endfor` for
|
||||||
each item in {object}. {object} can be a |List| or
|
each item in {object}. {object} can be a |List| or
|
||||||
a |Blob|. Variable {var} is set to the value of each
|
a |Blob|. Variable {var} is set to the value of each
|
||||||
item. When an error is detected for a command inside
|
item. When an error is detected for a command inside
|
||||||
the loop, execution continues after the "endfor".
|
the loop, execution continues after the `endfor`.
|
||||||
Changing {object} inside the loop affects what items
|
Changing {object} inside the loop affects what items
|
||||||
are used. Make a copy if this is unwanted: >
|
are used. Make a copy if this is unwanted: >
|
||||||
:for item in copy(mylist)
|
:for item in copy(mylist)
|
||||||
@@ -3146,7 +3151,7 @@ text...
|
|||||||
|
|
||||||
:for [{var1}, {var2}, ...] in {listlist}
|
:for [{var1}, {var2}, ...] in {listlist}
|
||||||
:endfo[r]
|
:endfo[r]
|
||||||
Like ":for" above, but each item in {listlist} must be
|
Like `:for` above, but each item in {listlist} must be
|
||||||
a list, of which each item is assigned to {var1},
|
a list, of which each item is assigned to {var1},
|
||||||
{var2}, etc. Example: >
|
{var2}, etc. Example: >
|
||||||
:for [lnum, col] in [[1, 3], [2, 5], [3, 8]]
|
:for [lnum, col] in [[1, 3], [2, 5], [3, 8]]
|
||||||
@@ -3154,38 +3159,39 @@ text...
|
|||||||
:endfor
|
:endfor
|
||||||
<
|
<
|
||||||
*:continue* *:con* *E586*
|
*:continue* *:con* *E586*
|
||||||
:con[tinue] When used inside a ":while" or ":for" loop, jumps back
|
:con[tinue] When used inside a `:while` or `:for` loop, jumps back
|
||||||
to the start of the loop.
|
to the start of the loop.
|
||||||
If it is used after a |:try| inside the loop but
|
|
||||||
before the matching |:finally| (if present), the
|
If it is used after a `:try` inside the loop but
|
||||||
commands following the ":finally" up to the matching
|
before the matching `:finally` (if present), the
|
||||||
|:endtry| are executed first. This process applies to
|
commands following the `:finally` up to the matching
|
||||||
all nested ":try"s inside the loop. The outermost
|
`:endtry` are executed first. This process applies to
|
||||||
":endtry" then jumps back to the start of the loop.
|
all nested `:try`s inside the loop. The outermost
|
||||||
|
`:endtry` then jumps back to the start of the loop.
|
||||||
|
|
||||||
*:break* *:brea* *E587*
|
*:break* *:brea* *E587*
|
||||||
:brea[k] When used inside a ":while" or ":for" loop, skips to
|
:brea[k] When used inside a `:while` or `:for` loop, skips to
|
||||||
the command after the matching ":endwhile" or
|
the command after the matching `:endwhile` or
|
||||||
":endfor".
|
`:endfor`.
|
||||||
If it is used after a |:try| inside the loop but
|
If it is used after a `:try` inside the loop but
|
||||||
before the matching |:finally| (if present), the
|
before the matching `:finally` (if present), the
|
||||||
commands following the ":finally" up to the matching
|
commands following the `:finally` up to the matching
|
||||||
|:endtry| are executed first. This process applies to
|
`:endtry` are executed first. This process applies to
|
||||||
all nested ":try"s inside the loop. The outermost
|
all nested `:try`s inside the loop. The outermost
|
||||||
":endtry" then jumps to the command after the loop.
|
`:endtry` then jumps to the command after the loop.
|
||||||
|
|
||||||
:try *:try* *:endt* *:endtry* *E600* *E601* *E602*
|
:try *:try* *:endt* *:endtry* *E600* *E601* *E602*
|
||||||
:endt[ry] Change the error handling for the commands between
|
:endt[ry] Change the error handling for the commands between
|
||||||
":try" and ":endtry" including everything being
|
`:try` and `:endtry` including everything being
|
||||||
executed across ":source" commands, function calls,
|
executed across `:source` commands, function calls,
|
||||||
or autocommand invocations.
|
or autocommand invocations.
|
||||||
|
|
||||||
When an error or interrupt is detected and there is
|
When an error or interrupt is detected and there is
|
||||||
a |:finally| command following, execution continues
|
a `:finally` command following, execution continues
|
||||||
after the ":finally". Otherwise, or when the
|
after the `:finally`. Otherwise, or when the
|
||||||
":endtry" is reached thereafter, the next
|
`:endtry` is reached thereafter, the next
|
||||||
(dynamically) surrounding ":try" is checked for
|
(dynamically) surrounding `:try` is checked for
|
||||||
a corresponding ":finally" etc. Then the script
|
a corresponding `:finally` etc. Then the script
|
||||||
processing is terminated. Whether a function
|
processing is terminated. Whether a function
|
||||||
definition has an "abort" argument does not matter.
|
definition has an "abort" argument does not matter.
|
||||||
Example: >
|
Example: >
|
||||||
@@ -3193,9 +3199,9 @@ text...
|
|||||||
echomsg "not reached"
|
echomsg "not reached"
|
||||||
<
|
<
|
||||||
Moreover, an error or interrupt (dynamically) inside
|
Moreover, an error or interrupt (dynamically) inside
|
||||||
":try" and ":endtry" is converted to an exception. It
|
`:try` and `:endtry` is converted to an exception. It
|
||||||
can be caught as if it were thrown by a |:throw|
|
can be caught as if it were thrown by a `:throw`
|
||||||
command (see |:catch|). In this case, the script
|
command (see `:catch`). In this case, the script
|
||||||
processing is not terminated.
|
processing is not terminated.
|
||||||
|
|
||||||
The value "Vim:Interrupt" is used for an interrupt
|
The value "Vim:Interrupt" is used for an interrupt
|
||||||
@@ -3211,11 +3217,11 @@ text...
|
|||||||
try | edit | catch /^Vim(edit):E\d\+/ | echo "error" | endtry
|
try | edit | catch /^Vim(edit):E\d\+/ | echo "error" | endtry
|
||||||
<
|
<
|
||||||
*:cat* *:catch* *E603* *E604* *E605*
|
*:cat* *:catch* *E603* *E604* *E605*
|
||||||
:cat[ch] /{pattern}/ The following commands until the next |:catch|,
|
:cat[ch] /{pattern}/ The following commands until the next `:catch`,
|
||||||
|:finally|, or |:endtry| that belongs to the same
|
`:finally`, or `:endtry` that belongs to the same
|
||||||
|:try| as the ":catch" are executed when an exception
|
`:try` as the `:catch` are executed when an exception
|
||||||
matching {pattern} is being thrown and has not yet
|
matching {pattern} is being thrown and has not yet
|
||||||
been caught by a previous ":catch". Otherwise, these
|
been caught by a previous `:catch`. Otherwise, these
|
||||||
commands are skipped.
|
commands are skipped.
|
||||||
When {pattern} is omitted all errors are caught.
|
When {pattern} is omitted all errors are caught.
|
||||||
Examples: >
|
Examples: >
|
||||||
@@ -3239,27 +3245,27 @@ text...
|
|||||||
locales.
|
locales.
|
||||||
|
|
||||||
*:fina* *:finally* *E606* *E607*
|
*:fina* *:finally* *E606* *E607*
|
||||||
:fina[lly] The following commands until the matching |:endtry|
|
:fina[lly] The following commands until the matching `:endtry`
|
||||||
are executed whenever the part between the matching
|
are executed whenever the part between the matching
|
||||||
|:try| and the ":finally" is left: either by falling
|
`:try` and the `:finally` is left: either by falling
|
||||||
through to the ":finally" or by a |:continue|,
|
through to the `:finally` or by a `:continue`,
|
||||||
|:break|, |:finish|, or |:return|, or by an error or
|
`:break`, `:finish`, or `:return`, or by an error or
|
||||||
interrupt or exception (see |:throw|).
|
interrupt or exception (see `:throw`).
|
||||||
|
|
||||||
*:th* *:throw* *E608*
|
*:th* *:throw* *E608*
|
||||||
:th[row] {expr1} The {expr1} is evaluated and thrown as an exception.
|
:th[row] {expr1} The {expr1} is evaluated and thrown as an exception.
|
||||||
If the ":throw" is used after a |:try| but before the
|
If the `:throw` is used after a `:try` but before the
|
||||||
first corresponding |:catch|, commands are skipped
|
first corresponding `:catch`, commands are skipped
|
||||||
until the first ":catch" matching {expr1} is reached.
|
until the first `:catch` matching {expr1} is reached.
|
||||||
If there is no such ":catch" or if the ":throw" is
|
If there is no such `:catch` or if the `:throw` is
|
||||||
used after a ":catch" but before the |:finally|, the
|
used after a `:catch` but before the `:finally`, the
|
||||||
commands following the ":finally" (if present) up to
|
commands following the `:finally` (if present) up to
|
||||||
the matching |:endtry| are executed. If the ":throw"
|
the matching `:endtry` are executed. If the `:throw`
|
||||||
is after the ":finally", commands up to the ":endtry"
|
is after the `:finally`, commands up to the `:endtry`
|
||||||
are skipped. At the ":endtry", this process applies
|
are skipped. At the `:endtry`, this process applies
|
||||||
again for the next dynamically surrounding ":try"
|
again for the next dynamically surrounding `:try`
|
||||||
(which may be found in a calling function or sourcing
|
(which may be found in a calling function or sourcing
|
||||||
script), until a matching ":catch" has been found.
|
script), until a matching `:catch` has been found.
|
||||||
If the exception is not caught, the command processing
|
If the exception is not caught, the command processing
|
||||||
is terminated.
|
is terminated.
|
||||||
Example: >
|
Example: >
|
||||||
@@ -3274,7 +3280,7 @@ text...
|
|||||||
Also see |:comment|.
|
Also see |:comment|.
|
||||||
Use "\n" to start a new line. Use "\r" to move the
|
Use "\n" to start a new line. Use "\r" to move the
|
||||||
cursor to the first column.
|
cursor to the first column.
|
||||||
Uses the highlighting set by the |:echohl| command.
|
Uses the highlighting set by the `:echohl` command.
|
||||||
Cannot be followed by a comment.
|
Cannot be followed by a comment.
|
||||||
Example: >
|
Example: >
|
||||||
:echo "the value of 'shell' is" &shell
|
:echo "the value of 'shell' is" &shell
|
||||||
@@ -3283,9 +3289,9 @@ text...
|
|||||||
And since Vim mostly postpones redrawing until it's
|
And since Vim mostly postpones redrawing until it's
|
||||||
finished with a sequence of commands this happens
|
finished with a sequence of commands this happens
|
||||||
quite often. To avoid that a command from before the
|
quite often. To avoid that a command from before the
|
||||||
":echo" causes a redraw afterwards (redraws are often
|
`:echo` causes a redraw afterwards (redraws are often
|
||||||
postponed until you type something), force a redraw
|
postponed until you type something), force a redraw
|
||||||
with the |:redraw| command. Example: >
|
with the `:redraw` command. Example: >
|
||||||
:new | redraw | echo "there is a new window"
|
:new | redraw | echo "there is a new window"
|
||||||
< *:echo-self-refer*
|
< *:echo-self-refer*
|
||||||
When printing nested containers echo prints second
|
When printing nested containers echo prints second
|
||||||
@@ -3304,13 +3310,13 @@ text...
|
|||||||
*:echon*
|
*:echon*
|
||||||
:echon {expr1} .. Echoes each {expr1}, without anything added. Also see
|
:echon {expr1} .. Echoes each {expr1}, without anything added. Also see
|
||||||
|:comment|.
|
|:comment|.
|
||||||
Uses the highlighting set by the |:echohl| command.
|
Uses the highlighting set by the `:echohl` command.
|
||||||
Cannot be followed by a comment.
|
Cannot be followed by a comment.
|
||||||
Example: >
|
Example: >
|
||||||
:echon "the value of 'shell' is " &shell
|
:echon "the value of 'shell' is " &shell
|
||||||
<
|
<
|
||||||
Note the difference between using ":echo", which is a
|
Note the difference between using `:echo`, which is a
|
||||||
Vim command, and ":!echo", which is an external shell
|
Vim command, and `:!echo`, which is an external shell
|
||||||
command: >
|
command: >
|
||||||
:!echo % --> filename
|
:!echo % --> filename
|
||||||
< The arguments of ":!" are expanded, see |:_%|. >
|
< The arguments of ":!" are expanded, see |:_%|. >
|
||||||
@@ -3326,8 +3332,8 @@ text...
|
|||||||
|
|
||||||
*:echoh* *:echohl*
|
*:echoh* *:echohl*
|
||||||
:echoh[l] {name} Use the highlight group {name} for the following
|
:echoh[l] {name} Use the highlight group {name} for the following
|
||||||
|:echo|, |:echon| and |:echomsg| commands. Also used
|
`:echo`, `:echon` and `:echomsg` commands. Also used
|
||||||
for the |input()| prompt. Example: >
|
for the `input()` prompt. Example: >
|
||||||
:echohl WarningMsg | echo "Don't panic!" | echohl None
|
:echohl WarningMsg | echo "Don't panic!" | echohl None
|
||||||
< Don't forget to set the group back to "None",
|
< Don't forget to set the group back to "None",
|
||||||
otherwise all following echo's will be highlighted.
|
otherwise all following echo's will be highlighted.
|
||||||
@@ -3336,14 +3342,14 @@ text...
|
|||||||
:echom[sg] {expr1} .. Echo the expression(s) as a true message, saving the
|
:echom[sg] {expr1} .. Echo the expression(s) as a true message, saving the
|
||||||
message in the |message-history|.
|
message in the |message-history|.
|
||||||
Spaces are placed between the arguments as with the
|
Spaces are placed between the arguments as with the
|
||||||
|:echo| command. But unprintable characters are
|
`:echo` command. But unprintable characters are
|
||||||
displayed, not interpreted.
|
displayed, not interpreted.
|
||||||
The parsing works slightly different from |:echo|,
|
The parsing works slightly different from `:echo`,
|
||||||
more like |:execute|. All the expressions are first
|
more like `:execute`. All the expressions are first
|
||||||
evaluated and concatenated before echoing anything.
|
evaluated and concatenated before echoing anything.
|
||||||
If expressions does not evaluate to a Number or
|
If expressions does not evaluate to a Number or
|
||||||
String, string() is used to turn it into a string.
|
String, string() is used to turn it into a string.
|
||||||
Uses the highlighting set by the |:echohl| command.
|
Uses the highlighting set by the `:echohl` command.
|
||||||
Example: >
|
Example: >
|
||||||
:echomsg "It's a Zizzer Zazzer Zuzz, as you can plainly see."
|
:echomsg "It's a Zizzer Zazzer Zuzz, as you can plainly see."
|
||||||
< See |:echo-redraw| to avoid the message disappearing
|
< See |:echo-redraw| to avoid the message disappearing
|
||||||
@@ -3353,12 +3359,12 @@ text...
|
|||||||
message in the |message-history|. When used in a
|
message in the |message-history|. When used in a
|
||||||
script or function the line number will be added.
|
script or function the line number will be added.
|
||||||
Spaces are placed between the arguments as with the
|
Spaces are placed between the arguments as with the
|
||||||
|:echomsg| command. When used inside a try conditional,
|
`:echomsg` command. When used inside a try conditional,
|
||||||
the message is raised as an error exception instead
|
the message is raised as an error exception instead
|
||||||
(see |try-echoerr|).
|
(see |try-echoerr|).
|
||||||
Example: >
|
Example: >
|
||||||
:echoerr "This script just failed!"
|
:echoerr "This script just failed!"
|
||||||
< If you just want a highlighted message use |:echohl|.
|
< If you just want a highlighted message use `:echohl`.
|
||||||
And to get a beep: >
|
And to get a beep: >
|
||||||
:exe "normal \<Esc>"
|
:exe "normal \<Esc>"
|
||||||
<
|
<
|
||||||
|
|||||||
@@ -269,8 +269,8 @@ start allow backspacing over the start position of insert; CTRL-W and
|
|||||||
When 'backspace' is empty, Vi compatible backspacing is used. You cannot
|
When 'backspace' is empty, Vi compatible backspacing is used. You cannot
|
||||||
backspace over autoindent, before column 1 or before where insert started.
|
backspace over autoindent, before column 1 or before where insert started.
|
||||||
|
|
||||||
For backwards compatibility the values "0", "1" and "2" are also allowed, see
|
For backwards compatibility the values "0", "1", "2" and "3" are also allowed,
|
||||||
|'backspace'|.
|
see |'backspace'|.
|
||||||
|
|
||||||
If the 'backspace' option does contain "eol" and the cursor is in column 1
|
If the 'backspace' option does contain "eol" and the cursor is in column 1
|
||||||
when one of the three keys is used, the current line is joined with the
|
when one of the three keys is used, the current line is joined with the
|
||||||
@@ -798,6 +798,7 @@ CTRL-X CTRL-K Search the files given with the 'dictionary' option
|
|||||||
the 'dictionary' option is empty.
|
the 'dictionary' option is empty.
|
||||||
For suggestions where to find a list of words, see the
|
For suggestions where to find a list of words, see the
|
||||||
'dictionary' option.
|
'dictionary' option.
|
||||||
|
'ignorecase', 'smartcase' and 'infercase' apply.
|
||||||
|
|
||||||
CTRL-K or
|
CTRL-K or
|
||||||
CTRL-N Search forward for next matching keyword. This
|
CTRL-N Search forward for next matching keyword. This
|
||||||
|
|||||||
@@ -153,9 +153,10 @@ index, on which the cursor is. This can look like this: >
|
|||||||
Note: the count does not take offset into account.
|
Note: the count does not take offset into account.
|
||||||
|
|
||||||
When no match is found you get the error: *E486* Pattern not found
|
When no match is found you get the error: *E486* Pattern not found
|
||||||
Note that for the |:global| command this behaves like a normal message, for Vi
|
Note that for the `:global` command, you get a normal message "Pattern not
|
||||||
compatibility. For the |:s| command the "e" flag can be used to avoid the
|
found", for Vi compatibility.
|
||||||
error message |:s_flags|.
|
For the |:s| command the "e" flag can be used to avoid the error message
|
||||||
|
|:s_flags|.
|
||||||
|
|
||||||
*search-offset* *{offset}*
|
*search-offset* *{offset}*
|
||||||
These commands search for the specified pattern. With "/" and "?" an
|
These commands search for the specified pattern. With "/" and "?" an
|
||||||
@@ -1422,7 +1423,7 @@ Finally, these constructs are unique to Perl:
|
|||||||
":2match" for another plugin.
|
":2match" for another plugin.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
11. Fuzzy matching *fuzzy-match*
|
11. Fuzzy matching *fuzzy-matching*
|
||||||
|
|
||||||
Fuzzy matching refers to matching strings using a non-exact search string.
|
Fuzzy matching refers to matching strings using a non-exact search string.
|
||||||
Fuzzy matching will match a string, if all the characters in the search string
|
Fuzzy matching will match a string, if all the characters in the search string
|
||||||
|
|||||||
@@ -642,22 +642,25 @@ instead. If the buffer in the used window has changed, and the error is in
|
|||||||
another file, jumping to the error will fail. You will first have to make
|
another file, jumping to the error will fail. You will first have to make
|
||||||
sure the window contains a buffer which can be abandoned.
|
sure the window contains a buffer which can be abandoned.
|
||||||
|
|
||||||
The following steps are used to find a window to open the file selected from
|
When you select a file from the quickfix window, the following steps are used
|
||||||
the quickfix window:
|
to find a window to edit the file:
|
||||||
1. If 'switchbuf' contains "usetab", then find a window in any tabpage
|
|
||||||
(starting with the first tabpage) that has the selected file and jump to
|
1. If a window displaying the selected file is present in the current tabpage
|
||||||
it.
|
(starting with the window before the quickfix window), then that window is
|
||||||
2. Otherwise find a window displaying the selected file in the current tab
|
used.
|
||||||
page (starting with the window before the quickfix window) and use it.
|
2. If the above step fails and if 'switchbuf' contains "usetab" and a window
|
||||||
3. Otherwise find a window displaying a normal buffer ('buftype' is empty)
|
displaying the selected file is present in any one of the tabpages
|
||||||
starting with the window before the quickfix window. If a window is found,
|
(starting with the first tabpage) then that window is used.
|
||||||
open the file in that window.
|
3. If the above step fails then a window in the current tabpage displaying a
|
||||||
4. If a usable window is not found and 'switchbuf' contains "uselast", then
|
buffer with 'buftype' not set (starting with the window before the quickfix
|
||||||
open the file in the last used window.
|
window) is used.
|
||||||
5. Otherwise open the file in the window before the quickfix window. If there
|
4. If the above step fails and if 'switchbuf' contains "uselast", then the
|
||||||
is no previous window, then open the file in the next window.
|
previously accessed window is used.
|
||||||
6. If a usable window is not found in the above steps, then create a new
|
5. If the above step fails then the window before the quickfix window is used.
|
||||||
horizontally split window above the quickfix window and open the file.
|
If there is no previous window, then the window after the quickfix window
|
||||||
|
is used.
|
||||||
|
6. If the above step fails, then a new horizontally split window above the
|
||||||
|
quickfix window is used.
|
||||||
|
|
||||||
*CTRL-W_<Enter>* *CTRL-W_<CR>*
|
*CTRL-W_<Enter>* *CTRL-W_<CR>*
|
||||||
You can use CTRL-W <Enter> to open a new window and jump to the error there.
|
You can use CTRL-W <Enter> to open a new window and jump to the error there.
|
||||||
@@ -697,13 +700,15 @@ this window, the displayed location list is used.
|
|||||||
When you select a file from the location list window, the following steps are
|
When you select a file from the location list window, the following steps are
|
||||||
used to find a window to edit the file:
|
used to find a window to edit the file:
|
||||||
|
|
||||||
1. If a window with the location list displayed in the location list window is
|
1. If a non-quickfix window associated with the location list is present in
|
||||||
present, then the file is opened in that window.
|
the current tabpage, then that window is used.
|
||||||
2. If the above step fails and if the file is already opened in another
|
2. If the above step fails and if the file is already opened in another window
|
||||||
window, then that window is used.
|
in the current tabpage, then that window is used.
|
||||||
3. If the above step fails then an existing window showing a buffer with
|
3. If the above step fails and 'switchbuf' contains "usetab" and if the file
|
||||||
'buftype' not set is used.
|
is opened in a window in any one of the tabpages, then that window is used.
|
||||||
4. If the above step fails, then the file is edited in a new window.
|
4. If the above step fails then a window in the current tabpage showing a
|
||||||
|
buffer with 'buftype' not set is used.
|
||||||
|
5. If the above step fails, then the file is edited in a new window.
|
||||||
|
|
||||||
In all of the above cases, if the location list for the selected window is not
|
In all of the above cases, if the location list for the selected window is not
|
||||||
yet set, then it is set to the location list displayed in the location list
|
yet set, then it is set to the location list displayed in the location list
|
||||||
@@ -1036,7 +1041,7 @@ commands can be combined to create a NewGrep command: >
|
|||||||
matching is used to find matching lines. In this
|
matching is used to find matching lines. In this
|
||||||
case, {pattern} is treated as a literal string
|
case, {pattern} is treated as a literal string
|
||||||
instead of a regular expression. See
|
instead of a regular expression. See
|
||||||
|fuzzy-match| for more information about fuzzy
|
|fuzzy-matching| for more information about fuzzy
|
||||||
matching strings.
|
matching strings.
|
||||||
|
|
||||||
|QuickFixCmdPre| and |QuickFixCmdPost| are triggered.
|
|QuickFixCmdPre| and |QuickFixCmdPost| are triggered.
|
||||||
|
|||||||
@@ -4388,7 +4388,7 @@ Leading context *:syn-lc* *:syn-leading* *:syn-context*
|
|||||||
|
|
||||||
Note: This is an obsolete feature, only included for backwards compatibility
|
Note: This is an obsolete feature, only included for backwards compatibility
|
||||||
with previous Vim versions. It's now recommended to use the |/\@<=| construct
|
with previous Vim versions. It's now recommended to use the |/\@<=| construct
|
||||||
in the pattern.
|
in the pattern. You can also often use |/\zs|.
|
||||||
|
|
||||||
The "lc" offset specifies leading context -- a part of the pattern that must
|
The "lc" offset specifies leading context -- a part of the pattern that must
|
||||||
be present, but is not considered part of the match. An offset of "lc=n" will
|
be present, but is not considered part of the match. An offset of "lc=n" will
|
||||||
|
|||||||
@@ -129,11 +129,12 @@ Kibaale Children's Centre *kcc* *Kibaale* *charity*
|
|||||||
Kibaale Children's Centre (KCC) is located in Kibaale, a small town in the
|
Kibaale Children's Centre (KCC) is located in Kibaale, a small town in the
|
||||||
south of Uganda, near Tanzania, in East Africa. The area is known as Rakai
|
south of Uganda, near Tanzania, in East Africa. The area is known as Rakai
|
||||||
District. The population is mostly farmers. Although people are poor, there
|
District. The population is mostly farmers. Although people are poor, there
|
||||||
is enough food. But this district is suffering from AIDS more than any other
|
usually is enough food. But this district is suffering from AIDS more than
|
||||||
part of the world. Some say that it started there. Estimations are that 10
|
any other part of the world. Some say that it started there. Estimations are
|
||||||
to 30% of the Ugandans are infected with HIV. Because parents die, there are
|
that in the past 10 to 30% of the Ugandans are infected with HIV. Because
|
||||||
many orphans. In this district about 60,000 children have lost one or both
|
parents die, there are many orphans. In this district about 60,000 children
|
||||||
parents, out of a population of 350,000. And this is still continuing.
|
have lost one or both parents, out of a population of 350,000. Although AIDS
|
||||||
|
is now mostly under control, the problems are still continuing.
|
||||||
|
|
||||||
The children need a lot of help. The KCC is working hard to provide the needy
|
The children need a lot of help. The KCC is working hard to provide the needy
|
||||||
with food, medical care and education. Food and medical care to keep them
|
with food, medical care and education. Food and medical care to keep them
|
||||||
|
|||||||
Reference in New Issue
Block a user