mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #2542 from Pyrohh/docs-not-in-vi
[RDY] doc: Remove Vi annotations + outdated portions of Python docs
This commit is contained in:
commit
0d6ce4c770
@ -6,8 +6,6 @@
|
|||||||
|
|
||||||
Arabic Language support (options & mappings) for Vim *Arabic*
|
Arabic Language support (options & mappings) for Vim *Arabic*
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
*E800*
|
*E800*
|
||||||
In order to use right-to-left and Arabic mapping support, it is
|
In order to use right-to-left and Arabic mapping support, it is
|
||||||
necessary to compile VIM with the |+arabic| feature.
|
necessary to compile VIM with the |+arabic| feature.
|
||||||
|
@ -20,9 +20,6 @@ For a basic explanation, see section |40.3| in the user manual.
|
|||||||
10. Using autocommands |autocmd-use|
|
10. Using autocommands |autocmd-use|
|
||||||
11. Disabling autocommands |autocmd-disable|
|
11. Disabling autocommands |autocmd-disable|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
{only when the |+autocmd| feature has not been disabled at compile time}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Introduction *autocmd-intro*
|
1. Introduction *autocmd-intro*
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ For inserting text see |insert.txt|.
|
|||||||
The <Del> key does not take a [count]. Instead, it
|
The <Del> key does not take a [count]. Instead, it
|
||||||
deletes the last character of the count.
|
deletes the last character of the count.
|
||||||
See |'whichwrap'| for deleting a line break (join
|
See |'whichwrap'| for deleting a line break (join
|
||||||
lines). {Vi does not support <Del>}
|
lines).
|
||||||
|
|
||||||
*X* *dh*
|
*X* *dh*
|
||||||
["x]X Delete [count] characters before the cursor [into
|
["x]X Delete [count] characters before the cursor [into
|
||||||
@ -58,7 +58,7 @@ For inserting text see |insert.txt|.
|
|||||||
{Visual}["x]x or *v_x* *v_d* *v_<Del>*
|
{Visual}["x]x or *v_x* *v_d* *v_<Del>*
|
||||||
{Visual}["x]d or
|
{Visual}["x]d or
|
||||||
{Visual}["x]<Del> Delete the highlighted text [into register x] (for
|
{Visual}["x]<Del> Delete the highlighted text [into register x] (for
|
||||||
{Visual} see |Visual-mode|). {not in Vi}
|
{Visual} see |Visual-mode|).
|
||||||
|
|
||||||
{Visual}["x]CTRL-H or *v_CTRL-H* *v_<BS>*
|
{Visual}["x]CTRL-H or *v_CTRL-H* *v_<BS>*
|
||||||
{Visual}["x]<BS> When in Select mode: Delete the highlighted text [into
|
{Visual}["x]<BS> When in Select mode: Delete the highlighted text [into
|
||||||
@ -68,7 +68,7 @@ For inserting text see |insert.txt|.
|
|||||||
{Visual}["x]D Delete the highlighted lines [into register x] (for
|
{Visual}["x]D Delete the highlighted lines [into register x] (for
|
||||||
{Visual} see |Visual-mode|). In Visual block mode,
|
{Visual} see |Visual-mode|). In Visual block mode,
|
||||||
"D" deletes the highlighted text plus all text until
|
"D" deletes the highlighted text plus all text until
|
||||||
the end of the line. {not in Vi}
|
the end of the line.
|
||||||
|
|
||||||
*:d* *:de* *:del* *:delete* *:dl* *:dp*
|
*:d* *:de* *:del* *:delete* *:dl* *:dp*
|
||||||
:[range]d[elete] [x] Delete [range] lines (default: current line) [into
|
:[range]d[elete] [x] Delete [range] lines (default: current line) [into
|
||||||
@ -113,16 +113,15 @@ J Join [count] lines, with a minimum of two lines.
|
|||||||
*v_J*
|
*v_J*
|
||||||
{Visual}J Join the highlighted lines, with a minimum of two
|
{Visual}J Join the highlighted lines, with a minimum of two
|
||||||
lines. Remove the indent and insert up to two spaces
|
lines. Remove the indent and insert up to two spaces
|
||||||
(see below). {not in Vi}
|
(see below).
|
||||||
|
|
||||||
*gJ*
|
*gJ*
|
||||||
gJ Join [count] lines, with a minimum of two lines.
|
gJ Join [count] lines, with a minimum of two lines.
|
||||||
Don't insert or remove any spaces. {not in Vi}
|
Don't insert or remove any spaces.
|
||||||
|
|
||||||
*v_gJ*
|
*v_gJ*
|
||||||
{Visual}gJ Join the highlighted lines, with a minimum of two
|
{Visual}gJ Join the highlighted lines, with a minimum of two
|
||||||
lines. Don't insert or remove any spaces. {not in
|
lines. Don't insert or remove any spaces.
|
||||||
Vi}
|
|
||||||
|
|
||||||
*:j* *:join*
|
*:j* *:join*
|
||||||
:[range]j[oin][!] [flags]
|
:[range]j[oin][!] [flags]
|
||||||
@ -131,7 +130,6 @@ gJ Join [count] lines, with a minimum of two lines.
|
|||||||
If a [range] has equal start and end values, this
|
If a [range] has equal start and end values, this
|
||||||
command does nothing. The default behavior is to
|
command does nothing. The default behavior is to
|
||||||
join the current line with the line below it.
|
join the current line with the line below it.
|
||||||
{not in Vi: !}
|
|
||||||
See |ex-flags| for [flags].
|
See |ex-flags| for [flags].
|
||||||
|
|
||||||
:[range]j[oin][!] {count} [flags]
|
:[range]j[oin][!] {count} [flags]
|
||||||
@ -139,7 +137,6 @@ gJ Join [count] lines, with a minimum of two lines.
|
|||||||
current line |cmdline-ranges|). Same as "J", except
|
current line |cmdline-ranges|). Same as "J", except
|
||||||
with [!] the join does not insert or delete any
|
with [!] the join does not insert or delete any
|
||||||
spaces.
|
spaces.
|
||||||
{not in Vi: !}
|
|
||||||
See |ex-flags| for [flags].
|
See |ex-flags| for [flags].
|
||||||
|
|
||||||
These commands delete the <EOL> between lines. This has the effect of joining
|
These commands delete the <EOL> between lines. This has the effect of joining
|
||||||
@ -208,8 +205,7 @@ gR Enter Virtual Replace mode: Each character you type
|
|||||||
|
|
||||||
{Visual}["x]c or *v_c* *v_s*
|
{Visual}["x]c or *v_c* *v_s*
|
||||||
{Visual}["x]s Delete the highlighted text [into register x] and
|
{Visual}["x]s Delete the highlighted text [into register x] and
|
||||||
start insert (for {Visual} see |Visual-mode|). {not
|
start insert (for {Visual} see |Visual-mode|).
|
||||||
in Vi}
|
|
||||||
|
|
||||||
*v_r*
|
*v_r*
|
||||||
{Visual}["x]r{char} Replace all selected characters by {char}.
|
{Visual}["x]r{char} Replace all selected characters by {char}.
|
||||||
@ -217,14 +213,14 @@ gR Enter Virtual Replace mode: Each character you type
|
|||||||
*v_C*
|
*v_C*
|
||||||
{Visual}["x]C Delete the highlighted lines [into register x] and
|
{Visual}["x]C Delete the highlighted lines [into register x] and
|
||||||
start insert. In Visual block mode it works
|
start insert. In Visual block mode it works
|
||||||
differently |v_b_C|. {not in Vi}
|
differently |v_b_C|.
|
||||||
*v_S*
|
*v_S*
|
||||||
{Visual}["x]S Delete the highlighted lines [into register x] and
|
{Visual}["x]S Delete the highlighted lines [into register x] and
|
||||||
start insert (for {Visual} see |Visual-mode|). {not
|
start insert (for {Visual} see |Visual-mode|).
|
||||||
in Vi}
|
|
||||||
*v_R*
|
*v_R*
|
||||||
{Visual}["x]R Currently just like {Visual}["x]S. In a next version
|
{Visual}["x]R Currently just like {Visual}["x]S. In a next version
|
||||||
it might work differently. {not in Vi}
|
it might work differently.
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- You can end Insert and Replace mode with <Esc>.
|
- You can end Insert and Replace mode with <Esc>.
|
||||||
@ -269,8 +265,6 @@ r{char} Replace the character under the cursor with {char}.
|
|||||||
If {char} is a <CR> or <NL>, a line break replaces the
|
If {char} is a <CR> or <NL>, a line break replaces the
|
||||||
character. To replace with a real <CR>, use CTRL-V
|
character. To replace with a real <CR>, use CTRL-V
|
||||||
<CR>. CTRL-V <NL> replaces with a <Nul>.
|
<CR>. CTRL-V <NL> replaces with a <Nul>.
|
||||||
{Vi: CTRL-V <CR> still replaces with a line break,
|
|
||||||
cannot replace something with a <CR>}
|
|
||||||
|
|
||||||
If {char} is CTRL-E or CTRL-Y the character from the
|
If {char} is CTRL-E or CTRL-Y the character from the
|
||||||
line below or above is used, just like with |i_CTRL-E|
|
line below or above is used, just like with |i_CTRL-E|
|
||||||
@ -313,28 +307,26 @@ The following commands change the case of letters. The currently active
|
|||||||
*~*
|
*~*
|
||||||
~ 'notildeop' option: Switch case of the character
|
~ 'notildeop' option: Switch case of the character
|
||||||
under the cursor and move the cursor to the right.
|
under the cursor and move the cursor to the right.
|
||||||
If a [count] is given, do that many characters. {Vi:
|
If a [count] is given, do that many characters.
|
||||||
no count}
|
|
||||||
|
|
||||||
~{motion} 'tildeop' option: switch case of {motion} text. {Vi:
|
~{motion} 'tildeop' option: switch case of {motion} text.
|
||||||
tilde cannot be used as an operator}
|
|
||||||
|
|
||||||
*g~*
|
*g~*
|
||||||
g~{motion} Switch case of {motion} text. {not in Vi}
|
g~{motion} Switch case of {motion} text.
|
||||||
|
|
||||||
g~g~ *g~g~* *g~~*
|
g~g~ *g~g~* *g~~*
|
||||||
g~~ Switch case of current line. {not in Vi}.
|
g~~ Switch case of current line.
|
||||||
|
|
||||||
*v_~*
|
*v_~*
|
||||||
{Visual}~ Switch case of highlighted text (for {Visual} see
|
{Visual}~ Switch case of highlighted text (for {Visual} see
|
||||||
|Visual-mode|). {not in Vi}
|
|Visual-mode|).
|
||||||
|
|
||||||
*v_U*
|
*v_U*
|
||||||
{Visual}U Make highlighted text uppercase (for {Visual} see
|
{Visual}U Make highlighted text uppercase (for {Visual} see
|
||||||
|Visual-mode|). {not in Vi}
|
|Visual-mode|).
|
||||||
|
|
||||||
*gU* *uppercase*
|
*gU* *uppercase*
|
||||||
gU{motion} Make {motion} text uppercase. {not in Vi}
|
gU{motion} Make {motion} text uppercase.
|
||||||
Example: >
|
Example: >
|
||||||
:map! <C-F> <Esc>gUiw`]a
|
:map! <C-F> <Esc>gUiw`]a
|
||||||
< This works in Insert mode: press CTRL-F to make the
|
< This works in Insert mode: press CTRL-F to make the
|
||||||
@ -343,27 +335,27 @@ gU{motion} Make {motion} text uppercase. {not in Vi}
|
|||||||
|
|
||||||
|
|
||||||
gUgU *gUgU* *gUU*
|
gUgU *gUgU* *gUU*
|
||||||
gUU Make current line uppercase. {not in Vi}.
|
gUU Make current line uppercase.
|
||||||
|
|
||||||
*v_u*
|
*v_u*
|
||||||
{Visual}u Make highlighted text lowercase (for {Visual} see
|
{Visual}u Make highlighted text lowercase (for {Visual} see
|
||||||
|Visual-mode|). {not in Vi}
|
|Visual-mode|).
|
||||||
|
|
||||||
*gu* *lowercase*
|
*gu* *lowercase*
|
||||||
gu{motion} Make {motion} text lowercase. {not in Vi}
|
gu{motion} Make {motion} text lowercase.
|
||||||
|
|
||||||
gugu *gugu* *guu*
|
gugu *gugu* *guu*
|
||||||
guu Make current line lowercase. {not in Vi}.
|
guu Make current line lowercase.
|
||||||
|
|
||||||
*g?* *rot13*
|
*g?* *rot13*
|
||||||
g?{motion} Rot13 encode {motion} text. {not in Vi}
|
g?{motion} Rot13 encode {motion} text.
|
||||||
|
|
||||||
*v_g?*
|
*v_g?*
|
||||||
{Visual}g? Rot13 encode the highlighted text (for {Visual} see
|
{Visual}g? Rot13 encode the highlighted text (for {Visual} see
|
||||||
|Visual-mode|). {not in Vi}
|
|Visual-mode|).
|
||||||
|
|
||||||
g?g? *g?g?* *g??*
|
g?g? *g?g?* *g??*
|
||||||
g?? Rot13 encode current line. {not in Vi}.
|
g?? Rot13 encode current line.
|
||||||
|
|
||||||
To turn one line into title caps, make every first letter of a word
|
To turn one line into title caps, make every first letter of a word
|
||||||
uppercase: >
|
uppercase: >
|
||||||
@ -373,11 +365,11 @@ uppercase: >
|
|||||||
Adding and subtracting ~
|
Adding and subtracting ~
|
||||||
*CTRL-A*
|
*CTRL-A*
|
||||||
CTRL-A Add [count] to the number or alphabetic character at
|
CTRL-A Add [count] to the number or alphabetic character at
|
||||||
or after the cursor. {not in Vi}
|
or after the cursor.
|
||||||
|
|
||||||
*CTRL-X*
|
*CTRL-X*
|
||||||
CTRL-X Subtract [count] from the number or alphabetic
|
CTRL-X Subtract [count] from the number or alphabetic
|
||||||
character at or after the cursor. {not in Vi}
|
character at or after the cursor.
|
||||||
|
|
||||||
The CTRL-A and CTRL-X commands work for (signed) decimal numbers, unsigned
|
The CTRL-A and CTRL-X commands work for (signed) decimal numbers, unsigned
|
||||||
octal and hexadecimal numbers and alphabetic characters. This depends on the
|
octal and hexadecimal numbers and alphabetic characters. This depends on the
|
||||||
@ -428,8 +420,7 @@ SHIFTING LINES LEFT OR RIGHT *shift-left-right*
|
|||||||
|
|
||||||
*v_<*
|
*v_<*
|
||||||
{Visual}[count]< Shift the highlighted lines [count] 'shiftwidth'
|
{Visual}[count]< Shift the highlighted lines [count] 'shiftwidth'
|
||||||
leftwards (for {Visual} see |Visual-mode|). {not in
|
leftwards (for {Visual} see |Visual-mode|).
|
||||||
Vi}
|
|
||||||
|
|
||||||
*>*
|
*>*
|
||||||
>{motion} Shift {motion} lines one 'shiftwidth' rightwards.
|
>{motion} Shift {motion} lines one 'shiftwidth' rightwards.
|
||||||
@ -439,8 +430,7 @@ SHIFTING LINES LEFT OR RIGHT *shift-left-right*
|
|||||||
|
|
||||||
*v_>*
|
*v_>*
|
||||||
{Visual}[count]> Shift the highlighted lines [count] 'shiftwidth'
|
{Visual}[count]> Shift the highlighted lines [count] 'shiftwidth'
|
||||||
rightwards (for {Visual} see |Visual-mode|). {not in
|
rightwards (for {Visual} see |Visual-mode|).
|
||||||
Vi}
|
|
||||||
|
|
||||||
*:<*
|
*:<*
|
||||||
:[range]< Shift [range] lines one 'shiftwidth' left. Repeat '<'
|
:[range]< Shift [range] lines one 'shiftwidth' left. Repeat '<'
|
||||||
@ -451,7 +441,7 @@ SHIFTING LINES LEFT OR RIGHT *shift-left-right*
|
|||||||
Repeat '<' for shifting multiple 'shiftwidth's.
|
Repeat '<' for shifting multiple 'shiftwidth's.
|
||||||
|
|
||||||
:[range]le[ft] [indent] left align lines in [range]. Sets the indent in the
|
:[range]le[ft] [indent] left align lines in [range]. Sets the indent in the
|
||||||
lines to [indent] (default 0). {not in Vi}
|
lines to [indent] (default 0).
|
||||||
|
|
||||||
*:>*
|
*:>*
|
||||||
:[range]> [flags] Shift {count} [range] lines one 'shiftwidth' right.
|
:[range]> [flags] Shift {count} [range] lines one 'shiftwidth' right.
|
||||||
@ -517,7 +507,6 @@ with ".". Vim does not recognize a comment (starting with '"') after the
|
|||||||
*v_!*
|
*v_!*
|
||||||
{Visual}!{filter} Filter the highlighted lines through the external
|
{Visual}!{filter} Filter the highlighted lines through the external
|
||||||
program {filter} (for {Visual} see |Visual-mode|).
|
program {filter} (for {Visual} see |Visual-mode|).
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
:{range}![!]{filter} [!][arg] *:range!*
|
:{range}![!]{filter} [!][arg] *:range!*
|
||||||
Filter {range} lines through the external program
|
Filter {range} lines through the external program
|
||||||
@ -551,7 +540,6 @@ with ".". Vim does not recognize a comment (starting with '"') after the
|
|||||||
|
|
||||||
*v_=*
|
*v_=*
|
||||||
{Visual}= Filter the highlighted lines like with ={motion}.
|
{Visual}= Filter the highlighted lines like with ={motion}.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
|
|
||||||
*tempfile* *setuid*
|
*tempfile* *setuid*
|
||||||
@ -612,15 +600,13 @@ g& Synonym for `:%s//~/&` (repeat last substitute with
|
|||||||
For example, when you first do a substitution with
|
For example, when you first do a substitution with
|
||||||
`:s/pattern/repl/flags` and then `/search` for
|
`:s/pattern/repl/flags` and then `/search` for
|
||||||
something else, `g&` will do `:%s/search/repl/flags`.
|
something else, `g&` will do `:%s/search/repl/flags`.
|
||||||
Mnemonic: global substitute. {not in Vi}
|
Mnemonic: global substitute.
|
||||||
|
|
||||||
*:snomagic* *:sno*
|
*:snomagic* *:sno*
|
||||||
:[range]sno[magic] ... Same as `:substitute`, but always use 'nomagic'.
|
:[range]sno[magic] ... Same as `:substitute`, but always use 'nomagic'.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:smagic* *:sm*
|
*:smagic* *:sm*
|
||||||
:[range]sm[agic] ... Same as `:substitute`, but always use 'magic'.
|
:[range]sm[agic] ... Same as `:substitute`, but always use 'magic'.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:s_flags*
|
*:s_flags*
|
||||||
The flags that you can use for the substitute commands:
|
The flags that you can use for the substitute commands:
|
||||||
@ -630,7 +616,6 @@ The flags that you can use for the substitute commands:
|
|||||||
:&&
|
:&&
|
||||||
:s/this/that/&
|
:s/this/that/&
|
||||||
< Note that `:s` and `:&` don't keep the flags.
|
< Note that `:s` and `:&` don't keep the flags.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
[c] Confirm each substitution. Vim highlights the matching string (with
|
[c] Confirm each substitution. Vim highlights the matching string (with
|
||||||
|hl-IncSearch|). You can type: *:s_c*
|
|hl-IncSearch|). You can type: *:s_c*
|
||||||
@ -638,13 +623,10 @@ The flags that you can use for the substitute commands:
|
|||||||
'l' to substitute this match and then quit ("last")
|
'l' to substitute this match and then quit ("last")
|
||||||
'n' to skip this match
|
'n' to skip this match
|
||||||
<Esc> to quit substituting
|
<Esc> to quit substituting
|
||||||
'a' to substitute this and all remaining matches {not in Vi}
|
'a' to substitute this and all remaining matches
|
||||||
'q' to quit substituting {not in Vi}
|
'q' to quit substituting
|
||||||
CTRL-E to scroll the screen up {not in Vi, not available when
|
CTRL-E to scroll the screen up
|
||||||
compiled without the |+insert_expand| feature}
|
CTRL-Y to scroll the screen down
|
||||||
CTRL-Y to scroll the screen down {not in Vi, not available when
|
|
||||||
compiled without the |+insert_expand| feature}
|
|
||||||
{not in Vi: highlighting of the match, other responses than 'y' or 'n'}
|
|
||||||
|
|
||||||
[e] When the search pattern fails, do not issue an error message and, in
|
[e] When the search pattern fails, do not issue an error message and, in
|
||||||
particular, continue in maps as if no error occurred. This is most
|
particular, continue in maps as if no error occurred. This is most
|
||||||
@ -655,7 +637,6 @@ The flags that you can use for the substitute commands:
|
|||||||
No previous substitute regular expression
|
No previous substitute regular expression
|
||||||
Trailing characters
|
Trailing characters
|
||||||
Interrupted
|
Interrupted
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
[g] Replace all occurrences in the line. Without this argument,
|
[g] Replace all occurrences in the line. Without this argument,
|
||||||
replacement occurs only for the first occurrence in each line. If the
|
replacement occurs only for the first occurrence in each line. If the
|
||||||
@ -664,11 +645,9 @@ The flags that you can use for the substitute commands:
|
|||||||
|
|
||||||
[i] Ignore case for the pattern. The 'ignorecase' and 'smartcase' options
|
[i] Ignore case for the pattern. The 'ignorecase' and 'smartcase' options
|
||||||
are not used.
|
are not used.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
[I] Don't ignore case for the pattern. The 'ignorecase' and 'smartcase'
|
[I] Don't ignore case for the pattern. The 'ignorecase' and 'smartcase'
|
||||||
options are not used.
|
options are not used.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
[n] Report the number of matches, do not actually substitute. The [c]
|
[n] Report the number of matches, do not actually substitute. The [c]
|
||||||
flag is ignored. The matches are reported as if 'report' is zero.
|
flag is ignored. The matches are reported as if 'report' is zero.
|
||||||
@ -698,7 +677,6 @@ The flags that you can use for the substitute commands:
|
|||||||
/green
|
/green
|
||||||
:&
|
:&
|
||||||
< The last command will replace "blue" with "red".
|
< The last command will replace "blue" with "red".
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
Note that there is no flag to change the "magicness" of the pattern. A
|
Note that there is no flag to change the "magicness" of the pattern. A
|
||||||
different command is used instead, or you can use |/\v| and friends. The
|
different command is used instead, or you can use |/\v| and friends. The
|
||||||
@ -889,7 +867,6 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
|
|||||||
this (that's a good habit anyway).
|
this (that's a good habit anyway).
|
||||||
`:retab!` may also change a sequence of spaces by
|
`:retab!` may also change a sequence of spaces by
|
||||||
<Tab> characters, which can mess up a printf().
|
<Tab> characters, which can mess up a printf().
|
||||||
{not in Vi}
|
|
||||||
Not available when |+ex_extra| feature was disabled at
|
Not available when |+ex_extra| feature was disabled at
|
||||||
compile time.
|
compile time.
|
||||||
|
|
||||||
@ -915,17 +892,16 @@ inside of strings can change! Also see 'softtabstop' option. >
|
|||||||
:reg[isters] Display the contents of all numbered and named
|
:reg[isters] Display the contents of all numbered and named
|
||||||
registers. If a register is written to for |:redir|
|
registers. If a register is written to for |:redir|
|
||||||
it will not be listed.
|
it will not be listed.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
|
|
||||||
:reg[isters] {arg} Display the contents of the numbered and named
|
:reg[isters] {arg} Display the contents of the numbered and named
|
||||||
registers that are mentioned in {arg}. For example: >
|
registers that are mentioned in {arg}. For example: >
|
||||||
:dis 1a
|
:dis 1a
|
||||||
< to display registers '1' and 'a'. Spaces are allowed
|
< to display registers '1' and 'a'. Spaces are allowed
|
||||||
in {arg}. {not in Vi}
|
in {arg}.
|
||||||
|
|
||||||
*:di* *:display*
|
*:di* *:display*
|
||||||
:di[splay] [arg] Same as :registers. {not in Vi}
|
:di[splay] [arg] Same as :registers.
|
||||||
|
|
||||||
*y* *yank*
|
*y* *yank*
|
||||||
["x]y{motion} Yank {motion} text [into register x]. When no
|
["x]y{motion} Yank {motion} text [into register x]. When no
|
||||||
@ -944,11 +920,11 @@ inside of strings can change! Also see 'softtabstop' option. >
|
|||||||
|
|
||||||
*v_y*
|
*v_y*
|
||||||
{Visual}["x]y Yank the highlighted text [into register x] (for
|
{Visual}["x]y Yank the highlighted text [into register x] (for
|
||||||
{Visual} see |Visual-mode|). {not in Vi}
|
{Visual} see |Visual-mode|).
|
||||||
|
|
||||||
*v_Y*
|
*v_Y*
|
||||||
{Visual}["x]Y Yank the highlighted lines [into register x] (for
|
{Visual}["x]Y Yank the highlighted lines [into register x] (for
|
||||||
{Visual} see |Visual-mode|). {not in Vi}
|
{Visual} see |Visual-mode|).
|
||||||
|
|
||||||
*:y* *:yank* *E850*
|
*:y* *:yank* *E850*
|
||||||
:[range]y[ank] [x] Yank [range] lines [into register x]. Yanking to the
|
:[range]y[ank] [x] Yank [range] lines [into register x]. Yanking to the
|
||||||
@ -962,11 +938,11 @@ inside of strings can change! Also see 'softtabstop' option. >
|
|||||||
|
|
||||||
*p* *put* *E353*
|
*p* *put* *E353*
|
||||||
["x]p Put the text [from register x] after the cursor
|
["x]p Put the text [from register x] after the cursor
|
||||||
[count] times. {Vi: no count}
|
[count] times.
|
||||||
|
|
||||||
*P*
|
*P*
|
||||||
["x]P Put the text [from register x] before the cursor
|
["x]P Put the text [from register x] before the cursor
|
||||||
[count] times. {Vi: no count}
|
[count] times.
|
||||||
|
|
||||||
*<MiddleMouse>*
|
*<MiddleMouse>*
|
||||||
["x]<MiddleMouse> Put the text from a register before the cursor [count]
|
["x]<MiddleMouse> Put the text from a register before the cursor [count]
|
||||||
@ -975,7 +951,6 @@ inside of strings can change! Also see 'softtabstop' option. >
|
|||||||
Leaves the cursor at the end of the new text.
|
Leaves the cursor at the end of the new text.
|
||||||
Using the mouse only works when 'mouse' contains 'n'
|
Using the mouse only works when 'mouse' contains 'n'
|
||||||
or 'a'.
|
or 'a'.
|
||||||
{not in Vi}
|
|
||||||
If you have a scrollwheel and often accidentally paste
|
If you have a scrollwheel and often accidentally paste
|
||||||
text, you can use these mappings to disable the
|
text, you can use these mappings to disable the
|
||||||
pasting with the middle mouse button: >
|
pasting with the middle mouse button: >
|
||||||
@ -986,11 +961,11 @@ inside of strings can change! Also see 'softtabstop' option. >
|
|||||||
|
|
||||||
*gp*
|
*gp*
|
||||||
["x]gp Just like "p", but leave the cursor just after the new
|
["x]gp Just like "p", but leave the cursor just after the new
|
||||||
text. {not in Vi}
|
text.
|
||||||
|
|
||||||
*gP*
|
*gP*
|
||||||
["x]gP Just like "P", but leave the cursor just after the new
|
["x]gP Just like "P", but leave the cursor just after the new
|
||||||
text. {not in Vi}
|
text.
|
||||||
|
|
||||||
*:pu* *:put*
|
*:pu* *:put*
|
||||||
:[line]pu[t] [x] Put the text [from register x] after [line] (default
|
:[line]pu[t] [x] Put the text [from register x] after [line] (default
|
||||||
@ -1018,14 +993,14 @@ inside of strings can change! Also see 'softtabstop' option. >
|
|||||||
["x]]p or *]p* *]<MiddleMouse>*
|
["x]]p or *]p* *]<MiddleMouse>*
|
||||||
["x]]<MiddleMouse> Like "p", but adjust the indent to the current line.
|
["x]]<MiddleMouse> Like "p", but adjust the indent to the current line.
|
||||||
Using the mouse only works when 'mouse' contains 'n'
|
Using the mouse only works when 'mouse' contains 'n'
|
||||||
or 'a'. {not in Vi}
|
or 'a'.
|
||||||
|
|
||||||
["x][P or *[P*
|
["x][P or *[P*
|
||||||
["x]]P or *]P*
|
["x]]P or *]P*
|
||||||
["x][p or *[p* *[<MiddleMouse>*
|
["x][p or *[p* *[<MiddleMouse>*
|
||||||
["x][<MiddleMouse> Like "P", but adjust the indent to the current line.
|
["x][<MiddleMouse> Like "P", but adjust the indent to the current line.
|
||||||
Using the mouse only works when 'mouse' contains 'n'
|
Using the mouse only works when 'mouse' contains 'n'
|
||||||
or 'a'. {not in Vi}
|
or 'a'.
|
||||||
|
|
||||||
You can use these commands to copy text from one place to another. Do this
|
You can use these commands to copy text from one place to another. Do this
|
||||||
by first getting the text into a register with a yank, delete or change
|
by first getting the text into a register with a yank, delete or change
|
||||||
@ -1110,7 +1085,6 @@ Vim uses the contents of the unnamed register for any put command (p or P)
|
|||||||
which does not specify a register. Additionally you can access it with the
|
which does not specify a register. Additionally you can access it with the
|
||||||
name '"'. This means you have to type two double quotes. Writing to the ""
|
name '"'. This means you have to type two double quotes. Writing to the ""
|
||||||
register writes to register "0.
|
register writes to register "0.
|
||||||
{Vi: register contents are lost when changing files, no '"'}
|
|
||||||
|
|
||||||
2. Numbered registers "0 to "9 *quote_number* *quote0* *quote1*
|
2. Numbered registers "0 to "9 *quote_number* *quote0* *quote1*
|
||||||
*quote2* *quote3* *quote4* *quote9*
|
*quote2* *quote3* *quote4* *quote9*
|
||||||
@ -1128,13 +1102,10 @@ plugin.
|
|||||||
With each successive deletion or change, Vim shifts the previous contents
|
With each successive deletion or change, Vim shifts the previous contents
|
||||||
of register 1 into register 2, 2 into 3, and so forth, losing the previous
|
of register 1 into register 2, 2 into 3, and so forth, losing the previous
|
||||||
contents of register 9.
|
contents of register 9.
|
||||||
{Vi: numbered register contents are lost when changing files; register 0 does
|
|
||||||
not exist}
|
|
||||||
|
|
||||||
3. Small delete register "- *quote_-* *quote-*
|
3. Small delete register "- *quote_-* *quote-*
|
||||||
This register contains text from commands that delete less than one line,
|
This register contains text from commands that delete less than one line,
|
||||||
except when the command specifies a register with ["x].
|
except when the command specifies a register with ["x].
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
4. Named registers "a to "z or "A to "Z *quote_alpha* *quotea*
|
4. Named registers "a to "z or "A to "Z *quote_alpha* *quotea*
|
||||||
Vim fills these registers only when you say so. Specify them as lowercase
|
Vim fills these registers only when you say so. Specify them as lowercase
|
||||||
@ -1144,7 +1115,7 @@ a line break is inserted before the appended text.
|
|||||||
|
|
||||||
5. Read-only registers ":, "., "% and "#
|
5. Read-only registers ":, "., "% and "#
|
||||||
These are '%', '#', ':' and '.'. You can use them only with the "p", "P",
|
These are '%', '#', ':' and '.'. You can use them only with the "p", "P",
|
||||||
and ":put" commands and with CTRL-R. {not in Vi}
|
and ":put" commands and with CTRL-R.
|
||||||
*quote_.* *quote.* *E29*
|
*quote_.* *quote.* *E29*
|
||||||
". Contains the last inserted text (the same as what is inserted
|
". Contains the last inserted text (the same as what is inserted
|
||||||
with the insert mode commands CTRL-A and CTRL-@). Note: this
|
with the insert mode commands CTRL-A and CTRL-@). Note: this
|
||||||
@ -1183,13 +1154,13 @@ an error message (use string() to convert).
|
|||||||
|
|
||||||
If the "= register is used for the "p" command, the String is split up at <NL>
|
If the "= register is used for the "p" command, the String is split up at <NL>
|
||||||
characters. If the String ends in a <NL>, it is regarded as a linewise
|
characters. If the String ends in a <NL>, it is regarded as a linewise
|
||||||
register. {not in Vi}
|
register.
|
||||||
|
|
||||||
7. Selection and drop registers "*, "+ and "~
|
7. Selection and drop registers "*, "+ and "~
|
||||||
Use these registers for storing and retrieving the selected text for the GUI.
|
Use these registers for storing and retrieving the selected text for the GUI.
|
||||||
See |quotestar| and |quoteplus|. When the clipboard is not available or not
|
See |quotestar| and |quoteplus|. When the clipboard is not available or not
|
||||||
working, the unnamed register is used instead. For Unix systems the clipboard
|
working, the unnamed register is used instead. For Unix systems the clipboard
|
||||||
is only available when the |+xterm_clipboard| feature is present. {not in Vi}
|
is only available when the |+xterm_clipboard| feature is present.
|
||||||
|
|
||||||
Note that there is only a distinction between "* and "+ for X11 systems. For
|
Note that there is only a distinction between "* and "+ for X11 systems. For
|
||||||
an explanation of the difference, see |x11-selection|. Under MS-Windows, use
|
an explanation of the difference, see |x11-selection|. Under MS-Windows, use
|
||||||
@ -1200,7 +1171,7 @@ The read-only "~ register stores the dropped text from the last drag'n'drop
|
|||||||
operation. When something has been dropped onto Vim, the "~ register is
|
operation. When something has been dropped onto Vim, the "~ register is
|
||||||
filled in and the <Drop> pseudo key is sent for notification. You can remap
|
filled in and the <Drop> pseudo key is sent for notification. You can remap
|
||||||
this key if you want; the default action (for all modes) is to insert the
|
this key if you want; the default action (for all modes) is to insert the
|
||||||
contents of the "~ register at the cursor position. {not in Vi}
|
contents of the "~ register at the cursor position.
|
||||||
{only available when compiled with the |+dnd| feature, currently only with the
|
{only available when compiled with the |+dnd| feature, currently only with the
|
||||||
GTK GUI}
|
GTK GUI}
|
||||||
|
|
||||||
@ -1210,7 +1181,7 @@ Drag'n'drop of URI lists is handled internally.
|
|||||||
8. Black hole register "_ *quote_*
|
8. Black hole register "_ *quote_*
|
||||||
When writing to this register, nothing happens. This can be used to delete
|
When writing to this register, nothing happens. This can be used to delete
|
||||||
text without affecting the normal registers. When reading from this register,
|
text without affecting the normal registers. When reading from this register,
|
||||||
nothing is returned. {not in Vi}
|
nothing is returned.
|
||||||
|
|
||||||
9. Last search pattern register "/ *quote_/* *quote/*
|
9. Last search pattern register "/ *quote_/* *quote/*
|
||||||
Contains the most recent search-pattern. This is used for "n" and 'hlsearch'.
|
Contains the most recent search-pattern. This is used for "n" and 'hlsearch'.
|
||||||
@ -1219,7 +1190,6 @@ other matches without actually searching. You can't yank or delete into this
|
|||||||
register. The search direction is available in |v:searchforward|.
|
register. The search direction is available in |v:searchforward|.
|
||||||
Note that the valued is restored when returning from a function
|
Note that the valued is restored when returning from a function
|
||||||
|function-search-undo|.
|
|function-search-undo|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*@/*
|
*@/*
|
||||||
You can write to a register with a `:let` command |:let-@|. Example: >
|
You can write to a register with a `:let` command |:let-@|. Example: >
|
||||||
@ -1250,21 +1220,19 @@ The next three commands always work on whole lines.
|
|||||||
:[range]ce[nter] [width] *:ce* *:center*
|
:[range]ce[nter] [width] *:ce* *:center*
|
||||||
Center lines in [range] between [width] columns
|
Center lines in [range] between [width] columns
|
||||||
(default 'textwidth' or 80 when 'textwidth' is 0).
|
(default 'textwidth' or 80 when 'textwidth' is 0).
|
||||||
{not in Vi}
|
|
||||||
Not available when |+ex_extra| feature was disabled at
|
Not available when |+ex_extra| feature was disabled at
|
||||||
compile time.
|
compile time.
|
||||||
|
|
||||||
:[range]ri[ght] [width] *:ri* *:right*
|
:[range]ri[ght] [width] *:ri* *:right*
|
||||||
Right-align lines in [range] at [width] columns
|
Right-align lines in [range] at [width] columns
|
||||||
(default 'textwidth' or 80 when 'textwidth' is 0).
|
(default 'textwidth' or 80 when 'textwidth' is 0).
|
||||||
{not in Vi}
|
|
||||||
Not available when |+ex_extra| feature was disabled at
|
Not available when |+ex_extra| feature was disabled at
|
||||||
compile time.
|
compile time.
|
||||||
|
|
||||||
*:le* *:left*
|
*:le* *:left*
|
||||||
:[range]le[ft] [indent]
|
:[range]le[ft] [indent]
|
||||||
Left-align lines in [range]. Sets the indent in the
|
Left-align lines in [range]. Sets the indent in the
|
||||||
lines to [indent] (default 0). {not in Vi}
|
lines to [indent] (default 0).
|
||||||
Not available when |+ex_extra| feature was disabled at
|
Not available when |+ex_extra| feature was disabled at
|
||||||
compile time.
|
compile time.
|
||||||
|
|
||||||
@ -1293,24 +1261,24 @@ gq{motion} Format the lines that {motion} moves over.
|
|||||||
|
|
||||||
gqgq *gqgq* *gqq*
|
gqgq *gqgq* *gqq*
|
||||||
gqq Format the current line. With a count format that
|
gqq Format the current line. With a count format that
|
||||||
many lines. {not in Vi}
|
many lines.
|
||||||
|
|
||||||
*v_gq*
|
*v_gq*
|
||||||
{Visual}gq Format the highlighted text. (for {Visual} see
|
{Visual}gq Format the highlighted text. (for {Visual} see
|
||||||
|Visual-mode|). {not in Vi}
|
|Visual-mode|).
|
||||||
|
|
||||||
*gw*
|
*gw*
|
||||||
gw{motion} Format the lines that {motion} moves over. Similar to
|
gw{motion} Format the lines that {motion} moves over. Similar to
|
||||||
|gq| but puts the cursor back at the same position in
|
|gq| but puts the cursor back at the same position in
|
||||||
the text. However, 'formatprg' and 'formatexpr' are
|
the text. However, 'formatprg' and 'formatexpr' are
|
||||||
not used. {not in Vi}
|
not used.
|
||||||
|
|
||||||
gwgw *gwgw* *gww*
|
gwgw *gwgw* *gww*
|
||||||
gww Format the current line as with "gw". {not in Vi}
|
gww Format the current line as with "gw".
|
||||||
|
|
||||||
*v_gw*
|
*v_gw*
|
||||||
{Visual}gw Format the highlighted text as with "gw". (for
|
{Visual}gw Format the highlighted text as with "gw". (for
|
||||||
{Visual} see |Visual-mode|). {not in Vi}
|
{Visual} see |Visual-mode|).
|
||||||
|
|
||||||
Example: To format the current paragraph use: *gqap* >
|
Example: To format the current paragraph use: *gqap* >
|
||||||
gqap
|
gqap
|
||||||
|
@ -27,7 +27,6 @@ Basic command line editing is explained in chapter 20 of the user manual
|
|||||||
Normally characters are inserted in front of the cursor position. You can
|
Normally characters are inserted in front of the cursor position. You can
|
||||||
move around in the command-line with the left and right cursor keys. With the
|
move around in the command-line with the left and right cursor keys. With the
|
||||||
<Insert> key, you can toggle between inserting and overstriking characters.
|
<Insert> key, you can toggle between inserting and overstriking characters.
|
||||||
{Vi: can only alter the last character in the line}
|
|
||||||
|
|
||||||
Note that if your keyboard does not have working cursor keys or any of the
|
Note that if your keyboard does not have working cursor keys or any of the
|
||||||
other special keys, you can use ":cnoremap" to define another key for them.
|
other special keys, you can use ":cnoremap" to define another key for them.
|
||||||
@ -66,8 +65,6 @@ Notes:
|
|||||||
- All searches are put in the search history, including the ones that come
|
- All searches are put in the search history, including the ones that come
|
||||||
from commands like "*" and "#". But for a mapping, only the last search is
|
from commands like "*" and "#". But for a mapping, only the last search is
|
||||||
remembered (to avoid that long mappings trash the history).
|
remembered (to avoid that long mappings trash the history).
|
||||||
{Vi: no history}
|
|
||||||
{not available when compiled without the |+cmdline_hist| feature}
|
|
||||||
|
|
||||||
There is an automatic completion of names on the command-line; see
|
There is an automatic completion of names on the command-line; see
|
||||||
|cmdline-completion|.
|
|cmdline-completion|.
|
||||||
@ -117,12 +114,12 @@ CTRL-U Remove all characters between the cursor position and
|
|||||||
:cnoremap <C-U> <C-E><C-U>
|
:cnoremap <C-U> <C-E><C-U>
|
||||||
<
|
<
|
||||||
*c_<Insert>* *c_Insert*
|
*c_<Insert>* *c_Insert*
|
||||||
<Insert> Toggle between insert and overstrike. {not in Vi}
|
<Insert> Toggle between insert and overstrike.
|
||||||
|
|
||||||
{char1} <BS> {char2} or *c_digraph*
|
{char1} <BS> {char2} or *c_digraph*
|
||||||
CTRL-K {char1} {char2} *c_CTRL-K*
|
CTRL-K {char1} {char2} *c_CTRL-K*
|
||||||
enter digraph (see |digraphs|). When {char1} is a special
|
enter digraph (see |digraphs|). When {char1} is a special
|
||||||
key, the code for that key is inserted in <> form. {not in Vi}
|
key, the code for that key is inserted in <> form.
|
||||||
|
|
||||||
CTRL-R {0-9a-z"%#:-=.} *c_CTRL-R* *c_<C-R>*
|
CTRL-R {0-9a-z"%#:-=.} *c_CTRL-R* *c_<C-R>*
|
||||||
Insert the contents of a numbered or named register. Between
|
Insert the contents of a numbered or named register. Between
|
||||||
@ -158,7 +155,7 @@ CTRL-R {0-9a-z"%#:-=.} *c_CTRL-R* *c_<C-R>*
|
|||||||
too.
|
too.
|
||||||
When the result is a Float it's automatically
|
When the result is a Float it's automatically
|
||||||
converted to a String.
|
converted to a String.
|
||||||
See |registers| about registers. {not in Vi}
|
See |registers| about registers.
|
||||||
Implementation detail: When using the |expression| register
|
Implementation detail: When using the |expression| register
|
||||||
and invoking setcmdpos(), this sets the position before
|
and invoking setcmdpos(), this sets the position before
|
||||||
inserting the resulting string. Use CTRL-R CTRL-R to set the
|
inserting the resulting string. Use CTRL-R CTRL-R to set the
|
||||||
@ -179,10 +176,6 @@ CTRL-R CTRL-A *c_CTRL-R_CTRL-A* *c_<C-R>_<C-A>*
|
|||||||
currently displayed match is used. With CTRL-W the part of
|
currently displayed match is used. With CTRL-W the part of
|
||||||
the word that was already typed is not inserted again.
|
the word that was already typed is not inserted again.
|
||||||
|
|
||||||
{not in Vi}
|
|
||||||
CTRL-F and CTRL-P: {only when |+file_in_path| feature is
|
|
||||||
included}
|
|
||||||
|
|
||||||
*c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>*
|
*c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>*
|
||||||
*c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>*
|
*c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>*
|
||||||
CTRL-R CTRL-R {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A}
|
CTRL-R CTRL-R {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A}
|
||||||
@ -303,11 +296,9 @@ CTRL-^ Toggle the use of language |:lmap| mappings and/or Input
|
|||||||
off, since you are expected to type a command. After
|
off, since you are expected to type a command. After
|
||||||
switching it on with CTRL-^, the new state is not used again
|
switching it on with CTRL-^, the new state is not used again
|
||||||
for the next command or Search pattern.
|
for the next command or Search pattern.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*c_CTRL-]*
|
*c_CTRL-]*
|
||||||
CTRL-] Trigger abbreviation, without inserting a character. {not in
|
CTRL-] Trigger abbreviation, without inserting a character.
|
||||||
Vi}
|
|
||||||
|
|
||||||
For Emacs-style editing on the command-line see |emacs-keys|.
|
For Emacs-style editing on the command-line see |emacs-keys|.
|
||||||
|
|
||||||
@ -322,7 +313,6 @@ terminals)
|
|||||||
|
|
||||||
*:his* *:history*
|
*:his* *:history*
|
||||||
:his[tory] Print the history of last entered commands.
|
:his[tory] Print the history of last entered commands.
|
||||||
{not in Vi}
|
|
||||||
{not available when compiled without the |+cmdline_hist|
|
{not available when compiled without the |+cmdline_hist|
|
||||||
feature}
|
feature}
|
||||||
|
|
||||||
@ -334,7 +324,6 @@ terminals)
|
|||||||
i[nput] or @ input line history
|
i[nput] or @ input line history
|
||||||
d[ebug] or > debug command history
|
d[ebug] or > debug command history
|
||||||
a[ll] all of the above
|
a[ll] all of the above
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
If the numbers {first} and/or {last} are given, the respective
|
If the numbers {first} and/or {last} are given, the respective
|
||||||
range of entries from a history is listed. These numbers can
|
range of entries from a history is listed. These numbers can
|
||||||
|
@ -10,8 +10,6 @@ Debugger Support Features *debugger-support*
|
|||||||
2. Vim Compile Options |debugger-compilation|
|
2. Vim Compile Options |debugger-compilation|
|
||||||
3. Integrated Debuggers |debugger-integration|
|
3. Integrated Debuggers |debugger-integration|
|
||||||
|
|
||||||
{Vi does not have any of these features}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Debugger Features *debugger-features*
|
1. Debugger Features *debugger-features*
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@ An alternative is using the 'keymap' option.
|
|||||||
2. Using digraphs |digraphs-use|
|
2. Using digraphs |digraphs-use|
|
||||||
3. Default digraphs |digraphs-default|
|
3. Default digraphs |digraphs-default|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Defining digraphs *digraphs-define*
|
1. Defining digraphs *digraphs-define*
|
||||||
|
|
||||||
|
@ -44,14 +44,14 @@ An alternate file name is remembered for each window.
|
|||||||
:keepalt {cmd} Execute {cmd} while keeping the current alternate file
|
:keepalt {cmd} Execute {cmd} while keeping the current alternate file
|
||||||
name. Note that commands invoked indirectly (e.g.,
|
name. Note that commands invoked indirectly (e.g.,
|
||||||
with a function) may still set the alternate file
|
with a function) may still set the alternate file
|
||||||
name. {not in Vi}
|
name.
|
||||||
|
|
||||||
All file names are remembered in the buffer list. When you enter a file name,
|
All file names are remembered in the buffer list. When you enter a file name,
|
||||||
for editing (e.g., with ":e filename") or writing (e.g., with ":w filename"),
|
for editing (e.g., with ":e filename") or writing (e.g., with ":w filename"),
|
||||||
the file name is added to the list. You can use the buffer list to remember
|
the file name is added to the list. You can use the buffer list to remember
|
||||||
which files you edited and to quickly switch from one file to another (e.g.,
|
which files you edited and to quickly switch from one file to another (e.g.,
|
||||||
to copy text) with the |CTRL-^| command. First type the number of the file
|
to copy text) with the |CTRL-^| command. First type the number of the file
|
||||||
and then hit CTRL-^. {Vi: only one alternate file name is remembered}
|
and then hit CTRL-^.
|
||||||
|
|
||||||
|
|
||||||
CTRL-G or *CTRL-G* *:f* *:fi* *:file*
|
CTRL-G or *CTRL-G* *:f* *:fi* *:file*
|
||||||
@ -60,14 +60,13 @@ CTRL-G or *CTRL-G* *:f* *:fi* *:file*
|
|||||||
option is set), and the file status (readonly,
|
option is set), and the file status (readonly,
|
||||||
modified, read errors, new file). See the 'shortmess'
|
modified, read errors, new file). See the 'shortmess'
|
||||||
option about how to make this message shorter.
|
option about how to make this message shorter.
|
||||||
{Vi does not include column number}
|
|
||||||
|
|
||||||
:f[ile]! like |:file|, but don't truncate the name even when
|
:f[ile]! like |:file|, but don't truncate the name even when
|
||||||
'shortmess' indicates this.
|
'shortmess' indicates this.
|
||||||
|
|
||||||
{count}CTRL-G Like CTRL-G, but prints the current file name with
|
{count}CTRL-G Like CTRL-G, but prints the current file name with
|
||||||
full path. If the count is higher than 1 the current
|
full path. If the count is higher than 1 the current
|
||||||
buffer number is also given. {not in Vi}
|
buffer number is also given.
|
||||||
|
|
||||||
*g_CTRL-G* *word-count* *byte-count*
|
*g_CTRL-G* *word-count* *byte-count*
|
||||||
g CTRL-G Prints the current position of the cursor in five
|
g CTRL-G Prints the current position of the cursor in five
|
||||||
@ -78,7 +77,7 @@ g CTRL-G Prints the current position of the cursor in five
|
|||||||
than one position on the screen (<Tab> or special
|
than one position on the screen (<Tab> or special
|
||||||
character), both the "real" column and the screen
|
character), both the "real" column and the screen
|
||||||
column are shown, separated with a dash.
|
column are shown, separated with a dash.
|
||||||
See also 'ruler' option. {not in Vi}
|
See also 'ruler' option.
|
||||||
|
|
||||||
*v_g_CTRL-G*
|
*v_g_CTRL-G*
|
||||||
{Visual}g CTRL-G Similar to "g CTRL-G", but Word, Character, Line, and
|
{Visual}g CTRL-G Similar to "g CTRL-G", but Word, Character, Line, and
|
||||||
@ -86,7 +85,6 @@ g CTRL-G Prints the current position of the cursor in five
|
|||||||
displayed.
|
displayed.
|
||||||
In Blockwise mode, Column count is also shown. (For
|
In Blockwise mode, Column count is also shown. (For
|
||||||
{Visual} see |Visual-mode|.)
|
{Visual} see |Visual-mode|.)
|
||||||
{not in VI}
|
|
||||||
|
|
||||||
*:file_f*
|
*:file_f*
|
||||||
:f[ile][!] {name} Sets the current file name to {name}. The optional !
|
:f[ile][!] {name} Sets the current file name to {name}. The optional !
|
||||||
@ -96,14 +94,12 @@ g CTRL-G Prints the current position of the cursor in five
|
|||||||
to hold the old name.
|
to hold the old name.
|
||||||
*:0file*
|
*:0file*
|
||||||
:0f[ile][!] Remove the name of the current buffer. The optional !
|
:0f[ile][!] Remove the name of the current buffer. The optional !
|
||||||
avoids truncating the message, as with |:file|. {not
|
avoids truncating the message, as with |:file|.
|
||||||
in Vi}
|
|
||||||
|
|
||||||
:buffers
|
:buffers
|
||||||
:files
|
:files
|
||||||
:ls List all the currently known file names. See
|
:ls List all the currently known file names. See
|
||||||
'windows.txt' |:files| |:buffers| |:ls|. {not in
|
'windows.txt' |:files| |:buffers| |:ls|.
|
||||||
Vi}
|
|
||||||
|
|
||||||
Vim will remember the full path name of a file name that you enter. In most
|
Vim will remember the full path name of a file name that you enter. In most
|
||||||
cases when the file name is displayed only the name you typed is shown, but
|
cases when the file name is displayed only the name you typed is shown, but
|
||||||
@ -185,7 +181,6 @@ If you want to keep the changed buffer without saving it, switch on the
|
|||||||
buffer and 'autowriteall' isn't set or the file can't
|
buffer and 'autowriteall' isn't set or the file can't
|
||||||
be written.
|
be written.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{Vi: no ++opt}
|
|
||||||
|
|
||||||
*:edit!* *discard*
|
*:edit!* *discard*
|
||||||
:e[dit]! [++opt] [+cmd]
|
:e[dit]! [++opt] [+cmd]
|
||||||
@ -193,7 +188,6 @@ If you want to keep the changed buffer without saving it, switch on the
|
|||||||
the current buffer. This is useful if you want to
|
the current buffer. This is useful if you want to
|
||||||
start all over again.
|
start all over again.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{Vi: no ++opt}
|
|
||||||
|
|
||||||
*:edit_f*
|
*:edit_f*
|
||||||
:e[dit] [++opt] [+cmd] {file}
|
:e[dit] [++opt] [+cmd] {file}
|
||||||
@ -202,14 +196,12 @@ If you want to keep the changed buffer without saving it, switch on the
|
|||||||
buffer, unless 'hidden' is set or 'autowriteall' is
|
buffer, unless 'hidden' is set or 'autowriteall' is
|
||||||
set and the file can be written.
|
set and the file can be written.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{Vi: no ++opt}
|
|
||||||
|
|
||||||
*:edit!_f*
|
*:edit!_f*
|
||||||
:e[dit]! [++opt] [+cmd] {file}
|
:e[dit]! [++opt] [+cmd] {file}
|
||||||
Edit {file} always. Discard any changes to the
|
Edit {file} always. Discard any changes to the
|
||||||
current buffer.
|
current buffer.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{Vi: no ++opt}
|
|
||||||
|
|
||||||
:e[dit] [++opt] [+cmd] #[count]
|
:e[dit] [++opt] [+cmd] #[count]
|
||||||
Edit the [count]th buffer (as shown by |:files|).
|
Edit the [count]th buffer (as shown by |:files|).
|
||||||
@ -217,7 +209,6 @@ If you want to keep the changed buffer without saving it, switch on the
|
|||||||
#" doesn't work if the alternate buffer doesn't have a
|
#" doesn't work if the alternate buffer doesn't have a
|
||||||
file name, while CTRL-^ still works then.
|
file name, while CTRL-^ still works then.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{Vi: no ++opt}
|
|
||||||
|
|
||||||
*:ene* *:enew*
|
*:ene* *:enew*
|
||||||
:ene[w] Edit a new, unnamed buffer. This fails when changes
|
:ene[w] Edit a new, unnamed buffer. This fails when changes
|
||||||
@ -227,19 +218,15 @@ If you want to keep the changed buffer without saving it, switch on the
|
|||||||
If 'fileformats' is not empty, the first format given
|
If 'fileformats' is not empty, the first format given
|
||||||
will be used for the new buffer. If 'fileformats' is
|
will be used for the new buffer. If 'fileformats' is
|
||||||
empty, the 'fileformat' of the current buffer is used.
|
empty, the 'fileformat' of the current buffer is used.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:ene!* *:enew!*
|
*:ene!* *:enew!*
|
||||||
:ene[w]! Edit a new, unnamed buffer. Discard any changes to
|
:ene[w]! Edit a new, unnamed buffer. Discard any changes to
|
||||||
the current buffer.
|
the current buffer.
|
||||||
Set 'fileformat' like |:enew|.
|
Set 'fileformat' like |:enew|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:fin* *:find*
|
*:fin* *:find*
|
||||||
:fin[d][!] [++opt] [+cmd] {file}
|
:fin[d][!] [++opt] [+cmd] {file}
|
||||||
Find {file} in 'path' and then |:edit| it.
|
Find {file} in 'path' and then |:edit| it.
|
||||||
{not in Vi} {not available when the |+file_in_path|
|
|
||||||
feature was disabled at compile time}
|
|
||||||
|
|
||||||
:{count}fin[d][!] [++opt] [+cmd] {file}
|
:{count}fin[d][!] [++opt] [+cmd] {file}
|
||||||
Just like ":find", but use the {count} match in
|
Just like ":find", but use the {count} match in
|
||||||
@ -261,7 +248,7 @@ If you want to keep the changed buffer without saving it, switch on the
|
|||||||
:vie[w][!] [++opt] [+cmd] file
|
:vie[w][!] [++opt] [+cmd] file
|
||||||
When used in Ex mode: Leave |Ex mode|, go back to
|
When used in Ex mode: Leave |Ex mode|, go back to
|
||||||
Normal mode. Otherwise same as |:edit|, but set
|
Normal mode. Otherwise same as |:edit|, but set
|
||||||
'readonly' option for this buffer. {not in Vi}
|
'readonly' option for this buffer.
|
||||||
|
|
||||||
*CTRL-^* *CTRL-6*
|
*CTRL-^* *CTRL-6*
|
||||||
CTRL-^ Edit the alternate file. Mostly the alternate file is
|
CTRL-^ Edit the alternate file. Mostly the alternate file is
|
||||||
@ -280,7 +267,6 @@ CTRL-^ Edit the alternate file. Mostly the alternate file is
|
|||||||
":e #[count]"). This is a quick way to switch between
|
":e #[count]"). This is a quick way to switch between
|
||||||
files.
|
files.
|
||||||
See |CTRL-^| above for further details.
|
See |CTRL-^| above for further details.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
[count]]f *]f* *[f*
|
[count]]f *]f* *[f*
|
||||||
[count][f Same as "gf". Deprecated.
|
[count][f Same as "gf". Deprecated.
|
||||||
@ -313,9 +299,6 @@ CTRL-^ Edit the alternate file. Mostly the alternate file is
|
|||||||
For Unix the '~' character is expanded, like in
|
For Unix the '~' character is expanded, like in
|
||||||
"~user/file". Environment variables are expanded too
|
"~user/file". Environment variables are expanded too
|
||||||
|expand-env|.
|
|expand-env|.
|
||||||
{not in Vi}
|
|
||||||
{not available when the |+file_in_path| feature was
|
|
||||||
disabled at compile time}
|
|
||||||
|
|
||||||
*v_gf*
|
*v_gf*
|
||||||
{Visual}[count]gf Same as "gf", but the highlighted text is used as the
|
{Visual}[count]gf Same as "gf", but the highlighted text is used as the
|
||||||
@ -323,7 +306,6 @@ CTRL-^ Edit the alternate file. Mostly the alternate file is
|
|||||||
Leading blanks are skipped, otherwise all blanks and
|
Leading blanks are skipped, otherwise all blanks and
|
||||||
special characters are included in the file name.
|
special characters are included in the file name.
|
||||||
(For {Visual} see |Visual-mode|.)
|
(For {Visual} see |Visual-mode|.)
|
||||||
{not in VI}
|
|
||||||
|
|
||||||
*gF*
|
*gF*
|
||||||
[count]gF Same as "gf", except if a number follows the file
|
[count]gF Same as "gf", except if a number follows the file
|
||||||
@ -567,14 +549,12 @@ list of the current window.
|
|||||||
the first one. This fails when changes have been made
|
the first one. This fails when changes have been made
|
||||||
and Vim does not want to |abandon| the current buffer.
|
and Vim does not want to |abandon| the current buffer.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{Vi: no ++opt}
|
|
||||||
|
|
||||||
:ar[gs]! [++opt] [+cmd] {arglist} *:args_f!*
|
:ar[gs]! [++opt] [+cmd] {arglist} *:args_f!*
|
||||||
Define {arglist} as the new argument list and edit
|
Define {arglist} as the new argument list and edit
|
||||||
the first one. Discard any changes to the current
|
the first one. Discard any changes to the current
|
||||||
buffer.
|
buffer.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{Vi: no ++opt}
|
|
||||||
|
|
||||||
:[count]arge[dit][!] [++opt] [+cmd] {name} *:arge* *:argedit*
|
:[count]arge[dit][!] [++opt] [+cmd] {name} *:arge* *:argedit*
|
||||||
Add {name} to the argument list and edit it.
|
Add {name} to the argument list and edit it.
|
||||||
@ -587,7 +567,6 @@ list of the current window.
|
|||||||
[!] is required if the current file cannot be
|
[!] is required if the current file cannot be
|
||||||
|abandon|ed.
|
|abandon|ed.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
:[count]arga[dd] {name} .. *:arga* *:argadd* *E479*
|
:[count]arga[dd] {name} .. *:arga* *:argadd* *E479*
|
||||||
Add the {name}s to the argument list.
|
Add the {name}s to the argument list.
|
||||||
@ -604,8 +583,6 @@ list of the current window.
|
|||||||
There is no check for duplicates, it is possible to
|
There is no check for duplicates, it is possible to
|
||||||
add a file to the argument list twice.
|
add a file to the argument list twice.
|
||||||
The currently edited file is not changed.
|
The currently edited file is not changed.
|
||||||
{not in Vi} {not available when compiled without the
|
|
||||||
|+listcmds| feature}
|
|
||||||
Note: you can also use this method: >
|
Note: you can also use this method: >
|
||||||
:args ## x
|
:args ## x
|
||||||
< This will add the "x" item and sort the new list.
|
< This will add the "x" item and sort the new list.
|
||||||
@ -619,16 +596,12 @@ list of the current window.
|
|||||||
when it's deleted from the argument list.
|
when it's deleted from the argument list.
|
||||||
Example: >
|
Example: >
|
||||||
:argdel *.obj
|
:argdel *.obj
|
||||||
< {not in Vi} {not available when compiled without the
|
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
:{range}argd[elete] Delete the {range} files from the argument list.
|
:{range}argd[elete] Delete the {range} files from the argument list.
|
||||||
When the last number in the range is too high, up to
|
When the last number in the range is too high, up to
|
||||||
the last argument is deleted. Example: >
|
the last argument is deleted. Example: >
|
||||||
:10,1000argdel
|
:10,1000argdel
|
||||||
< Deletes arguments 10 and further, keeping 1-9.
|
< Deletes arguments 10 and further, keeping 1-9.
|
||||||
{not in Vi} {not available when compiled without the
|
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
*:argu* *:argument*
|
*:argu* *:argument*
|
||||||
:[count]argu[ment] [count] [++opt] [+cmd]
|
:[count]argu[ment] [count] [++opt] [+cmd]
|
||||||
@ -637,27 +610,21 @@ list of the current window.
|
|||||||
when changes have been made and Vim does not want to
|
when changes have been made and Vim does not want to
|
||||||
|abandon| the current buffer.
|
|abandon| the current buffer.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{not in Vi} {not available when compiled without the
|
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
:[count]argu[ment]! [count] [++opt] [+cmd]
|
:[count]argu[ment]! [count] [++opt] [+cmd]
|
||||||
Edit file [count] in the argument list, discard any
|
Edit file [count] in the argument list, discard any
|
||||||
changes to the current buffer. When [count] is
|
changes to the current buffer. When [count] is
|
||||||
omitted the current entry is used.
|
omitted the current entry is used.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{not in Vi} {not available when compiled without the
|
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
:[count]n[ext] [++opt] [+cmd] *:n* *:ne* *:next* *E165* *E163*
|
:[count]n[ext] [++opt] [+cmd] *:n* *:ne* *:next* *E165* *E163*
|
||||||
Edit [count] next file. This fails when changes have
|
Edit [count] next file. This fails when changes have
|
||||||
been made and Vim does not want to |abandon| the
|
been made and Vim does not want to |abandon| the
|
||||||
current buffer. Also see |++opt| and |+cmd|. {Vi: no
|
current buffer. Also see |++opt| and |+cmd|.
|
||||||
count or ++opt}.
|
|
||||||
|
|
||||||
:[count]n[ext]! [++opt] [+cmd]
|
:[count]n[ext]! [++opt] [+cmd]
|
||||||
Edit [count] next file, discard any changes to the
|
Edit [count] next file, discard any changes to the
|
||||||
buffer. Also see |++opt| and |+cmd|. {Vi: no count
|
buffer. Also see |++opt| and |+cmd|.
|
||||||
or ++opt}.
|
|
||||||
|
|
||||||
:n[ext] [++opt] [+cmd] {arglist} *:next_f*
|
:n[ext] [++opt] [+cmd] {arglist} *:next_f*
|
||||||
Same as |:args_f|.
|
Same as |:args_f|.
|
||||||
@ -669,65 +636,63 @@ list of the current window.
|
|||||||
Edit [count] previous file in argument list. This
|
Edit [count] previous file in argument list. This
|
||||||
fails when changes have been made and Vim does not
|
fails when changes have been made and Vim does not
|
||||||
want to |abandon| the current buffer.
|
want to |abandon| the current buffer.
|
||||||
Also see |++opt| and |+cmd|. {Vi: no count or ++opt}.
|
Also see |++opt| and |+cmd|.
|
||||||
|
|
||||||
:[count]N[ext]! [count] [++opt] [+cmd]
|
:[count]N[ext]! [count] [++opt] [+cmd]
|
||||||
Edit [count] previous file in argument list. Discard
|
Edit [count] previous file in argument list. Discard
|
||||||
any changes to the buffer. Also see |++opt| and
|
any changes to the buffer. Also see |++opt| and
|
||||||
|+cmd|. {Vi: no count or ++opt}.
|
|+cmd|.
|
||||||
|
|
||||||
:[count]prev[ious] [count] [++opt] [+cmd] *:prev* *:previous*
|
:[count]prev[ious] [count] [++opt] [+cmd] *:prev* *:previous*
|
||||||
Same as :Next. Also see |++opt| and |+cmd|. {Vi:
|
Same as :Next. Also see |++opt| and |+cmd|.
|
||||||
only in some versions}
|
|
||||||
|
|
||||||
*:rew* *:rewind*
|
*:rew* *:rewind*
|
||||||
:rew[ind] [++opt] [+cmd]
|
:rew[ind] [++opt] [+cmd]
|
||||||
Start editing the first file in the argument list.
|
Start editing the first file in the argument list.
|
||||||
This fails when changes have been made and Vim does
|
This fails when changes have been made and Vim does
|
||||||
not want to |abandon| the current buffer.
|
not want to |abandon| the current buffer.
|
||||||
Also see |++opt| and |+cmd|. {Vi: no ++opt}
|
Also see |++opt| and |+cmd|.
|
||||||
|
|
||||||
:rew[ind]! [++opt] [+cmd]
|
:rew[ind]! [++opt] [+cmd]
|
||||||
Start editing the first file in the argument list.
|
Start editing the first file in the argument list.
|
||||||
Discard any changes to the buffer. Also see |++opt|
|
Discard any changes to the buffer. Also see |++opt|
|
||||||
and |+cmd|. {Vi: no ++opt}
|
and |+cmd|.
|
||||||
|
|
||||||
*:fir* *:first*
|
*:fir* *:first*
|
||||||
:fir[st][!] [++opt] [+cmd]
|
:fir[st][!] [++opt] [+cmd]
|
||||||
Other name for ":rewind". {not in Vi}
|
Other name for ":rewind".
|
||||||
|
|
||||||
*:la* *:last*
|
*:la* *:last*
|
||||||
:la[st] [++opt] [+cmd]
|
:la[st] [++opt] [+cmd]
|
||||||
Start editing the last file in the argument list.
|
Start editing the last file in the argument list.
|
||||||
This fails when changes have been made and Vim does
|
This fails when changes have been made and Vim does
|
||||||
not want to |abandon| the current buffer.
|
not want to |abandon| the current buffer.
|
||||||
Also see |++opt| and |+cmd|. {not in Vi}
|
Also see |++opt| and |+cmd|.
|
||||||
|
|
||||||
:la[st]! [++opt] [+cmd]
|
:la[st]! [++opt] [+cmd]
|
||||||
Start editing the last file in the argument list.
|
Start editing the last file in the argument list.
|
||||||
Discard any changes to the buffer. Also see |++opt|
|
Discard any changes to the buffer. Also see |++opt|
|
||||||
and |+cmd|. {not in Vi}
|
and |+cmd|.
|
||||||
|
|
||||||
*:wn* *:wnext*
|
*:wn* *:wnext*
|
||||||
:[count]wn[ext] [++opt]
|
:[count]wn[ext] [++opt]
|
||||||
Write current file and start editing the [count]
|
Write current file and start editing the [count]
|
||||||
next file. Also see |++opt| and |+cmd|. {not in Vi}
|
next file. Also see |++opt| and |+cmd|.
|
||||||
|
|
||||||
:[count]wn[ext] [++opt] {file}
|
:[count]wn[ext] [++opt] {file}
|
||||||
Write current file to {file} and start editing the
|
Write current file to {file} and start editing the
|
||||||
[count] next file, unless {file} already exists and
|
[count] next file, unless {file} already exists and
|
||||||
the 'writeany' option is off. Also see |++opt| and
|
the 'writeany' option is off. Also see |++opt| and
|
||||||
|+cmd|. {not in Vi}
|
|+cmd|.
|
||||||
|
|
||||||
:[count]wn[ext]! [++opt] {file}
|
:[count]wn[ext]! [++opt] {file}
|
||||||
Write current file to {file} and start editing the
|
Write current file to {file} and start editing the
|
||||||
[count] next file. Also see |++opt| and |+cmd|. {not
|
[count] next file. Also see |++opt| and |+cmd|.
|
||||||
in Vi}
|
|
||||||
|
|
||||||
:[count]wN[ext][!] [++opt] [file] *:wN* *:wNext*
|
:[count]wN[ext][!] [++opt] [file] *:wN* *:wNext*
|
||||||
:[count]wp[revious][!] [++opt] [file] *:wp* *:wprevious*
|
:[count]wp[revious][!] [++opt] [file] *:wp* *:wprevious*
|
||||||
Same as :wnext, but go to previous file instead of
|
Same as :wnext, but go to previous file instead of
|
||||||
next. {not in Vi}
|
next.
|
||||||
|
|
||||||
The [count] in the commands above defaults to one. For some commands it is
|
The [count] in the commands above defaults to one. For some commands it is
|
||||||
possible to use two counts. The last one (rightmost one) is used.
|
possible to use two counts. The last one (rightmost one) is used.
|
||||||
@ -768,9 +733,6 @@ fourth file in the argument list. This happens when you do ":e file".
|
|||||||
|
|
||||||
LOCAL ARGUMENT LIST
|
LOCAL ARGUMENT LIST
|
||||||
|
|
||||||
{not in Vi}
|
|
||||||
{not available when compiled without the |+windows| or |+listcmds| features}
|
|
||||||
|
|
||||||
*:arglocal*
|
*:arglocal*
|
||||||
:argl[ocal] Make a local copy of the global argument list.
|
:argl[ocal] Make a local copy of the global argument list.
|
||||||
Doesn't start editing another file.
|
Doesn't start editing another file.
|
||||||
@ -821,8 +783,6 @@ USING THE ARGUMENT LIST
|
|||||||
autocommand event is disabled by adding it to
|
autocommand event is disabled by adding it to
|
||||||
'eventignore'. This considerably speeds up editing
|
'eventignore'. This considerably speeds up editing
|
||||||
each file.
|
each file.
|
||||||
{not in Vi} {not available when compiled without the
|
|
||||||
|+listcmds| feature}
|
|
||||||
Also see |:windo|, |:tabdo| and |:bufdo|.
|
Also see |:windo|, |:tabdo| and |:bufdo|.
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
@ -910,24 +870,22 @@ used, for example, when the write fails and you want to try again later with
|
|||||||
When 'filetype' is empty filetype detection is done
|
When 'filetype' is empty filetype detection is done
|
||||||
with the new name, before the file is written.
|
with the new name, before the file is written.
|
||||||
When the write was successful 'readonly' is reset.
|
When the write was successful 'readonly' is reset.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:up* *:update*
|
*:up* *:update*
|
||||||
:[range]up[date][!] [++opt] [>>] [file]
|
:[range]up[date][!] [++opt] [>>] [file]
|
||||||
Like ":write", but only write when the buffer has been
|
Like ":write", but only write when the buffer has been
|
||||||
modified. {not in Vi}
|
modified.
|
||||||
|
|
||||||
|
|
||||||
WRITING WITH MULTIPLE BUFFERS *buffer-write*
|
WRITING WITH MULTIPLE BUFFERS *buffer-write*
|
||||||
|
|
||||||
*:wa* *:wall*
|
*:wa* *:wall*
|
||||||
:wa[ll] Write all changed buffers. Buffers without a file
|
:wa[ll] Write all changed buffers. Buffers without a file
|
||||||
name or which are readonly are not written. {not in
|
name or which are readonly are not written.
|
||||||
Vi}
|
|
||||||
|
|
||||||
:wa[ll]! Write all changed buffers, even the ones that are
|
:wa[ll]! Write all changed buffers, even the ones that are
|
||||||
readonly. Buffers without a file name are not
|
readonly. Buffers without a file name are not
|
||||||
written. {not in Vi}
|
written.
|
||||||
|
|
||||||
|
|
||||||
Vim will warn you if you try to overwrite a file that has been changed
|
Vim will warn you if you try to overwrite a file that has been changed
|
||||||
@ -1056,14 +1014,14 @@ The names can be in upper- or lowercase.
|
|||||||
|
|
||||||
:conf[irm] q[uit] Quit, but give prompt when changes have been made, or
|
:conf[irm] q[uit] Quit, but give prompt when changes have been made, or
|
||||||
the last file in the argument list has not been
|
the last file in the argument list has not been
|
||||||
edited. See |:confirm| and 'confirm'. {not in Vi}
|
edited. See |:confirm| and 'confirm'.
|
||||||
|
|
||||||
:q[uit]! Quit without writing, also when visible buffers have
|
:q[uit]! Quit without writing, also when visible buffers have
|
||||||
changes. Does not exit when there are changed hidden
|
changes. Does not exit when there are changed hidden
|
||||||
buffers. Use ":qall!" to exit always.
|
buffers. Use ":qall!" to exit always.
|
||||||
|
|
||||||
:cq[uit] Quit always, without writing, and return an error
|
:cq[uit] Quit always, without writing, and return an error
|
||||||
code. See |:cq|. {not in Vi}
|
code. See |:cq|.
|
||||||
|
|
||||||
*:wq*
|
*:wq*
|
||||||
:wq [++opt] Write the current file and quit. Writing fails when
|
:wq [++opt] Write the current file and quit. Writing fails when
|
||||||
@ -1101,7 +1059,6 @@ ZZ Write current file, if modified, and quit (same as
|
|||||||
|
|
||||||
*ZQ*
|
*ZQ*
|
||||||
ZQ Quit without checking for changes (same as ":q!").
|
ZQ Quit without checking for changes (same as ":q!").
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
MULTIPLE WINDOWS AND BUFFERS *window-exit*
|
MULTIPLE WINDOWS AND BUFFERS *window-exit*
|
||||||
|
|
||||||
@ -1109,35 +1066,34 @@ MULTIPLE WINDOWS AND BUFFERS *window-exit*
|
|||||||
:qa[ll] Exit Vim, unless there are some buffers which have been
|
:qa[ll] Exit Vim, unless there are some buffers which have been
|
||||||
changed. (Use ":bmod" to go to the next modified buffer).
|
changed. (Use ":bmod" to go to the next modified buffer).
|
||||||
When 'autowriteall' is set all changed buffers will be
|
When 'autowriteall' is set all changed buffers will be
|
||||||
written, like |:wqall|. {not in Vi}
|
written, like |:wqall|.
|
||||||
|
|
||||||
:conf[irm] qa[ll]
|
:conf[irm] qa[ll]
|
||||||
Exit Vim. Bring up a prompt when some buffers have been
|
Exit Vim. Bring up a prompt when some buffers have been
|
||||||
changed. See |:confirm|. {not in Vi}
|
changed. See |:confirm|.
|
||||||
|
|
||||||
:qa[ll]! Exit Vim. Any changes to buffers are lost. {not in Vi}
|
:qa[ll]! Exit Vim. Any changes to buffers are lost.
|
||||||
Also see |:cquit|, it does the same but exits with a non-zero
|
Also see |:cquit|, it does the same but exits with a non-zero
|
||||||
value.
|
value.
|
||||||
|
|
||||||
*:quita* *:quitall*
|
*:quita* *:quitall*
|
||||||
:quita[ll][!] Same as ":qall". {not in Vi}
|
:quita[ll][!] Same as ":qall".
|
||||||
|
|
||||||
:wqa[ll] [++opt] *:wqa* *:wqall* *:xa* *:xall*
|
:wqa[ll] [++opt] *:wqa* *:wqall* *:xa* *:xall*
|
||||||
:xa[ll] Write all changed buffers and exit Vim. If there are buffers
|
:xa[ll] Write all changed buffers and exit Vim. If there are buffers
|
||||||
without a file name, which are readonly or which cannot be
|
without a file name, which are readonly or which cannot be
|
||||||
written for another reason, Vim will not quit. {not in Vi}
|
written for another reason, Vim will not quit.
|
||||||
|
|
||||||
:conf[irm] wqa[ll] [++opt]
|
:conf[irm] wqa[ll] [++opt]
|
||||||
:conf[irm] xa[ll]
|
:conf[irm] xa[ll]
|
||||||
Write all changed buffers and exit Vim. Bring up a prompt
|
Write all changed buffers and exit Vim. Bring up a prompt
|
||||||
when some buffers are readonly or cannot be written for
|
when some buffers are readonly or cannot be written for
|
||||||
another reason. See |:confirm|. {not in Vi}
|
another reason. See |:confirm|.
|
||||||
|
|
||||||
:wqa[ll]! [++opt]
|
:wqa[ll]! [++opt]
|
||||||
:xa[ll]! Write all changed buffers, even the ones that are readonly,
|
:xa[ll]! Write all changed buffers, even the ones that are readonly,
|
||||||
and exit Vim. If there are buffers without a file name or
|
and exit Vim. If there are buffers without a file name or
|
||||||
which cannot be written for another reason, Vim will not quit.
|
which cannot be written for another reason, Vim will not quit.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Dialogs *edit-dialogs*
|
6. Dialogs *edit-dialogs*
|
||||||
@ -1260,7 +1216,7 @@ present in 'cpoptions' and "!" is not used in the command.
|
|||||||
<
|
<
|
||||||
*:cd-* *E186*
|
*:cd-* *E186*
|
||||||
:cd[!] - Change to the previous current directory (before the
|
:cd[!] - Change to the previous current directory (before the
|
||||||
previous ":cd {path}" command). {not in Vi}
|
previous ":cd {path}" command).
|
||||||
|
|
||||||
*:chd* *:chdir*
|
*:chd* *:chdir*
|
||||||
:chd[ir][!] [path] Same as |:cd|.
|
:chd[ir][!] [path] Same as |:cd|.
|
||||||
@ -1268,13 +1224,13 @@ present in 'cpoptions' and "!" is not used in the command.
|
|||||||
*:lc* *:lcd*
|
*:lc* *:lcd*
|
||||||
:lc[d][!] {path} Like |:cd|, but only set the current directory for the
|
:lc[d][!] {path} Like |:cd|, but only set the current directory for the
|
||||||
current window. The current directory for other
|
current window. The current directory for other
|
||||||
windows is not changed. {not in Vi}
|
windows is not changed.
|
||||||
|
|
||||||
*:lch* *:lchdir*
|
*:lch* *:lchdir*
|
||||||
:lch[dir][!] Same as |:lcd|. {not in Vi}
|
:lch[dir][!] Same as |:lcd|.
|
||||||
|
|
||||||
*:pw* *:pwd* *E187*
|
*:pw* *:pwd* *E187*
|
||||||
:pw[d] Print the current directory name. {Vi: no pwd}
|
:pw[d] Print the current directory name.
|
||||||
Also see |getcwd()|.
|
Also see |getcwd()|.
|
||||||
|
|
||||||
So long as no |:lcd| command has been used, all windows share the same current
|
So long as no |:lcd| command has been used, all windows share the same current
|
||||||
@ -1323,8 +1279,7 @@ There are a few things to remember when editing binary files:
|
|||||||
file. Otherwise both <CR> <NL> and <NL> are considered to end a line
|
file. Otherwise both <CR> <NL> and <NL> are considered to end a line
|
||||||
and when the file is written the <NL> will be replaced with <CR> <NL>.
|
and when the file is written the <NL> will be replaced with <CR> <NL>.
|
||||||
- <Nul> characters are shown on the screen as ^@. You can enter them with
|
- <Nul> characters are shown on the screen as ^@. You can enter them with
|
||||||
"CTRL-V CTRL-@" or "CTRL-V 000" {Vi cannot handle <Nul> characters in the
|
"CTRL-V CTRL-@" or "CTRL-V 000".
|
||||||
file}
|
|
||||||
- To insert a <NL> character in the file split up a line. When writing the
|
- To insert a <NL> character in the file split up a line. When writing the
|
||||||
buffer to a file a <NL> will be written for the <EOL>.
|
buffer to a file a <NL> will be written for the <EOL>.
|
||||||
- Vim normally appends an <EOL> at the end of the file if there is none.
|
- Vim normally appends an <EOL> at the end of the file if there is none.
|
||||||
|
@ -30,8 +30,6 @@ done, the features in this document are not available. See |+eval| and
|
|||||||
11. The sandbox |eval-sandbox|
|
11. The sandbox |eval-sandbox|
|
||||||
12. Textlock |textlock|
|
12. Textlock |textlock|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Variables *variables*
|
1. Variables *variables*
|
||||||
|
|
||||||
@ -4033,7 +4031,7 @@ jobsend({job}, {data}) {Nvim} *jobsend()*
|
|||||||
|
|
||||||
jobstart({cmd}[, {opts}]) {Nvim} *jobstart()*
|
jobstart({cmd}[, {opts}]) {Nvim} *jobstart()*
|
||||||
Spawns {cmd} as a job. If {cmd} is a |List|, it will be run
|
Spawns {cmd} as a job. If {cmd} is a |List|, it will be run
|
||||||
directly. If {cmd} is a |String|, it will be equivalent to >
|
directly. If {cmd} is a |string|, it will be equivalent to >
|
||||||
:call jobstart([&shell, &shellcmdflag, '{cmd}'])
|
:call jobstart([&shell, &shellcmdflag, '{cmd}'])
|
||||||
< If passed, {opts} must be a dictionary with any of the
|
< If passed, {opts} must be a dictionary with any of the
|
||||||
following keys:
|
following keys:
|
||||||
@ -6156,7 +6154,7 @@ synstack({lnum}, {col}) *synstack()*
|
|||||||
valid positions.
|
valid positions.
|
||||||
|
|
||||||
system({cmd} [, {input}]) *system()* *E677*
|
system({cmd} [, {input}]) *system()* *E677*
|
||||||
Get the output of the shell command {cmd} as a |String|. {cmd}
|
Get the output of the shell command {cmd} as a |string|. {cmd}
|
||||||
will be run the same as in |jobstart()|. See |systemlist()|
|
will be run the same as in |jobstart()|. See |systemlist()|
|
||||||
to get the output as a |List|.
|
to get the output as a |List|.
|
||||||
|
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
|
|
||||||
Right to Left and Farsi Mapping for Vim *farsi* *Farsi*
|
Right to Left and Farsi Mapping for Vim *farsi* *Farsi*
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
*E27*
|
*E27*
|
||||||
In order to use right-to-left and Farsi mapping support, it is necessary to
|
In order to use right-to-left and Farsi mapping support, it is necessary to
|
||||||
compile Vim with the |+farsi| feature.
|
compile Vim with the |+farsi| feature.
|
||||||
|
@ -12,8 +12,6 @@ Filetypes *filetype* *file-type*
|
|||||||
|
|
||||||
Also see |autocmd.txt|.
|
Also see |autocmd.txt|.
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Filetypes *filetypes* *file-types*
|
1. Filetypes *filetypes* *file-types*
|
||||||
|
|
||||||
|
@ -14,9 +14,6 @@ You can find an introduction on folding in chapter 28 of the user manual.
|
|||||||
3. Fold options |fold-options|
|
3. Fold options |fold-options|
|
||||||
4. Behavior of folds |fold-behavior|
|
4. Behavior of folds |fold-behavior|
|
||||||
|
|
||||||
{Vi has no Folding}
|
|
||||||
{not available when compiled without the |+folding| feature}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Fold methods *fold-methods*
|
1. Fold methods *fold-methods*
|
||||||
|
|
||||||
|
@ -18,8 +18,6 @@ Other GUI documentation:
|
|||||||
|gui_x11.txt| For specific items of the X11 GUI.
|
|gui_x11.txt| For specific items of the X11 GUI.
|
||||||
|gui_w32.txt| For specific items of the Win32 GUI.
|
|gui_w32.txt| For specific items of the Win32 GUI.
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Starting the GUI *gui-start* *E229* *E233*
|
1. Starting the GUI *gui-start* *E229* *E233*
|
||||||
|
|
||||||
|
@ -19,8 +19,6 @@ Other relevant documentation:
|
|||||||
|gui.txt| For generic items of the GUI.
|
|gui.txt| For generic items of the GUI.
|
||||||
|os_win32.txt| For Win32 specific items.
|
|os_win32.txt| For Win32 specific items.
|
||||||
|
|
||||||
{Vi does not have a Windows GUI}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Starting the GUI *gui-w32-start*
|
1. Starting the GUI *gui-w32-start*
|
||||||
|
|
||||||
@ -454,7 +452,7 @@ be opened as normal. See |drag-n-drop|.
|
|||||||
|
|
||||||
*:simalt* *:si*
|
*:simalt* *:si*
|
||||||
:sim[alt] {key} simulate pressing {key} while holding Alt pressed.
|
:sim[alt] {key} simulate pressing {key} while holding Alt pressed.
|
||||||
{not in Vi} {only for Win32 versions}
|
{only for Win32 versions}
|
||||||
|
|
||||||
Normally, Vim takes control of all Alt-<Key> combinations, to increase the
|
Normally, Vim takes control of all Alt-<Key> combinations, to increase the
|
||||||
number of possible mappings. This clashes with the standard use of Alt as the
|
number of possible mappings. This clashes with the standard use of Alt as the
|
||||||
|
@ -19,8 +19,6 @@ Vim's Graphical User Interface *gui-x11* *GUI-X11*
|
|||||||
Other relevant documentation:
|
Other relevant documentation:
|
||||||
|gui.txt| For generic items of the GUI.
|
|gui.txt| For generic items of the GUI.
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Starting the X11 GUI *gui-x11-start* *E665*
|
1. Starting the X11 GUI *gui-x11-start* *E665*
|
||||||
|
|
||||||
|
@ -10,11 +10,6 @@ The supporting 'rightleft' functionality was originally created by Avner
|
|||||||
Lottem. <alottem at gmail dot com> Ron Aaron <ron at ronware dot org> is
|
Lottem. <alottem at gmail dot com> Ron Aaron <ron at ronware dot org> is
|
||||||
currently helping support these features.
|
currently helping support these features.
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
All this is only available when the |+rightleft| feature was enabled at
|
|
||||||
compile time.
|
|
||||||
|
|
||||||
|
|
||||||
Introduction
|
Introduction
|
||||||
------------
|
------------
|
||||||
|
@ -24,7 +24,6 @@ Help on help files *helphelp*
|
|||||||
the very top.
|
the very top.
|
||||||
The 'helplang' option is used to select a language, if
|
The 'helplang' option is used to select a language, if
|
||||||
the main help file is available in several languages.
|
the main help file is available in several languages.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*{subject}* *E149* *E661*
|
*{subject}* *E149* *E661*
|
||||||
:h[elp] {subject} Like ":help", additionally jump to the tag {subject}.
|
:h[elp] {subject} Like ":help", additionally jump to the tag {subject}.
|
||||||
@ -90,7 +89,7 @@ Help on help files *helphelp*
|
|||||||
command from a following command. You need to type
|
command from a following command. You need to type
|
||||||
CTRL-V first to insert the <LF> or <CR>. Example: >
|
CTRL-V first to insert the <LF> or <CR>. Example: >
|
||||||
:help so<C-V><CR>only
|
:help so<C-V><CR>only
|
||||||
< {not in Vi}
|
<
|
||||||
|
|
||||||
:h[elp]! [subject] Like ":help", but in non-English help files prefer to
|
:h[elp]! [subject] Like ":help", but in non-English help files prefer to
|
||||||
find a tag in a file with the same language as the
|
find a tag in a file with the same language as the
|
||||||
@ -126,7 +125,6 @@ Help on help files *helphelp*
|
|||||||
|:execute| when needed.
|
|:execute| when needed.
|
||||||
Compressed help files will not be searched (Fedora
|
Compressed help files will not be searched (Fedora
|
||||||
compresses the help files).
|
compresses the help files).
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:lh* *:lhelpgrep*
|
*:lh* *:lhelpgrep*
|
||||||
:lh[elpgrep] {pattern}[@xx]
|
:lh[elpgrep] {pattern}[@xx]
|
||||||
@ -139,11 +137,11 @@ Help on help files *helphelp*
|
|||||||
|
|
||||||
*:exu* *:exusage*
|
*:exu* *:exusage*
|
||||||
:exu[sage] Show help on Ex commands. Added to simulate the Nvi
|
:exu[sage] Show help on Ex commands. Added to simulate the Nvi
|
||||||
command. {not in Vi}
|
command.
|
||||||
|
|
||||||
*:viu* *:viusage*
|
*:viu* *:viusage*
|
||||||
:viu[sage] Show help on Normal mode commands. Added to simulate
|
:viu[sage] Show help on Normal mode commands. Added to simulate
|
||||||
the Nvi command. {not in Vi}
|
the Nvi command.
|
||||||
|
|
||||||
When no argument is given to |:help| the file given with the 'helpfile' option
|
When no argument is given to |:help| the file given with the 'helpfile' option
|
||||||
will be opened. Otherwise the specified tag is searched for in all "doc/tags"
|
will be opened. Otherwise the specified tag is searched for in all "doc/tags"
|
||||||
@ -191,7 +189,6 @@ command: >
|
|||||||
Only for backwards compatibility. It now executes the
|
Only for backwards compatibility. It now executes the
|
||||||
ToolBar.FindHelp menu entry instead of using a builtin
|
ToolBar.FindHelp menu entry instead of using a builtin
|
||||||
dialog. {only when compiled with |+GUI_GTK|}
|
dialog. {only when compiled with |+GUI_GTK|}
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:helpt* *:helptags*
|
*:helpt* *:helptags*
|
||||||
*E154* *E150* *E151* *E152* *E153* *E670*
|
*E154* *E150* *E151* *E152* *E153* *E670*
|
||||||
@ -211,7 +208,7 @@ command: >
|
|||||||
To rebuild the help tags in the runtime directory
|
To rebuild the help tags in the runtime directory
|
||||||
(requires write permission there): >
|
(requires write permission there): >
|
||||||
:helptags $VIMRUNTIME/doc
|
:helptags $VIMRUNTIME/doc
|
||||||
< {not in Vi}
|
<
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
@ -21,7 +21,6 @@ functions as you normally would with |tags|.
|
|||||||
7. Availability & Information |cscope-info|
|
7. Availability & Information |cscope-info|
|
||||||
|
|
||||||
This is currently for Unix and Win32 only.
|
This is currently for Unix and Win32 only.
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Cscope introduction *cscope-intro*
|
1. Cscope introduction *cscope-intro*
|
||||||
|
@ -14,16 +14,9 @@ The Python Interface to Vim *python* *Python*
|
|||||||
6. Tab page objects |python-tabpage|
|
6. Tab page objects |python-tabpage|
|
||||||
7. vim.bindeval objects |python-bindeval-objects|
|
7. vim.bindeval objects |python-bindeval-objects|
|
||||||
8. pyeval(), py3eval() Vim functions |python-pyeval|
|
8. pyeval(), py3eval() Vim functions |python-pyeval|
|
||||||
9. Dynamic loading |python-dynamic|
|
9. Python 3 |python3|
|
||||||
10. Python 3 |python3|
|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
See |nvim-python| for more information. {Nvim}
|
||||||
|
|
||||||
The Python 2.x interface is available only when Vim was compiled with the
|
|
||||||
|+python| feature.
|
|
||||||
The Python 3 interface is available only when Vim was compiled with the
|
|
||||||
|+python3| feature.
|
|
||||||
Both can be available at the same time, but read |python-2-and-3|.
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Commands *python-commands*
|
1. Commands *python-commands*
|
||||||
@ -38,9 +31,8 @@ Both can be available at the same time, but read |python-2-and-3|.
|
|||||||
{script}
|
{script}
|
||||||
{endmarker}
|
{endmarker}
|
||||||
Execute Python script {script}.
|
Execute Python script {script}.
|
||||||
Note: This command doesn't work when the Python
|
Note: This command doesn't work when Python isn't
|
||||||
feature wasn't compiled in. To avoid errors, see
|
available. To avoid errors, see |script-here|.
|
||||||
|script-here|.
|
|
||||||
|
|
||||||
{endmarker} must NOT be preceded by any white space. If {endmarker} is
|
{endmarker} must NOT be preceded by any white space. If {endmarker} is
|
||||||
omitted from after the "<<", a dot '.' must be used after {script}, like
|
omitted from after the "<<", a dot '.' must be used after {script}, like
|
||||||
@ -69,7 +61,6 @@ and "EOF" do not have any indent.
|
|||||||
None. If a string is returned, it becomes the text of
|
None. If a string is returned, it becomes the text of
|
||||||
the line in the current turn. The default for [range]
|
the line in the current turn. The default for [range]
|
||||||
is the whole file: "1,$".
|
is the whole file: "1,$".
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
>
|
>
|
||||||
@ -79,7 +70,7 @@ Examples:
|
|||||||
*:pyfile* *:pyf*
|
*:pyfile* *:pyf*
|
||||||
:[range]pyf[ile] {file}
|
:[range]pyf[ile] {file}
|
||||||
Execute the Python script in {file}. The whole
|
Execute the Python script in {file}. The whole
|
||||||
argument is used as a single file name. {not in Vi}
|
argument is used as a single file name.
|
||||||
|
|
||||||
Both of these commands do essentially the same thing - they execute a piece of
|
Both of these commands do essentially the same thing - they execute a piece of
|
||||||
Python code, with the "current range" |python-range| set to the given line
|
Python code, with the "current range" |python-range| set to the given line
|
||||||
@ -700,24 +691,7 @@ To facilitate bi-directional interface, you can use |pyeval()| and |py3eval()|
|
|||||||
functions to evaluate Python expressions and pass their values to VimL.
|
functions to evaluate Python expressions and pass their values to VimL.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
9. Dynamic loading *python-dynamic*
|
9. Python 3 *python3*
|
||||||
|
|
||||||
On MS-Windows the Python library can be loaded dynamically. The |:version|
|
|
||||||
output then includes |+python/dyn|.
|
|
||||||
|
|
||||||
This means that Vim will search for the Python DLL file only when needed.
|
|
||||||
When you don't use the Python interface you don't need it, thus you can use
|
|
||||||
Vim without this DLL file.
|
|
||||||
|
|
||||||
To use the Python interface the Python DLL must be in your search path. In a
|
|
||||||
console window type "path" to see what directories are used.
|
|
||||||
|
|
||||||
The name of the DLL must match the Python version Vim was compiled with.
|
|
||||||
Currently the name is "python24.dll". That is for Python 2.4. To know for
|
|
||||||
sure edit "gvim.exe" and search for "python\d*.dll\c".
|
|
||||||
|
|
||||||
==============================================================================
|
|
||||||
10. Python 3 *python3*
|
|
||||||
|
|
||||||
*:py3* *:python3*
|
*:py3* *:python3*
|
||||||
The `:py3` and `:python3` commands work similar to `:python`. A simple check
|
The `:py3` and `:python3` commands work similar to `:python`. A simple check
|
||||||
@ -728,47 +702,10 @@ The `:py3file` command works similar to `:pyfile`.
|
|||||||
*:py3do* *E863*
|
*:py3do* *E863*
|
||||||
The `:py3do` command works similar to `:pydo`.
|
The `:py3do` command works similar to `:pydo`.
|
||||||
|
|
||||||
|
|
||||||
Vim can be built in four ways (:version output):
|
|
||||||
1. No Python support (-python, -python3)
|
|
||||||
2. Python 2 support only (+python or +python/dyn, -python3)
|
|
||||||
3. Python 3 support only (-python, +python3 or +python3/dyn)
|
|
||||||
4. Python 2 and 3 support (+python/dyn, +python3/dyn)
|
|
||||||
|
|
||||||
Some more details on the special case 4: *python-2-and-3*
|
|
||||||
|
|
||||||
When Python 2 and Python 3 are both supported they must be loaded dynamically.
|
|
||||||
|
|
||||||
When doing this on Linux/Unix systems and importing global symbols, this leads
|
|
||||||
to a crash when the second Python version is used. So either global symbols
|
|
||||||
are loaded but only one Python version is activated, or no global symbols are
|
|
||||||
loaded. The latter makes Python's "import" fail on libraries that expect the
|
|
||||||
symbols to be provided by Vim.
|
|
||||||
*E836* *E837*
|
|
||||||
Vim's configuration script makes a guess for all libraries based on one
|
|
||||||
standard Python library (termios). If importing this library succeeds for
|
|
||||||
both Python versions, then both will be made available in Vim at the same
|
|
||||||
time. If not, only the version first used in a session will be enabled.
|
|
||||||
When trying to use the other one you will get the E836 or E837 error message.
|
|
||||||
|
|
||||||
Here Vim's behavior depends on the system in which it was configured. In a
|
|
||||||
system where both versions of Python were configured with --enable-shared,
|
|
||||||
both versions of Python will be activated at the same time. There will still
|
|
||||||
be problems with other third party libraries that were not linked to
|
|
||||||
libPython.
|
|
||||||
|
|
||||||
To work around such problems there are these options:
|
|
||||||
1. The problematic library is recompiled to link to the according
|
|
||||||
libpython.so.
|
|
||||||
2. Vim is recompiled for only one Python version.
|
|
||||||
3. You undefine PY_NO_RTLD_GLOBAL in auto/config.h after configuration. This
|
|
||||||
may crash Vim though.
|
|
||||||
|
|
||||||
*E880*
|
*E880*
|
||||||
Raising SystemExit exception in python isn't endorsed way to quit vim, use: >
|
Raising SystemExit exception in python isn't endorsed way to quit vim, use: >
|
||||||
:py vim.command("qall!")
|
:py vim.command("qall!")
|
||||||
<
|
<
|
||||||
|
|
||||||
*has-python*
|
*has-python*
|
||||||
You can test what Python version is available with: >
|
You can test what Python version is available with: >
|
||||||
if has('python')
|
if has('python')
|
||||||
@ -777,10 +714,8 @@ You can test what Python version is available with: >
|
|||||||
echo 'there is Python 3.x'
|
echo 'there is Python 3.x'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
Note however, that when Python 2 and 3 are both available and loaded
|
Note however, that if Python 2 and 3 are both available, but not loaded,
|
||||||
dynamically, these has() calls will try to load them. If only one can be
|
these has() calls will try to load them.
|
||||||
loaded at a time, just checking if Python 2 or 3 are available will prevent
|
|
||||||
the other one from being available.
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
|
@ -59,10 +59,10 @@ CTRL-C Quit insert mode, go back to Normal mode. Do not check for
|
|||||||
event.
|
event.
|
||||||
|
|
||||||
*i_CTRL-@*
|
*i_CTRL-@*
|
||||||
CTRL-@ Insert previously inserted text and stop insert. {Vi: only
|
CTRL-@ Insert previously inserted text and stop insert.
|
||||||
when typed as first char, only up to 128 chars}
|
|
||||||
*i_CTRL-A*
|
*i_CTRL-A*
|
||||||
CTRL-A Insert previously inserted text. {not in Vi}
|
CTRL-A Insert previously inserted text.
|
||||||
|
|
||||||
*i_CTRL-H* *i_<BS>* *i_BS*
|
*i_CTRL-H* *i_<BS>* *i_BS*
|
||||||
<BS> or CTRL-H Delete the character before the cursor (see |i_backspacing|
|
<BS> or CTRL-H Delete the character before the cursor (see |i_backspacing|
|
||||||
@ -96,10 +96,10 @@ CTRL-K {char1} [char2]
|
|||||||
key, the code for that key is inserted in <> form. For
|
key, the code for that key is inserted in <> form. For
|
||||||
example, the string "<S-Space>" can be entered by typing
|
example, the string "<S-Space>" can be entered by typing
|
||||||
<C-K><S-Space> (two keys). Neither char is considered for
|
<C-K><S-Space> (two keys). Neither char is considered for
|
||||||
mapping. {not in Vi}
|
mapping.
|
||||||
|
|
||||||
CTRL-N Find next keyword (see |i_CTRL-N|). {not in Vi}
|
CTRL-N Find next keyword (see |i_CTRL-N|).
|
||||||
CTRL-P Find previous keyword (see |i_CTRL-P|). {not in Vi}
|
CTRL-P Find previous keyword (see |i_CTRL-P|).
|
||||||
|
|
||||||
CTRL-R {0-9a-z"%#*+:.-=} *i_CTRL-R*
|
CTRL-R {0-9a-z"%#*+:.-=} *i_CTRL-R*
|
||||||
Insert the contents of a register. Between typing CTRL-R and
|
Insert the contents of a register. Between typing CTRL-R and
|
||||||
@ -136,7 +136,7 @@ CTRL-R {0-9a-z"%#*+:.-=} *i_CTRL-R*
|
|||||||
converted to a String.
|
converted to a String.
|
||||||
When append() or setline() is invoked the undo
|
When append() or setline() is invoked the undo
|
||||||
sequence will be broken.
|
sequence will be broken.
|
||||||
See |registers| about registers. {not in Vi}
|
See |registers| about registers.
|
||||||
|
|
||||||
CTRL-R CTRL-R {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-R*
|
CTRL-R CTRL-R {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-R*
|
||||||
Insert the contents of a register. Works like using a single
|
Insert the contents of a register. Works like using a single
|
||||||
@ -148,7 +148,7 @@ CTRL-R CTRL-R {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-R*
|
|||||||
< Options 'textwidth', 'formatoptions', etc. still apply. If
|
< Options 'textwidth', 'formatoptions', etc. still apply. If
|
||||||
you also want to avoid these, use "<C-R><C-O>r", see below.
|
you also want to avoid these, use "<C-R><C-O>r", see below.
|
||||||
The '.' register (last inserted text) is still inserted as
|
The '.' register (last inserted text) is still inserted as
|
||||||
typed. {not in Vi}
|
typed.
|
||||||
|
|
||||||
CTRL-R CTRL-O {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-O*
|
CTRL-R CTRL-O {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-O*
|
||||||
Insert the contents of a register literally and don't
|
Insert the contents of a register literally and don't
|
||||||
@ -156,31 +156,29 @@ CTRL-R CTRL-O {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-O*
|
|||||||
|<MiddleMouse>|.
|
|<MiddleMouse>|.
|
||||||
Does not replace characters!
|
Does not replace characters!
|
||||||
The '.' register (last inserted text) is still inserted as
|
The '.' register (last inserted text) is still inserted as
|
||||||
typed. {not in Vi}
|
typed.
|
||||||
|
|
||||||
CTRL-R CTRL-P {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-P*
|
CTRL-R CTRL-P {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-P*
|
||||||
Insert the contents of a register literally and fix the
|
Insert the contents of a register literally and fix the
|
||||||
indent, like |[<MiddleMouse>|.
|
indent, like |[<MiddleMouse>|.
|
||||||
Does not replace characters!
|
Does not replace characters!
|
||||||
The '.' register (last inserted text) is still inserted as
|
The '.' register (last inserted text) is still inserted as
|
||||||
typed. {not in Vi}
|
typed.
|
||||||
|
|
||||||
*i_CTRL-T*
|
*i_CTRL-T*
|
||||||
CTRL-T Insert one shiftwidth of indent at the start of the current
|
CTRL-T Insert one shiftwidth of indent at the start of the current
|
||||||
line. The indent is always rounded to a 'shiftwidth' (this is
|
line. The indent is always rounded to a 'shiftwidth'.
|
||||||
vi compatible). {Vi: only when in indent}
|
|
||||||
*i_CTRL-D*
|
*i_CTRL-D*
|
||||||
CTRL-D Delete one shiftwidth of indent at the start of the current
|
CTRL-D Delete one shiftwidth of indent at the start of the current
|
||||||
line. The indent is always rounded to a 'shiftwidth' (this is
|
line. The indent is always rounded to a 'shiftwidth'.
|
||||||
vi compatible). {Vi: CTRL-D works only when used after
|
|
||||||
autoindent}
|
|
||||||
*i_0_CTRL-D*
|
*i_0_CTRL-D*
|
||||||
0 CTRL-D Delete all indent in the current line. {Vi: CTRL-D works
|
0 CTRL-D Delete all indent in the current line.
|
||||||
only when used after autoindent}
|
|
||||||
*i_^_CTRL-D*
|
*i_^_CTRL-D*
|
||||||
^ CTRL-D Delete all indent in the current line. The indent is
|
^ CTRL-D Delete all indent in the current line. The indent is
|
||||||
restored in the next line. This is useful when inserting a
|
restored in the next line. This is useful when inserting a
|
||||||
label. {Vi: CTRL-D works only when used after autoindent}
|
label.
|
||||||
|
|
||||||
*i_CTRL-V*
|
*i_CTRL-V*
|
||||||
CTRL-V Insert next non-digit literally. For special keys, the
|
CTRL-V Insert next non-digit literally. For special keys, the
|
||||||
@ -188,7 +186,7 @@ CTRL-V Insert next non-digit literally. For special keys, the
|
|||||||
decimal, octal or hexadecimal value of a character
|
decimal, octal or hexadecimal value of a character
|
||||||
|i_CTRL-V_digit|.
|
|i_CTRL-V_digit|.
|
||||||
The characters typed right after CTRL-V are not considered for
|
The characters typed right after CTRL-V are not considered for
|
||||||
mapping. {Vi: no decimal byte entry}
|
mapping.
|
||||||
Note: When CTRL-V is mapped (e.g., to paste text) you can
|
Note: When CTRL-V is mapped (e.g., to paste text) you can
|
||||||
often use CTRL-Q instead |i_CTRL-Q|.
|
often use CTRL-Q instead |i_CTRL-Q|.
|
||||||
|
|
||||||
@ -199,12 +197,12 @@ CTRL-Q Same as CTRL-V.
|
|||||||
|
|
||||||
CTRL-X Enter CTRL-X mode. This is a sub-mode where commands can
|
CTRL-X Enter CTRL-X mode. This is a sub-mode where commands can
|
||||||
be given to complete words or scroll the window. See
|
be given to complete words or scroll the window. See
|
||||||
|i_CTRL-X| and |ins-completion|. {not in Vi}
|
|i_CTRL-X| and |ins-completion|.
|
||||||
|
|
||||||
*i_CTRL-E*
|
*i_CTRL-E*
|
||||||
CTRL-E Insert the character which is below the cursor. {not in Vi}
|
CTRL-E Insert the character which is below the cursor.
|
||||||
*i_CTRL-Y*
|
*i_CTRL-Y*
|
||||||
CTRL-Y Insert the character which is above the cursor. {not in Vi}
|
CTRL-Y Insert the character which is above the cursor.
|
||||||
Note that for CTRL-E and CTRL-Y 'textwidth' is not used, to be
|
Note that for CTRL-E and CTRL-Y 'textwidth' is not used, to be
|
||||||
able to copy characters from a long line.
|
able to copy characters from a long line.
|
||||||
|
|
||||||
@ -221,8 +219,6 @@ CTRL-_ Switch between languages, as follows:
|
|||||||
is set.
|
is set.
|
||||||
Please refer to |rileft.txt| for more information about
|
Please refer to |rileft.txt| for more information about
|
||||||
right-to-left mode.
|
right-to-left mode.
|
||||||
{not in Vi}
|
|
||||||
Only if compiled with the |+rightleft| feature.
|
|
||||||
|
|
||||||
*i_CTRL-^*
|
*i_CTRL-^*
|
||||||
CTRL-^ Toggle the use of typing language characters.
|
CTRL-^ Toggle the use of typing language characters.
|
||||||
@ -241,14 +237,12 @@ CTRL-^ Toggle the use of typing language characters.
|
|||||||
The language mappings are normally used to type characters
|
The language mappings are normally used to type characters
|
||||||
that are different from what the keyboard produces. The
|
that are different from what the keyboard produces. The
|
||||||
'keymap' option can be used to install a whole number of them.
|
'keymap' option can be used to install a whole number of them.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*i_CTRL-]*
|
*i_CTRL-]*
|
||||||
CTRL-] Trigger abbreviation, without inserting a character. {not in
|
CTRL-] Trigger abbreviation, without inserting a character.
|
||||||
Vi}
|
|
||||||
|
|
||||||
*i_<Insert>*
|
*i_<Insert>*
|
||||||
<Insert> Toggle between Insert and Replace mode. {not in Vi}
|
<Insert> Toggle between Insert and Replace mode.
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
*i_backspacing*
|
*i_backspacing*
|
||||||
@ -270,7 +264,6 @@ For backwards compatibility the values "0", "1" and "2" are also allowed, see
|
|||||||
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
|
||||||
previous line. This effectively deletes the <EOL> in front of the cursor.
|
previous line. This effectively deletes the <EOL> in front of the cursor.
|
||||||
{Vi: does not cross lines, does not delete past start position of insert}
|
|
||||||
|
|
||||||
*i_CTRL-V_digit*
|
*i_CTRL-V_digit*
|
||||||
With CTRL-V the decimal, octal or hexadecimal value of a character can be
|
With CTRL-V the decimal, octal or hexadecimal value of a character can be
|
||||||
@ -487,15 +480,14 @@ The 'expandtab' option is off by default. Note that in Replace mode, a single
|
|||||||
character is replaced with several spaces. The result of this is that the
|
character is replaced with several spaces. The result of this is that the
|
||||||
number of characters in the line increases. Backspacing will delete one
|
number of characters in the line increases. Backspacing will delete one
|
||||||
space at a time. The original character will be put back for only one space
|
space at a time. The original character will be put back for only one space
|
||||||
that you backspace over (the last one). {Vi does not have the 'expandtab'
|
that you backspace over (the last one).
|
||||||
option}
|
|
||||||
|
|
||||||
*ins-smarttab*
|
*ins-smarttab*
|
||||||
When the 'smarttab' option is on, a <Tab> inserts 'shiftwidth' positions at
|
When the 'smarttab' option is on, a <Tab> inserts 'shiftwidth' positions at
|
||||||
the beginning of a line and 'tabstop' positions in other places. This means
|
the beginning of a line and 'tabstop' positions in other places. This means
|
||||||
that often spaces instead of a <Tab> character are inserted. When 'smarttab'
|
that often spaces instead of a <Tab> character are inserted. When 'smarttab'
|
||||||
is off, a <Tab> always inserts 'tabstop' positions, and 'shiftwidth' is only
|
is off, a <Tab> always inserts 'tabstop' positions, and 'shiftwidth' is only
|
||||||
used for ">>" and the like. {not in Vi}
|
used for ">>" and the like.
|
||||||
|
|
||||||
*ins-softtabstop*
|
*ins-softtabstop*
|
||||||
When the 'softtabstop' option is non-zero, a <Tab> inserts 'softtabstop'
|
When the 'softtabstop' option is non-zero, a <Tab> inserts 'softtabstop'
|
||||||
@ -535,14 +527,12 @@ If the 'expandtab' option is on, a <Tab> will replace one character with
|
|||||||
several spaces. The result of this is that the number of characters in the
|
several spaces. The result of this is that the number of characters in the
|
||||||
line increases. Backspacing will delete one space at a time. The original
|
line increases. Backspacing will delete one space at a time. The original
|
||||||
character will be put back for only one space that you backspace over (the
|
character will be put back for only one space that you backspace over (the
|
||||||
last one). {Vi does not have the 'expandtab' option}
|
last one).
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Virtual Replace mode *vreplace-mode* *Virtual-Replace-mode*
|
6. Virtual Replace mode *vreplace-mode* *Virtual-Replace-mode*
|
||||||
|
|
||||||
Enter Virtual Replace mode with the "gR" command in normal mode.
|
Enter Virtual Replace mode with the "gR" command in normal mode.
|
||||||
{not available when compiled without the |+vreplace| feature}
|
|
||||||
{Vi does not have Virtual Replace mode}
|
|
||||||
|
|
||||||
Virtual Replace mode is similar to Replace mode, but instead of replacing
|
Virtual Replace mode is similar to Replace mode, but instead of replacing
|
||||||
actual characters in the file, you are replacing screen real estate, so that
|
actual characters in the file, you are replacing screen real estate, so that
|
||||||
@ -1762,7 +1752,7 @@ I Insert text before the first non-blank in the line
|
|||||||
the last blank.
|
the last blank.
|
||||||
|
|
||||||
*gI*
|
*gI*
|
||||||
gI Insert text in column 1 [count] times. {not in Vi}
|
gI Insert text in column 1 [count] times.
|
||||||
|
|
||||||
*gi*
|
*gi*
|
||||||
gi Insert text in the same position as where Insert mode
|
gi Insert text in the same position as where Insert mode
|
||||||
@ -1773,19 +1763,16 @@ gi Insert text in the same position as where Insert mode
|
|||||||
but NOT for inserted/deleted characters.
|
but NOT for inserted/deleted characters.
|
||||||
When the |:keepjumps| command modifier is used the |'^|
|
When the |:keepjumps| command modifier is used the |'^|
|
||||||
mark won't be changed.
|
mark won't be changed.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*o*
|
*o*
|
||||||
o Begin a new line below the cursor and insert text,
|
o Begin a new line below the cursor and insert text,
|
||||||
repeat [count] times. {Vi: blank [count] screen
|
repeat [count] times.
|
||||||
lines}
|
|
||||||
When the '#' flag is in 'cpoptions' the count is
|
When the '#' flag is in 'cpoptions' the count is
|
||||||
ignored.
|
ignored.
|
||||||
|
|
||||||
*O*
|
*O*
|
||||||
O Begin a new line above the cursor and insert text,
|
O Begin a new line above the cursor and insert text,
|
||||||
repeat [count] times. {Vi: blank [count] screen
|
repeat [count] times.
|
||||||
lines}
|
|
||||||
When the '#' flag is in 'cpoptions' the count is
|
When the '#' flag is in 'cpoptions' the count is
|
||||||
ignored.
|
ignored.
|
||||||
|
|
||||||
@ -1840,9 +1827,6 @@ NOTE: These commands cannot be used with |:global| or |:vglobal|.
|
|||||||
script, the insertion only starts after the function
|
script, the insertion only starts after the function
|
||||||
or script is finished.
|
or script is finished.
|
||||||
This command does not work from |:normal|.
|
This command does not work from |:normal|.
|
||||||
{not in Vi}
|
|
||||||
{not available when compiled without the |+ex_extra|
|
|
||||||
feature}
|
|
||||||
|
|
||||||
*:stopi* *:stopinsert*
|
*:stopi* *:stopinsert*
|
||||||
:stopi[nsert] Stop Insert mode as soon as possible. Works like
|
:stopi[nsert] Stop Insert mode as soon as possible. Works like
|
||||||
@ -1859,16 +1843,10 @@ NOTE: These commands cannot be used with |:global| or |:vglobal|.
|
|||||||
Note that when using this command in a function or
|
Note that when using this command in a function or
|
||||||
script that the replacement will only start after
|
script that the replacement will only start after
|
||||||
the function or script is finished.
|
the function or script is finished.
|
||||||
{not in Vi}
|
|
||||||
{not available when compiled without the |+ex_extra|
|
|
||||||
feature}
|
|
||||||
|
|
||||||
*:startgreplace*
|
*:startgreplace*
|
||||||
:startg[replace][!] Just like |:startreplace|, but use Virtual Replace
|
:startg[replace][!] Just like |:startreplace|, but use Virtual Replace
|
||||||
mode, like with |gR|.
|
mode, like with |gR|.
|
||||||
{not in Vi}
|
|
||||||
{not available when compiled without the |+ex_extra|
|
|
||||||
feature}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
10. Inserting a file *inserting-file*
|
10. Inserting a file *inserting-file*
|
||||||
|
@ -34,10 +34,6 @@ It can be accessed from within Vim with the <Help> or <F1> key and with the
|
|||||||
is not located in the default place. You can jump to subjects like with tags:
|
is not located in the default place. You can jump to subjects like with tags:
|
||||||
Use CTRL-] to jump to a subject under the cursor, use CTRL-T to jump back.
|
Use CTRL-] to jump to a subject under the cursor, use CTRL-T to jump back.
|
||||||
|
|
||||||
Throughout this manual the differences between Vi and Vim are mentioned in
|
|
||||||
curly braces, like this: {Vi does not have on-line help}. See |vi_diff.txt|
|
|
||||||
for a summary of the differences between Vim and Vi.
|
|
||||||
|
|
||||||
This manual refers to Vim on various machines. There may be small differences
|
This manual refers to Vim on various machines. There may be small differences
|
||||||
between different computers and terminals. Besides the remarks given in this
|
between different computers and terminals. Besides the remarks given in this
|
||||||
document, there is a separate document for each supported system, see
|
document, there is a separate document for each supported system, see
|
||||||
@ -630,11 +626,7 @@ Ex :vi -- -- -- -- --
|
|||||||
the command.
|
the command.
|
||||||
In the last case <Esc> may be the character defined with the 'wildchar'
|
In the last case <Esc> may be the character defined with the 'wildchar'
|
||||||
option, in which case it will start command-line completion. You can
|
option, in which case it will start command-line completion. You can
|
||||||
ignore that and type <Esc> again. {Vi: when hitting <Esc> the command-line
|
ignore that and type <Esc> again.
|
||||||
is executed. This is unexpected for most people; therefore it was changed
|
|
||||||
in Vim. But when the <Esc> is part of a mapping, the command-line is
|
|
||||||
executed. If you want the Vi behaviour also when typing <Esc>, use ":cmap
|
|
||||||
^V<Esc> ^V^M"}
|
|
||||||
*4 Go from Normal to Select mode by:
|
*4 Go from Normal to Select mode by:
|
||||||
- use the mouse to select text while 'selectmode' contains "mouse"
|
- use the mouse to select text while 'selectmode' contains "mouse"
|
||||||
- use a non-printable command to move the cursor while keeping the Shift
|
- use a non-printable command to move the cursor while keeping the Shift
|
||||||
@ -683,7 +675,6 @@ gQ Switch to "Ex" mode like with "Q", but really behave
|
|||||||
like typing ":" commands after another. All command
|
like typing ":" commands after another. All command
|
||||||
line editing, completion etc. is available.
|
line editing, completion etc. is available.
|
||||||
Use the ":vi" command |:visual| to exit "Ex" mode.
|
Use the ":vi" command |:visual| to exit "Ex" mode.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
7. The window contents *window-contents*
|
7. The window contents *window-contents*
|
||||||
@ -696,7 +687,6 @@ exceptions:
|
|||||||
character.
|
character.
|
||||||
- When inserting text in one window, other windows on the same text are not
|
- When inserting text in one window, other windows on the same text are not
|
||||||
updated until the insert is finished.
|
updated until the insert is finished.
|
||||||
{Vi: The screen is not always updated on slow terminals}
|
|
||||||
|
|
||||||
Lines longer than the window width will wrap, unless the 'wrap' option is off
|
Lines longer than the window width will wrap, unless the 'wrap' option is off
|
||||||
(see below). The 'linebreak' option can be set to wrap at a blank character.
|
(see below). The 'linebreak' option can be set to wrap at a blank character.
|
||||||
@ -742,7 +732,6 @@ If there is a single line that is too long to fit in the window, this is a
|
|||||||
special situation. Vim will show only part of the line, around where the
|
special situation. Vim will show only part of the line, around where the
|
||||||
cursor is. There are no special characters shown, so that you can edit all
|
cursor is. There are no special characters shown, so that you can edit all
|
||||||
parts of this line.
|
parts of this line.
|
||||||
{Vi: gives an "internal error" on lines that do not fit in the window}
|
|
||||||
|
|
||||||
The '@' occasion in the 'highlight' option can be used to set special
|
The '@' occasion in the 'highlight' option can be used to set special
|
||||||
highlighting for the '@' and '~' characters. This makes it possible to
|
highlighting for the '@' and '~' characters. This makes it possible to
|
||||||
@ -757,7 +746,7 @@ that is not shown, the screen is scrolled horizontally. The advantage of
|
|||||||
this method is that columns are shown as they are and lines that cannot fit
|
this method is that columns are shown as they are and lines that cannot fit
|
||||||
on the screen can be edited. The disadvantage is that you cannot see all the
|
on the screen can be edited. The disadvantage is that you cannot see all the
|
||||||
characters of a line at once. The 'sidescroll' option can be set to the
|
characters of a line at once. The 'sidescroll' option can be set to the
|
||||||
minimal number of columns to scroll. {Vi: has no 'wrap' option}
|
minimal number of columns to scroll.
|
||||||
|
|
||||||
All normal ASCII characters are displayed directly on the screen. The <Tab>
|
All normal ASCII characters are displayed directly on the screen. The <Tab>
|
||||||
is replaced with the number of spaces that it represents. Other non-printing
|
is replaced with the number of spaces that it represents. Other non-printing
|
||||||
@ -789,16 +778,14 @@ command characters 'showcmd' on off
|
|||||||
cursor position 'ruler' off off
|
cursor position 'ruler' off off
|
||||||
|
|
||||||
The current mode is "-- INSERT --" or "-- REPLACE --", see |'showmode'|. The
|
The current mode is "-- INSERT --" or "-- REPLACE --", see |'showmode'|. The
|
||||||
command characters are those that you typed but were not used yet. {Vi: does
|
command characters are those that you typed but were not used yet.
|
||||||
not show the characters you typed or the cursor position}
|
|
||||||
|
|
||||||
If you have a slow terminal you can switch off the status messages to speed
|
If you have a slow terminal you can switch off the status messages to speed
|
||||||
up editing:
|
up editing:
|
||||||
:set nosc noru nosm
|
:set nosc noru nosm
|
||||||
|
|
||||||
If there is an error, an error message will be shown for at least one second
|
If there is an error, an error message will be shown for at least one second
|
||||||
(in reverse video). {Vi: error messages may be overwritten with other
|
(in reverse video).
|
||||||
messages before you have a chance to read them}
|
|
||||||
|
|
||||||
Some commands show how many lines were affected. Above which threshold this
|
Some commands show how many lines were affected. Above which threshold this
|
||||||
happens can be controlled with the 'report' option (default 2).
|
happens can be controlled with the 'report' option (default 2).
|
||||||
@ -810,7 +797,7 @@ small not a single line will fit in it. Make it at least 40 characters wide
|
|||||||
to be able to read most messages on the last line.
|
to be able to read most messages on the last line.
|
||||||
|
|
||||||
On most Unix systems, resizing the window is recognized and handled correctly
|
On most Unix systems, resizing the window is recognized and handled correctly
|
||||||
by Vim. {Vi: not ok}
|
by Vim.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
8. Definitions *definitions*
|
8. Definitions *definitions*
|
||||||
|
@ -74,7 +74,7 @@ modes.
|
|||||||
Map the key sequence {lhs} to {rhs} for the modes
|
Map the key sequence {lhs} to {rhs} for the modes
|
||||||
where the map command applies. Disallow mapping of
|
where the map command applies. Disallow mapping of
|
||||||
{rhs}, to avoid nested and recursive mappings. Often
|
{rhs}, to avoid nested and recursive mappings. Often
|
||||||
used to redefine a command. {not in Vi}
|
used to redefine a command.
|
||||||
|
|
||||||
|
|
||||||
:unm[ap] {lhs} |mapmode-nvo| *:unm* *:unmap*
|
:unm[ap] {lhs} |mapmode-nvo| *:unm* *:unmap*
|
||||||
@ -106,7 +106,7 @@ modes.
|
|||||||
:lmapc[lear] |mapmode-l| *:lmapc* *:lmapclear*
|
:lmapc[lear] |mapmode-l| *:lmapc* *:lmapclear*
|
||||||
:cmapc[lear] |mapmode-c| *:cmapc* *:cmapclear*
|
:cmapc[lear] |mapmode-c| *:cmapc* *:cmapclear*
|
||||||
Remove ALL mappings for the modes where the map
|
Remove ALL mappings for the modes where the map
|
||||||
command applies. {not in Vi}
|
command applies.
|
||||||
Use the <buffer> argument to remove buffer-local
|
Use the <buffer> argument to remove buffer-local
|
||||||
mappings |:map-<buffer>|
|
mappings |:map-<buffer>|
|
||||||
Warning: This also removes the default mappings.
|
Warning: This also removes the default mappings.
|
||||||
@ -137,7 +137,6 @@ modes.
|
|||||||
:cm[ap] {lhs} |mapmode-c| *:cmap_l*
|
:cm[ap] {lhs} |mapmode-c| *:cmap_l*
|
||||||
List the key mappings for the key sequences starting
|
List the key mappings for the key sequences starting
|
||||||
with {lhs} in the modes where the map command applies.
|
with {lhs} in the modes where the map command applies.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
These commands are used to map a key or key sequence to a string of
|
These commands are used to map a key or key sequence to a string of
|
||||||
characters. You can use this to put command sequences under function keys,
|
characters. You can use this to put command sequences under function keys,
|
||||||
@ -154,7 +153,6 @@ decide if "aa" or "aaa" should be mapped. This means that after typing "aa"
|
|||||||
that mapping won't get expanded yet, Vim is waiting for another character.
|
that mapping won't get expanded yet, Vim is waiting for another character.
|
||||||
If you type a space, then "foo" will get inserted, plus the space. If you
|
If you type a space, then "foo" will get inserted, plus the space. If you
|
||||||
type "a", then "bar" will get inserted.
|
type "a", then "bar" will get inserted.
|
||||||
{Vi does not allow ambiguous mappings}
|
|
||||||
|
|
||||||
|
|
||||||
1.2 SPECIAL ARGUMENTS *:map-arguments*
|
1.2 SPECIAL ARGUMENTS *:map-arguments*
|
||||||
@ -876,8 +874,7 @@ end-id The "end-id" type ends in a keyword character, but all the other
|
|||||||
Examples: "#i", "..f", "$/7"
|
Examples: "#i", "..f", "$/7"
|
||||||
|
|
||||||
non-id The "non-id" type ends in a non-keyword character, the other
|
non-id The "non-id" type ends in a non-keyword character, the other
|
||||||
characters may be of any type, excluding space and tab. {this type
|
characters may be of any type, excluding space and tab.
|
||||||
is not supported by Vi}
|
|
||||||
|
|
||||||
Examples: "def#", "4/7$"
|
Examples: "def#", "4/7$"
|
||||||
|
|
||||||
@ -995,45 +992,40 @@ See |:verbose-cmd| for more information.
|
|||||||
|
|
||||||
*:norea* *:noreabbrev*
|
*:norea* *:noreabbrev*
|
||||||
:norea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
:norea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
||||||
same as ":ab", but no remapping for this {rhs} {not
|
same as ":ab", but no remapping for this {rhs}
|
||||||
in Vi}
|
|
||||||
|
|
||||||
*:ca* *:cabbrev*
|
*:ca* *:cabbrev*
|
||||||
:ca[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
:ca[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
||||||
same as ":ab", but for Command-line mode only. {not
|
same as ":ab", but for Command-line mode only.
|
||||||
in Vi}
|
|
||||||
|
|
||||||
*:cuna* *:cunabbrev*
|
*:cuna* *:cunabbrev*
|
||||||
:cuna[bbrev] {lhs} same as ":una", but for Command-line mode only. {not
|
:cuna[bbrev] {lhs} same as ":una", but for Command-line mode only.
|
||||||
in Vi}
|
|
||||||
|
|
||||||
*:cnorea* *:cnoreabbrev*
|
*:cnorea* *:cnoreabbrev*
|
||||||
:cnorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
:cnorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
||||||
same as ":ab", but for Command-line mode only and no
|
same as ":ab", but for Command-line mode only and no
|
||||||
remapping for this {rhs} {not in Vi}
|
remapping for this {rhs}
|
||||||
|
|
||||||
*:ia* *:iabbrev*
|
*:ia* *:iabbrev*
|
||||||
:ia[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
:ia[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
||||||
same as ":ab", but for Insert mode only. {not in Vi}
|
same as ":ab", but for Insert mode only.
|
||||||
|
|
||||||
*:iuna* *:iunabbrev*
|
*:iuna* *:iunabbrev*
|
||||||
:iuna[bbrev] {lhs} same as ":una", but for insert mode only. {not in
|
:iuna[bbrev] {lhs} same as ":una", but for insert mode only.
|
||||||
Vi}
|
|
||||||
|
|
||||||
*:inorea* *:inoreabbrev*
|
*:inorea* *:inoreabbrev*
|
||||||
:inorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
:inorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
||||||
same as ":ab", but for Insert mode only and no
|
same as ":ab", but for Insert mode only and no
|
||||||
remapping for this {rhs} {not in Vi}
|
remapping for this {rhs}
|
||||||
|
|
||||||
*:abc* *:abclear*
|
*:abc* *:abclear*
|
||||||
:abc[lear] [<buffer>] Remove all abbreviations. {not in Vi}
|
:abc[lear] [<buffer>] Remove all abbreviations.
|
||||||
|
|
||||||
*:iabc* *:iabclear*
|
*:iabc* *:iabclear*
|
||||||
:iabc[lear] [<buffer>] Remove all abbreviations for Insert mode. {not in Vi}
|
:iabc[lear] [<buffer>] Remove all abbreviations for Insert mode.
|
||||||
|
|
||||||
*:cabc* *:cabclear*
|
*:cabc* *:cabclear*
|
||||||
:cabc[lear] [<buffer>] Remove all abbreviations for Command-line mode. {not
|
:cabc[lear] [<buffer>] Remove all abbreviations for Command-line mode.
|
||||||
in Vi}
|
|
||||||
|
|
||||||
*using_CTRL-V*
|
*using_CTRL-V*
|
||||||
It is possible to use special characters in the rhs of an abbreviation.
|
It is possible to use special characters in the rhs of an abbreviation.
|
||||||
@ -1126,9 +1118,6 @@ to find out what they are defined to.
|
|||||||
The |:scriptnames| command can be used to see which scripts have been sourced
|
The |:scriptnames| command can be used to see which scripts have been sourced
|
||||||
and what their <SNR> number is.
|
and what their <SNR> number is.
|
||||||
|
|
||||||
This is all {not in Vi} and {not available when compiled without the |+eval|
|
|
||||||
feature}.
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. User-defined commands *user-commands*
|
4. User-defined commands *user-commands*
|
||||||
|
|
||||||
|
@ -778,7 +778,6 @@ and the screen is about to be redrawn:
|
|||||||
like pressing <Space>. This makes it impossible to select text though.
|
like pressing <Space>. This makes it impossible to select text though.
|
||||||
-> For the GUI clicking the left mouse button in the last line works like
|
-> For the GUI clicking the left mouse button in the last line works like
|
||||||
pressing <Space>.
|
pressing <Space>.
|
||||||
{Vi: only ":" commands are interpreted}
|
|
||||||
|
|
||||||
If you accidentally hit <Enter> or <Space> and you want to see the displayed
|
If you accidentally hit <Enter> or <Space> and you want to see the displayed
|
||||||
text then use |g<|. This only works when 'more' is set.
|
text then use |g<|. This only works when 'more' is set.
|
||||||
@ -810,10 +809,10 @@ Type effect ~
|
|||||||
G down all the way, until the hit-enter
|
G down all the way, until the hit-enter
|
||||||
prompt
|
prompt
|
||||||
|
|
||||||
<BS> or k or <Up> one line back (*)
|
<BS> or k or <Up> one line back
|
||||||
u up a page (half a screen) (*)
|
u up a page (half a screen)
|
||||||
b or <PageUp> back a screen (*)
|
b or <PageUp> back a screen
|
||||||
g back to the start (*)
|
g back to the start
|
||||||
|
|
||||||
q, <Esc> or CTRL-C stop the listing
|
q, <Esc> or CTRL-C stop the listing
|
||||||
: stop the listing and enter a
|
: stop the listing and enter a
|
||||||
@ -822,13 +821,11 @@ Type effect ~
|
|||||||
the clipboard ("* and "+ registers)
|
the clipboard ("* and "+ registers)
|
||||||
{menu-entry} what the menu is defined to in
|
{menu-entry} what the menu is defined to in
|
||||||
Cmdline-mode.
|
Cmdline-mode.
|
||||||
<LeftMouse> (**) next page
|
<LeftMouse> (*) next page
|
||||||
|
|
||||||
Any other key causes the meaning of the keys to be displayed.
|
Any other key causes the meaning of the keys to be displayed.
|
||||||
|
|
||||||
(*) backwards scrolling is {not in Vi}. Only scrolls back to where messages
|
(*) Clicking the left mouse button only works:
|
||||||
started to scroll.
|
|
||||||
(**) Clicking the left mouse button only works:
|
|
||||||
- For the GUI: in the last line of the screen.
|
- For the GUI: in the last line of the screen.
|
||||||
- When 'r' is included in 'mouse' (but then selecting text won't work).
|
- When 'r' is included in 'mouse' (but then selecting text won't work).
|
||||||
|
|
||||||
|
@ -17,9 +17,6 @@ The basics are explained in the user manual: |usr_45.txt|.
|
|||||||
|
|
||||||
Also see |help-translated| for multi-language help.
|
Also see |help-translated| for multi-language help.
|
||||||
|
|
||||||
{Vi does not have any of these features}
|
|
||||||
{not available when compiled without the |+multi_lang| feature}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Messages *multilang-messages*
|
1. Messages *multilang-messages*
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ l or *l*
|
|||||||
TEXT column (if possible). Most other commands stay
|
TEXT column (if possible). Most other commands stay
|
||||||
in the same SCREEN column. <Home> works like "1|",
|
in the same SCREEN column. <Home> works like "1|",
|
||||||
which differs from "0" when the line starts with a
|
which differs from "0" when the line starts with a
|
||||||
<Tab>. {not in Vi}
|
<Tab>.
|
||||||
|
|
||||||
*^*
|
*^*
|
||||||
^ To the first non-blank character of the line.
|
^ To the first non-blank character of the line.
|
||||||
@ -199,7 +199,7 @@ $ or <End> To the end of the line. When a count is given also go
|
|||||||
|
|
||||||
*g_*
|
*g_*
|
||||||
g_ To the last non-blank character of the line and
|
g_ To the last non-blank character of the line and
|
||||||
[count - 1] lines downward |inclusive|. {not in Vi}
|
[count - 1] lines downward |inclusive|.
|
||||||
|
|
||||||
*g0* *g<Home>*
|
*g0* *g<Home>*
|
||||||
g0 or g<Home> When lines wrap ('wrap' on): To the first character of
|
g0 or g<Home> When lines wrap ('wrap' on): To the first character of
|
||||||
@ -208,7 +208,7 @@ g0 or g<Home> When lines wrap ('wrap' on): To the first character of
|
|||||||
When lines don't wrap ('wrap' off): To the leftmost
|
When lines don't wrap ('wrap' off): To the leftmost
|
||||||
character of the current line that is on the screen.
|
character of the current line that is on the screen.
|
||||||
Differs from "0" when the first character of the line
|
Differs from "0" when the first character of the line
|
||||||
is not on the screen. {not in Vi}
|
is not on the screen.
|
||||||
|
|
||||||
*g^*
|
*g^*
|
||||||
g^ When lines wrap ('wrap' on): To the first non-blank
|
g^ When lines wrap ('wrap' on): To the first non-blank
|
||||||
@ -217,12 +217,11 @@ g^ When lines wrap ('wrap' on): To the first non-blank
|
|||||||
When lines don't wrap ('wrap' off): To the leftmost
|
When lines don't wrap ('wrap' off): To the leftmost
|
||||||
non-blank character of the current line that is on the
|
non-blank character of the current line that is on the
|
||||||
screen. Differs from "^" when the first non-blank
|
screen. Differs from "^" when the first non-blank
|
||||||
character of the line is not on the screen. {not in
|
character of the line is not on the screen.
|
||||||
Vi}
|
|
||||||
|
|
||||||
*gm*
|
*gm*
|
||||||
gm Like "g0", but half a screenwidth to the right (or as
|
gm Like "g0", but half a screenwidth to the right (or as
|
||||||
much as possible). {not in Vi}
|
much as possible).
|
||||||
|
|
||||||
*g$* *g<End>*
|
*g$* *g<End>*
|
||||||
g$ or g<End> When lines wrap ('wrap' on): To the last character of
|
g$ or g<End> When lines wrap ('wrap' on): To the last character of
|
||||||
@ -237,7 +236,6 @@ g$ or g<End> When lines wrap ('wrap' on): To the last character of
|
|||||||
instead of going to the end of the line.
|
instead of going to the end of the line.
|
||||||
When 'virtualedit' is enabled moves to the end of the
|
When 'virtualedit' is enabled moves to the end of the
|
||||||
screen line.
|
screen line.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*bar*
|
*bar*
|
||||||
| To screen column [count] in the current line.
|
| To screen column [count] in the current line.
|
||||||
@ -293,12 +291,12 @@ CTRL-N [count] lines downward |linewise|.
|
|||||||
gk or *gk* *g<Up>*
|
gk or *gk* *g<Up>*
|
||||||
g<Up> [count] display lines upward. |exclusive| motion.
|
g<Up> [count] display lines upward. |exclusive| motion.
|
||||||
Differs from 'k' when lines wrap, and when used with
|
Differs from 'k' when lines wrap, and when used with
|
||||||
an operator, because it's not linewise. {not in Vi}
|
an operator, because it's not linewise.
|
||||||
|
|
||||||
gj or *gj* *g<Down>*
|
gj or *gj* *g<Down>*
|
||||||
g<Down> [count] display lines downward. |exclusive| motion.
|
g<Down> [count] display lines downward. |exclusive| motion.
|
||||||
Differs from 'j' when lines wrap, and when used with
|
Differs from 'j' when lines wrap, and when used with
|
||||||
an operator, because it's not linewise. {not in Vi}
|
an operator, because it's not linewise.
|
||||||
|
|
||||||
*-*
|
*-*
|
||||||
- <minus> [count] lines upward, on the first non-blank
|
- <minus> [count] lines upward, on the first non-blank
|
||||||
@ -321,7 +319,7 @@ G Goto line [count], default last line, on the first
|
|||||||
|
|
||||||
*<C-End>*
|
*<C-End>*
|
||||||
<C-End> Goto line [count], default last line, on the last
|
<C-End> Goto line [count], default last line, on the last
|
||||||
character |inclusive|. {not in Vi}
|
character |inclusive|.
|
||||||
|
|
||||||
<C-Home> or *gg* *<C-Home>*
|
<C-Home> or *gg* *<C-Home>*
|
||||||
gg Goto line [count], default first line, on the first
|
gg Goto line [count], default first line, on the first
|
||||||
@ -339,7 +337,7 @@ gg Goto line [count], default first line, on the first
|
|||||||
non-blank in the line |linewise|. To compute the new
|
non-blank in the line |linewise|. To compute the new
|
||||||
line number this formula is used:
|
line number this formula is used:
|
||||||
({count} * number-of-lines + 99) / 100
|
({count} * number-of-lines + 99) / 100
|
||||||
See also 'startofline' option. {not in Vi}
|
See also 'startofline' option.
|
||||||
|
|
||||||
:[range]go[to] [count] *:go* *:goto* *go*
|
:[range]go[to] [count] *:go* *:goto* *go*
|
||||||
[count]go Go to [count] byte in the buffer. Default [count] is
|
[count]go Go to [count] byte in the buffer. Default [count] is
|
||||||
@ -349,9 +347,6 @@ gg Goto line [count], default first line, on the first
|
|||||||
'fileformat' setting.
|
'fileformat' setting.
|
||||||
Also see the |line2byte()| function, and the 'o'
|
Also see the |line2byte()| function, and the 'o'
|
||||||
option in 'statusline'.
|
option in 'statusline'.
|
||||||
{not in Vi}
|
|
||||||
{not available when compiled without the
|
|
||||||
|+byte_offset| feature}
|
|
||||||
|
|
||||||
These commands move to the specified line. They stop when reaching the first
|
These commands move to the specified line. They stop when reaching the first
|
||||||
or the last line. The first two commands put the cursor in the same column
|
or the last line. The first two commands put the cursor in the same column
|
||||||
@ -511,9 +506,6 @@ including white space, the commands starting with "i" select an "inner" object
|
|||||||
without white space, or just the white space. Thus the "inner" commands
|
without white space, or just the white space. Thus the "inner" commands
|
||||||
always select less text than the "a" commands.
|
always select less text than the "a" commands.
|
||||||
|
|
||||||
These commands are {not in Vi}.
|
|
||||||
These commands are not available when the |+textobjects| feature has been
|
|
||||||
disabled at compile time.
|
|
||||||
Also see `gn` and `gN`, operating on the last search pattern.
|
Also see `gn` and `gN`, operating on the last search pattern.
|
||||||
|
|
||||||
*v_aw* *aw*
|
*v_aw* *aw*
|
||||||
@ -775,7 +767,7 @@ m< or m> Set the |'<| or |'>| mark. Useful to change what the
|
|||||||
|
|
||||||
*'A* *'0* *`A* *`0*
|
*'A* *'0* *`A* *`0*
|
||||||
'{A-Z0-9} `{A-Z0-9} To the mark {A-Z0-9} in the file where it was set (not
|
'{A-Z0-9} `{A-Z0-9} To the mark {A-Z0-9} in the file where it was set (not
|
||||||
a motion command when in another file). {not in Vi}
|
a motion command when in another file).
|
||||||
|
|
||||||
*g'* *g'a* *g`* *g`a*
|
*g'* *g'a* *g`* *g`a*
|
||||||
g'{mark} g`{mark}
|
g'{mark} g`{mark}
|
||||||
@ -785,18 +777,16 @@ g'{mark} g`{mark}
|
|||||||
< jumps to the last known position in a file. See
|
< jumps to the last known position in a file. See
|
||||||
$VIMRUNTIME/vimrc_example.vim.
|
$VIMRUNTIME/vimrc_example.vim.
|
||||||
Also see |:keepjumps|.
|
Also see |:keepjumps|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:marks*
|
*:marks*
|
||||||
:marks List all the current marks (not a motion command).
|
:marks List all the current marks (not a motion command).
|
||||||
The |'(|, |')|, |'{| and |'}| marks are not listed.
|
The |'(|, |')|, |'{| and |'}| marks are not listed.
|
||||||
The first column has number zero.
|
The first column has number zero.
|
||||||
{not in Vi}
|
|
||||||
*E283*
|
*E283*
|
||||||
:marks {arg} List the marks that are mentioned in {arg} (not a
|
:marks {arg} List the marks that are mentioned in {arg} (not a
|
||||||
motion command). For example: >
|
motion command). For example: >
|
||||||
:marks aB
|
:marks aB
|
||||||
< to list marks 'a' and 'B'. {not in Vi}
|
< to list marks 'a' and 'B'.
|
||||||
|
|
||||||
*:delm* *:delmarks*
|
*:delm* *:delmarks*
|
||||||
:delm[arks] {marks} Delete the specified marks. Marks that can be deleted
|
:delm[arks] {marks} Delete the specified marks. Marks that can be deleted
|
||||||
@ -810,11 +800,10 @@ g'{mark} g`{mark}
|
|||||||
:delmarks p-z deletes marks in the range p to z
|
:delmarks p-z deletes marks in the range p to z
|
||||||
:delmarks ^.[] deletes marks ^ . [ ]
|
:delmarks ^.[] deletes marks ^ . [ ]
|
||||||
:delmarks \" deletes mark "
|
:delmarks \" deletes mark "
|
||||||
< {not in Vi}
|
<
|
||||||
|
|
||||||
:delm[arks]! Delete all marks for the current buffer, but not marks
|
:delm[arks]! Delete all marks for the current buffer, but not marks
|
||||||
A-Z or 0-9.
|
A-Z or 0-9.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
A mark is not visible in any way. It is just a position in the file that is
|
A mark is not visible in any way. It is just a position in the file that is
|
||||||
remembered. Do not confuse marks with named registers, they are totally
|
remembered. Do not confuse marks with named registers, they are totally
|
||||||
@ -833,12 +822,12 @@ deletes the lines from the cursor position to mark 't'. Hint: Use mark 't' for
|
|||||||
Top, 'b' for Bottom, etc.. Lowercase marks are restored when using undo and
|
Top, 'b' for Bottom, etc.. Lowercase marks are restored when using undo and
|
||||||
redo.
|
redo.
|
||||||
|
|
||||||
Uppercase marks 'A to 'Z include the file name. {Vi: no uppercase marks} You
|
Uppercase marks 'A to 'Z include the file name.
|
||||||
can use them to jump from file to file. You can only use an uppercase mark
|
You can use them to jump from file to file. You can only use an uppercase
|
||||||
with an operator if the mark is in the current file. The line number of the
|
mark with an operator if the mark is in the current file. The line number of
|
||||||
mark remains correct, even if you insert/delete lines or edit another file for
|
the mark remains correct, even if you insert/delete lines or edit another file
|
||||||
a moment. When the 'viminfo' option is not empty, uppercase marks are kept in
|
for a moment. When the 'viminfo' option is not empty, uppercase marks are
|
||||||
the .viminfo file. See |viminfo-file-marks|.
|
kept in the .viminfo file. See |viminfo-file-marks|.
|
||||||
|
|
||||||
Numbered marks '0 to '9 are quite different. They can not be set directly.
|
Numbered marks '0 to '9 are quite different. They can not be set directly.
|
||||||
They are only present when using a viminfo file |viminfo-file|. Basically '0
|
They are only present when using a viminfo file |viminfo-file|. Basically '0
|
||||||
@ -849,11 +838,11 @@ Numbered mark should be stored. See |viminfo-file-marks|.
|
|||||||
|
|
||||||
*'[* *`[*
|
*'[* *`[*
|
||||||
'[ `[ To the first character of the previously changed
|
'[ `[ To the first character of the previously changed
|
||||||
or yanked text. {not in Vi}
|
or yanked text.
|
||||||
|
|
||||||
*']* *`]*
|
*']* *`]*
|
||||||
'] `] To the last character of the previously changed or
|
'] `] To the last character of the previously changed or
|
||||||
yanked text. {not in Vi}
|
yanked text.
|
||||||
|
|
||||||
After executing an operator the Cursor is put at the beginning of the text
|
After executing an operator the Cursor is put at the beginning of the text
|
||||||
that was operated upon. After a put command ("p" or "P") the cursor is
|
that was operated upon. After a put command ("p" or "P") the cursor is
|
||||||
@ -871,7 +860,7 @@ was made yet in the current file.
|
|||||||
'< `< To the first line or character of the last selected
|
'< `< To the first line or character of the last selected
|
||||||
Visual area in the current buffer. For block mode it
|
Visual area in the current buffer. For block mode it
|
||||||
may also be the last character in the first line (to
|
may also be the last character in the first line (to
|
||||||
be able to define the block). {not in Vi}.
|
be able to define the block).
|
||||||
|
|
||||||
*'>* *`>*
|
*'>* *`>*
|
||||||
'> `> To the last line or character of the last selected
|
'> `> To the last line or character of the last selected
|
||||||
@ -879,7 +868,7 @@ was made yet in the current file.
|
|||||||
may also be the first character of the last line (to
|
may also be the first character of the last line (to
|
||||||
be able to define the block). Note that 'selection'
|
be able to define the block). Note that 'selection'
|
||||||
applies, the position may be just after the Visual
|
applies, the position may be just after the Visual
|
||||||
area. {not in Vi}.
|
area.
|
||||||
|
|
||||||
*''* *``*
|
*''* *``*
|
||||||
'' `` To the position before the latest jump, or where the
|
'' `` To the position before the latest jump, or where the
|
||||||
@ -895,13 +884,12 @@ was made yet in the current file.
|
|||||||
Only one position is remembered per buffer, not one
|
Only one position is remembered per buffer, not one
|
||||||
for each window. As long as the buffer is visible in
|
for each window. As long as the buffer is visible in
|
||||||
a window the position won't be changed.
|
a window the position won't be changed.
|
||||||
{not in Vi}.
|
|
||||||
|
|
||||||
*'^* *`^*
|
*'^* *`^*
|
||||||
'^ `^ To the position where the cursor was the last time
|
'^ `^ To the position where the cursor was the last time
|
||||||
when Insert mode was stopped. This is used by the
|
when Insert mode was stopped. This is used by the
|
||||||
|gi| command. Not set when the |:keepjumps| command
|
|gi| command. Not set when the |:keepjumps| command
|
||||||
modifier was used. {not in Vi}
|
modifier was used.
|
||||||
|
|
||||||
*'.* *`.*
|
*'.* *`.*
|
||||||
'. `. To the position where the last change was made. The
|
'. `. To the position where the last change was made. The
|
||||||
@ -910,43 +898,40 @@ was made yet in the current file.
|
|||||||
then the position can be near the end of what the
|
then the position can be near the end of what the
|
||||||
command changed. For example when inserting a word,
|
command changed. For example when inserting a word,
|
||||||
the position will be on the last character.
|
the position will be on the last character.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*'(* *`(*
|
*'(* *`(*
|
||||||
'( `( To the start of the current sentence, like the |(|
|
'( `( To the start of the current sentence, like the |(|
|
||||||
command. {not in Vi}
|
command.
|
||||||
|
|
||||||
*')* *`)*
|
*')* *`)*
|
||||||
') `) To the end of the current sentence, like the |)|
|
') `) To the end of the current sentence, like the |)|
|
||||||
command. {not in Vi}
|
command.
|
||||||
|
|
||||||
*'{* *`{*
|
*'{* *`{*
|
||||||
'{ `{ To the start of the current paragraph, like the |{|
|
'{ `{ To the start of the current paragraph, like the |{|
|
||||||
command. {not in Vi}
|
command.
|
||||||
|
|
||||||
*'}* *`}*
|
*'}* *`}*
|
||||||
'} `} To the end of the current paragraph, like the |}|
|
'} `} To the end of the current paragraph, like the |}|
|
||||||
command. {not in Vi}
|
command.
|
||||||
|
|
||||||
These commands are not marks themselves, but jump to a mark:
|
These commands are not marks themselves, but jump to a mark:
|
||||||
|
|
||||||
*]'*
|
*]'*
|
||||||
]' [count] times to next line with a lowercase mark below
|
]' [count] times to next line with a lowercase mark below
|
||||||
the cursor, on the first non-blank character in the
|
the cursor, on the first non-blank character in the
|
||||||
line. {not in Vi}
|
line.
|
||||||
|
|
||||||
*]`*
|
*]`*
|
||||||
]` [count] times to lowercase mark after the cursor. {not
|
]` [count] times to lowercase mark after the cursor.
|
||||||
in Vi}
|
|
||||||
|
|
||||||
*['*
|
*['*
|
||||||
[' [count] times to previous line with a lowercase mark
|
[' [count] times to previous line with a lowercase mark
|
||||||
before the cursor, on the first non-blank character in
|
before the cursor, on the first non-blank character in
|
||||||
the line. {not in Vi}
|
the line.
|
||||||
|
|
||||||
*[`*
|
*[`*
|
||||||
[` [count] times to lowercase mark before the cursor.
|
[` [count] times to lowercase mark before the cursor.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
|
|
||||||
:loc[kmarks] {command} *:loc* *:lockmarks*
|
:loc[kmarks] {command} *:loc* *:lockmarks*
|
||||||
@ -1022,25 +1007,20 @@ unless the line containing that position was changed or deleted.
|
|||||||
|
|
||||||
*CTRL-O*
|
*CTRL-O*
|
||||||
CTRL-O Go to [count] Older cursor position in jump list
|
CTRL-O Go to [count] Older cursor position in jump list
|
||||||
(not a motion command). {not in Vi}
|
(not a motion command).
|
||||||
{not available without the |+jumplist| feature}
|
|
||||||
|
|
||||||
<Tab> or *CTRL-I* *<Tab>*
|
<Tab> or *CTRL-I* *<Tab>*
|
||||||
CTRL-I Go to [count] newer cursor position in jump list
|
CTRL-I Go to [count] newer cursor position in jump list
|
||||||
(not a motion command).
|
(not a motion command).
|
||||||
{not in Vi}
|
|
||||||
{not available without the |+jumplist| feature}
|
|
||||||
|
|
||||||
*:ju* *:jumps*
|
*:ju* *:jumps*
|
||||||
:ju[mps] Print the jump list (not a motion command). {not in
|
:ju[mps] Print the jump list (not a motion command).
|
||||||
Vi} {not available without the |+jumplist| feature}
|
|
||||||
|
|
||||||
*jumplist*
|
*jumplist*
|
||||||
Jumps are remembered in a jump list. With the CTRL-O and CTRL-I command you
|
Jumps are remembered in a jump list. With the CTRL-O and CTRL-I command you
|
||||||
can go to cursor positions before older jumps, and back again. Thus you can
|
can go to cursor positions before older jumps, and back again. Thus you can
|
||||||
move up and down the list. There is a separate jump list for each window.
|
move up and down the list. There is a separate jump list for each window.
|
||||||
The maximum number of entries is fixed at 100.
|
The maximum number of entries is fixed at 100.
|
||||||
{not available without the |+jumplist| feature}
|
|
||||||
|
|
||||||
For example, after three jump commands you have this jump list:
|
For example, after three jump commands you have this jump list:
|
||||||
|
|
||||||
@ -1117,15 +1097,11 @@ g; Go to [count] older position in change list.
|
|||||||
positions go to the oldest change.
|
positions go to the oldest change.
|
||||||
If there is no older change an error message is given.
|
If there is no older change an error message is given.
|
||||||
(not a motion command)
|
(not a motion command)
|
||||||
{not in Vi}
|
|
||||||
{not available without the |+jumplist| feature}
|
|
||||||
|
|
||||||
*g,* *E663*
|
*g,* *E663*
|
||||||
g, Go to [count] newer cursor position in change list.
|
g, Go to [count] newer cursor position in change list.
|
||||||
Just like |g;| but in the opposite direction.
|
Just like |g;| but in the opposite direction.
|
||||||
(not a motion command)
|
(not a motion command)
|
||||||
{not in Vi}
|
|
||||||
{not available without the |+jumplist| feature}
|
|
||||||
|
|
||||||
When using a count you jump as far back or forward as possible. Thus you can
|
When using a count you jump as far back or forward as possible. Thus you can
|
||||||
use "999g;" to go to the first change for which the position is still
|
use "999g;" to go to the first change for which the position is still
|
||||||
@ -1215,19 +1191,19 @@ remembered.
|
|||||||
|
|
||||||
*[(*
|
*[(*
|
||||||
[( go to [count] previous unmatched '('.
|
[( go to [count] previous unmatched '('.
|
||||||
|exclusive| motion. {not in Vi}
|
|exclusive| motion.
|
||||||
|
|
||||||
*[{*
|
*[{*
|
||||||
[{ go to [count] previous unmatched '{'.
|
[{ go to [count] previous unmatched '{'.
|
||||||
|exclusive| motion. {not in Vi}
|
|exclusive| motion.
|
||||||
|
|
||||||
*])*
|
*])*
|
||||||
]) go to [count] next unmatched ')'.
|
]) go to [count] next unmatched ')'.
|
||||||
|exclusive| motion. {not in Vi}
|
|exclusive| motion.
|
||||||
|
|
||||||
*]}*
|
*]}*
|
||||||
]} go to [count] next unmatched '}'.
|
]} go to [count] next unmatched '}'.
|
||||||
|exclusive| motion. {not in Vi}
|
|exclusive| motion.
|
||||||
|
|
||||||
The above four commands can be used to go to the start or end of the current
|
The above four commands can be used to go to the start or end of the current
|
||||||
code block. It is like doing "%" on the '(', ')', '{' or '}' at the other
|
code block. It is like doing "%" on the '(', ')', '{' or '}' at the other
|
||||||
@ -1240,25 +1216,25 @@ bring you back to the switch statement.
|
|||||||
similar structured language). When not before the
|
similar structured language). When not before the
|
||||||
start of a method, jump to the start or end of the
|
start of a method, jump to the start or end of the
|
||||||
class. When no '{' is found after the cursor, this is
|
class. When no '{' is found after the cursor, this is
|
||||||
an error. |exclusive| motion. {not in Vi}
|
an error. |exclusive| motion.
|
||||||
*]M*
|
*]M*
|
||||||
]M Go to [count] next end of a method (for Java or
|
]M Go to [count] next end of a method (for Java or
|
||||||
similar structured language). When not before the end
|
similar structured language). When not before the end
|
||||||
of a method, jump to the start or end of the class.
|
of a method, jump to the start or end of the class.
|
||||||
When no '}' is found after the cursor, this is an
|
When no '}' is found after the cursor, this is an
|
||||||
error. |exclusive| motion. {not in Vi}
|
error. |exclusive| motion.
|
||||||
*[m*
|
*[m*
|
||||||
[m Go to [count] previous start of a method (for Java or
|
[m Go to [count] previous start of a method (for Java or
|
||||||
similar structured language). When not after the
|
similar structured language). When not after the
|
||||||
start of a method, jump to the start or end of the
|
start of a method, jump to the start or end of the
|
||||||
class. When no '{' is found before the cursor this is
|
class. When no '{' is found before the cursor this is
|
||||||
an error. |exclusive| motion. {not in Vi}
|
an error. |exclusive| motion.
|
||||||
*[M*
|
*[M*
|
||||||
[M Go to [count] previous end of a method (for Java or
|
[M Go to [count] previous end of a method (for Java or
|
||||||
similar structured language). When not after the
|
similar structured language). When not after the
|
||||||
end of a method, jump to the start or end of the
|
end of a method, jump to the start or end of the
|
||||||
class. When no '}' is found before the cursor this is
|
class. When no '}' is found before the cursor this is
|
||||||
an error. |exclusive| motion. {not in Vi}
|
an error. |exclusive| motion.
|
||||||
|
|
||||||
The above two commands assume that the file contains a class with methods.
|
The above two commands assume that the file contains a class with methods.
|
||||||
The class definition is surrounded in '{' and '}'. Each method in the class
|
The class definition is surrounded in '{' and '}'. Each method in the class
|
||||||
@ -1281,11 +1257,11 @@ Using "3[m" will jump to the start of the class.
|
|||||||
|
|
||||||
*[#*
|
*[#*
|
||||||
[# go to [count] previous unmatched "#if" or "#else".
|
[# go to [count] previous unmatched "#if" or "#else".
|
||||||
|exclusive| motion. {not in Vi}
|
|exclusive| motion.
|
||||||
|
|
||||||
*]#*
|
*]#*
|
||||||
]# go to [count] next unmatched "#else" or "#endif".
|
]# go to [count] next unmatched "#else" or "#endif".
|
||||||
|exclusive| motion. {not in Vi}
|
|exclusive| motion.
|
||||||
|
|
||||||
These two commands work in C programs that contain #if/#else/#endif
|
These two commands work in C programs that contain #if/#else/#endif
|
||||||
constructs. It brings you to the start or end of the #if/#else/#endif where
|
constructs. It brings you to the start or end of the #if/#else/#endif where
|
||||||
@ -1293,11 +1269,11 @@ the current line is included. You can then use "%" to go to the matching line.
|
|||||||
|
|
||||||
*[star* *[/*
|
*[star* *[/*
|
||||||
[* or [/ go to [count] previous start of a C comment "/*".
|
[* or [/ go to [count] previous start of a C comment "/*".
|
||||||
|exclusive| motion. {not in Vi}
|
|exclusive| motion.
|
||||||
|
|
||||||
*]star* *]/*
|
*]star* *]/*
|
||||||
]* or ]/ go to [count] next end of a C comment "*/".
|
]* or ]/ go to [count] next end of a C comment "*/".
|
||||||
|exclusive| motion. {not in Vi}
|
|exclusive| motion.
|
||||||
|
|
||||||
|
|
||||||
*H*
|
*H*
|
||||||
@ -1319,6 +1295,6 @@ L To line [count] from bottom of window (default: Last
|
|||||||
<LeftMouse> Moves to the position on the screen where the mouse
|
<LeftMouse> Moves to the position on the screen where the mouse
|
||||||
click is |exclusive|. See also |<LeftMouse>|. If the
|
click is |exclusive|. See also |<LeftMouse>|. If the
|
||||||
position is in a status line, that window is made the
|
position is in a status line, that window is made the
|
||||||
active window and the cursor is not moved. {not in Vi}
|
active window and the cursor is not moved.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -59,11 +59,11 @@ explanations are in chapter 27 |usr_27.txt|.
|
|||||||
|
|
||||||
*n*
|
*n*
|
||||||
n Repeat the latest "/" or "?" [count] times.
|
n Repeat the latest "/" or "?" [count] times.
|
||||||
|last-pattern| {Vi: no count}
|
|last-pattern|
|
||||||
|
|
||||||
*N*
|
*N*
|
||||||
N Repeat the latest "/" or "?" [count] times in
|
N Repeat the latest "/" or "?" [count] times in
|
||||||
opposite direction. |last-pattern| {Vi: no count}
|
opposite direction. |last-pattern|
|
||||||
|
|
||||||
*star* *E348* *E349*
|
*star* *E348* *E349*
|
||||||
* Search forward for the [count]'th occurrence of the
|
* Search forward for the [count]'th occurrence of the
|
||||||
@ -76,24 +76,24 @@ N Repeat the latest "/" or "?" [count] times in
|
|||||||
4. the first non-blank word after the cursor,
|
4. the first non-blank word after the cursor,
|
||||||
in the current line
|
in the current line
|
||||||
Only whole keywords are searched for, like with the
|
Only whole keywords are searched for, like with the
|
||||||
command "/\<keyword\>". |exclusive| {not in Vi}
|
command "/\<keyword\>". |exclusive|
|
||||||
'ignorecase' is used, 'smartcase' is not.
|
'ignorecase' is used, 'smartcase' is not.
|
||||||
|
|
||||||
*#*
|
*#*
|
||||||
# Same as "*", but search backward. The pound sign
|
# Same as "*", but search backward. The pound sign
|
||||||
(character 163) also works. If the "#" key works as
|
(character 163) also works. If the "#" key works as
|
||||||
backspace, try using "stty erase <BS>" before starting
|
backspace, try using "stty erase <BS>" before starting
|
||||||
Vim (<BS> is CTRL-H or a real backspace). {not in Vi}
|
Vim (<BS> is CTRL-H or a real backspace).
|
||||||
|
|
||||||
*gstar*
|
*gstar*
|
||||||
g* Like "*", but don't put "\<" and "\>" around the word.
|
g* Like "*", but don't put "\<" and "\>" around the word.
|
||||||
This makes the search also find matches that are not a
|
This makes the search also find matches that are not a
|
||||||
whole word. {not in Vi}
|
whole word.
|
||||||
|
|
||||||
*g#*
|
*g#*
|
||||||
g# Like "#", but don't put "\<" and "\>" around the word.
|
g# Like "#", but don't put "\<" and "\>" around the word.
|
||||||
This makes the search also find matches that are not a
|
This makes the search also find matches that are not a
|
||||||
whole word. {not in Vi}
|
whole word.
|
||||||
|
|
||||||
*gd*
|
*gd*
|
||||||
gd Goto local Declaration. When the cursor is on a local
|
gd Goto local Declaration. When the cursor is on a local
|
||||||
@ -111,22 +111,21 @@ gd Goto local Declaration. When the cursor is on a local
|
|||||||
searched use the commands listed in |include-search|.
|
searched use the commands listed in |include-search|.
|
||||||
After this command |n| searches forward for the next
|
After this command |n| searches forward for the next
|
||||||
match (not backward).
|
match (not backward).
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*gD*
|
*gD*
|
||||||
gD Goto global Declaration. When the cursor is on a
|
gD Goto global Declaration. When the cursor is on a
|
||||||
global variable that is defined in the file, this
|
global variable that is defined in the file, this
|
||||||
command will jump to its declaration. This works just
|
command will jump to its declaration. This works just
|
||||||
like "gd", except that the search for the keyword
|
like "gd", except that the search for the keyword
|
||||||
always starts in line 1. {not in Vi}
|
always starts in line 1.
|
||||||
|
|
||||||
*1gd*
|
*1gd*
|
||||||
1gd Like "gd", but ignore matches inside a {} block that
|
1gd Like "gd", but ignore matches inside a {} block that
|
||||||
ends before the cursor position. {not in Vi}
|
ends before the cursor position.
|
||||||
|
|
||||||
*1gD*
|
*1gD*
|
||||||
1gD Like "gD", but ignore matches inside a {} block that
|
1gD Like "gD", but ignore matches inside a {} block that
|
||||||
ends before the cursor position. {not in Vi}
|
ends before the cursor position.
|
||||||
|
|
||||||
*CTRL-C*
|
*CTRL-C*
|
||||||
CTRL-C Interrupt current (search) command. Use CTRL-Break on
|
CTRL-C Interrupt current (search) command. Use CTRL-Break on
|
||||||
@ -158,7 +157,7 @@ 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
|
||||||
additional offset may be given. There are two types of offsets: line offsets
|
additional offset may be given. There are two types of offsets: line offsets
|
||||||
and character offsets. {the character offsets are not in Vi}
|
and character offsets.
|
||||||
|
|
||||||
The offset gives the cursor position relative to the found match:
|
The offset gives the cursor position relative to the found match:
|
||||||
[num] [num] lines downwards, in column 1
|
[num] [num] lines downwards, in column 1
|
||||||
@ -361,7 +360,7 @@ into a problem or want to specifically select one engine or the other, you can
|
|||||||
prepend one of the following to the pattern:
|
prepend one of the following to the pattern:
|
||||||
|
|
||||||
\%#=0 Force automatic selection. Only has an effect when
|
\%#=0 Force automatic selection. Only has an effect when
|
||||||
'regexpengine' has been set to a non-zero value.
|
'regexpengine' has been set to a non-zero value.
|
||||||
\%#=1 Force using the old engine.
|
\%#=1 Force using the old engine.
|
||||||
\%#=2 Force using the NFA engine.
|
\%#=2 Force using the NFA engine.
|
||||||
|
|
||||||
@ -425,30 +424,28 @@ More explanation and examples below, follow the links. *E64* *E871*
|
|||||||
multi ~
|
multi ~
|
||||||
'magic' 'nomagic' matches of the preceding atom ~
|
'magic' 'nomagic' matches of the preceding atom ~
|
||||||
|/star| * \* 0 or more as many as possible
|
|/star| * \* 0 or more as many as possible
|
||||||
|/\+| \+ \+ 1 or more as many as possible (*)
|
|/\+| \+ \+ 1 or more as many as possible
|
||||||
|/\=| \= \= 0 or 1 as many as possible (*)
|
|/\=| \= \= 0 or 1 as many as possible
|
||||||
|/\?| \? \? 0 or 1 as many as possible (*)
|
|/\?| \? \? 0 or 1 as many as possible
|
||||||
|
|
||||||
|/\{| \{n,m} \{n,m} n to m as many as possible (*)
|
|/\{| \{n,m} \{n,m} n to m as many as possible
|
||||||
\{n} \{n} n exactly (*)
|
\{n} \{n} n exactly
|
||||||
\{n,} \{n,} at least n as many as possible (*)
|
\{n,} \{n,} at least n as many as possible
|
||||||
\{,m} \{,m} 0 to m as many as possible (*)
|
\{,m} \{,m} 0 to m as many as possible
|
||||||
\{} \{} 0 or more as many as possible (same as *) (*)
|
\{} \{} 0 or more as many as possible (same as *)
|
||||||
|
|
||||||
|/\{-| \{-n,m} \{-n,m} n to m as few as possible (*)
|
|/\{-| \{-n,m} \{-n,m} n to m as few as possible
|
||||||
\{-n} \{-n} n exactly (*)
|
\{-n} \{-n} n exactly
|
||||||
\{-n,} \{-n,} at least n as few as possible (*)
|
\{-n,} \{-n,} at least n as few as possible
|
||||||
\{-,m} \{-,m} 0 to m as few as possible (*)
|
\{-,m} \{-,m} 0 to m as few as possible
|
||||||
\{-} \{-} 0 or more as few as possible (*)
|
\{-} \{-} 0 or more as few as possible
|
||||||
|
|
||||||
*E59*
|
*E59*
|
||||||
|/\@>| \@> \@> 1, like matching a whole pattern (*)
|
|/\@>| \@> \@> 1, like matching a whole pattern
|
||||||
|/\@=| \@= \@= nothing, requires a match |/zero-width| (*)
|
|/\@=| \@= \@= nothing, requires a match |/zero-width|
|
||||||
|/\@!| \@! \@! nothing, requires NO match |/zero-width| (*)
|
|/\@!| \@! \@! nothing, requires NO match |/zero-width|
|
||||||
|/\@<=| \@<= \@<= nothing, requires a match behind |/zero-width| (*)
|
|/\@<=| \@<= \@<= nothing, requires a match behind |/zero-width|
|
||||||
|/\@<!| \@<! \@<! nothing, requires NO match behind |/zero-width| (*)
|
|/\@<!| \@<! \@<! nothing, requires NO match behind |/zero-width|
|
||||||
|
|
||||||
(*) {not in Vi}
|
|
||||||
|
|
||||||
|
|
||||||
Overview of ordinary atoms. */ordinary-atom*
|
Overview of ordinary atoms. */ordinary-atom*
|
||||||
@ -477,7 +474,7 @@ More explanation and examples below, follow the links.
|
|||||||
|/\%c| \%23c \%23c in column 23 |/zero-width|
|
|/\%c| \%23c \%23c in column 23 |/zero-width|
|
||||||
|/\%v| \%23v \%23v in virtual column 23 |/zero-width|
|
|/\%v| \%23v \%23v in virtual column 23 |/zero-width|
|
||||||
|
|
||||||
Character classes {not in Vi}: */character-classes*
|
Character classes: */character-classes*
|
||||||
|/\i| \i \i identifier character (see 'isident' option)
|
|/\i| \i \i identifier character (see 'isident' option)
|
||||||
|/\I| \I \I like "\i", but excluding digits
|
|/\I| \I \I like "\i", but excluding digits
|
||||||
|/\k| \k \k keyword character (see 'iskeyword' option)
|
|/\k| \k \k keyword character (see 'iskeyword' option)
|
||||||
@ -514,7 +511,7 @@ Character classes {not in Vi}: */character-classes*
|
|||||||
|/\b| \b \b <BS>
|
|/\b| \b \b <BS>
|
||||||
|/\n| \n \n end-of-line
|
|/\n| \n \n end-of-line
|
||||||
|/~| ~ \~ last given substitute string
|
|/~| ~ \~ last given substitute string
|
||||||
|/\1| \1 \1 same string as matched by first \(\) {not in Vi}
|
|/\1| \1 \1 same string as matched by first \(\)
|
||||||
|/\2| \2 \2 Like "\1", but uses second \(\)
|
|/\2| \2 \2 Like "\1", but uses second \(\)
|
||||||
...
|
...
|
||||||
|/\9| \9 \9 Like "\1", but uses ninth \(\)
|
|/\9| \9 \9 Like "\1", but uses ninth \(\)
|
||||||
@ -591,20 +588,19 @@ overview.
|
|||||||
character at a time.
|
character at a time.
|
||||||
|
|
||||||
*/\+* *E57*
|
*/\+* *E57*
|
||||||
\+ Matches 1 or more of the preceding atom, as many as possible. {not in
|
\+ Matches 1 or more of the preceding atom, as many as possible.
|
||||||
Vi}
|
|
||||||
Example matches ~
|
Example matches ~
|
||||||
^.\+$ any non-empty line
|
^.\+$ any non-empty line
|
||||||
\s\+ white space of at least one character
|
\s\+ white space of at least one character
|
||||||
|
|
||||||
*/\=*
|
*/\=*
|
||||||
\= Matches 0 or 1 of the preceding atom, as many as possible. {not in Vi}
|
\= Matches 0 or 1 of the preceding atom, as many as possible.
|
||||||
Example matches ~
|
Example matches ~
|
||||||
foo\= "fo" and "foo"
|
foo\= "fo" and "foo"
|
||||||
|
|
||||||
*/\?*
|
*/\?*
|
||||||
\? Just like \=. Cannot be used when searching backwards with the "?"
|
\? Just like \=. Cannot be used when searching backwards with the "?"
|
||||||
command. {not in Vi}
|
command.
|
||||||
|
|
||||||
*/\{* *E58* *E60* *E554* *E870*
|
*/\{* *E58* *E60* *E554* *E870*
|
||||||
\{n,m} Matches n to m of the preceding atom, as many as possible
|
\{n,m} Matches n to m of the preceding atom, as many as possible
|
||||||
@ -618,7 +614,6 @@ overview.
|
|||||||
\{-n,} matches at least n of the preceding atom, as few as possible
|
\{-n,} matches at least n of the preceding atom, as few as possible
|
||||||
\{-,m} matches 0 to m of the preceding atom, as few as possible
|
\{-,m} matches 0 to m of the preceding atom, as few as possible
|
||||||
\{-} matches 0 or more of the preceding atom, as few as possible
|
\{-} matches 0 or more of the preceding atom, as few as possible
|
||||||
{Vi does not have any of these}
|
|
||||||
|
|
||||||
n and m are positive decimal numbers or zero
|
n and m are positive decimal numbers or zero
|
||||||
*non-greedy*
|
*non-greedy*
|
||||||
@ -641,7 +636,7 @@ overview.
|
|||||||
The } may optionally be preceded with a backslash: \{n,m\}.
|
The } may optionally be preceded with a backslash: \{n,m\}.
|
||||||
|
|
||||||
*/\@=*
|
*/\@=*
|
||||||
\@= Matches the preceding atom with zero width. {not in Vi}
|
\@= Matches the preceding atom with zero width.
|
||||||
Like "(?=pattern)" in Perl.
|
Like "(?=pattern)" in Perl.
|
||||||
Example matches ~
|
Example matches ~
|
||||||
foo\(bar\)\@= "foo" in "foobar"
|
foo\(bar\)\@= "foo" in "foobar"
|
||||||
@ -661,7 +656,7 @@ overview.
|
|||||||
|
|
||||||
*/\@!*
|
*/\@!*
|
||||||
\@! Matches with zero width if the preceding atom does NOT match at the
|
\@! Matches with zero width if the preceding atom does NOT match at the
|
||||||
current position. |/zero-width| {not in Vi}
|
current position. |/zero-width|
|
||||||
Like "(?!pattern)" in Perl.
|
Like "(?!pattern)" in Perl.
|
||||||
Example matches ~
|
Example matches ~
|
||||||
foo\(bar\)\@! any "foo" not followed by "bar"
|
foo\(bar\)\@! any "foo" not followed by "bar"
|
||||||
@ -691,7 +686,7 @@ overview.
|
|||||||
|
|
||||||
*/\@<=*
|
*/\@<=*
|
||||||
\@<= Matches with zero width if the preceding atom matches just before what
|
\@<= Matches with zero width if the preceding atom matches just before what
|
||||||
follows. |/zero-width| {not in Vi}
|
follows. |/zero-width|
|
||||||
Like "(?<=pattern)" in Perl, but Vim allows non-fixed-width patterns.
|
Like "(?<=pattern)" in Perl, but Vim allows non-fixed-width patterns.
|
||||||
Example matches ~
|
Example matches ~
|
||||||
\(an\_s\+\)\@<=file "file" after "an" and white space or an
|
\(an\_s\+\)\@<=file "file" after "an" and white space or an
|
||||||
@ -735,7 +730,7 @@ overview.
|
|||||||
\@<! Matches with zero width if the preceding atom does NOT match just
|
\@<! Matches with zero width if the preceding atom does NOT match just
|
||||||
before what follows. Thus this matches if there is no position in the
|
before what follows. Thus this matches if there is no position in the
|
||||||
current or previous line where the atom matches such that it ends just
|
current or previous line where the atom matches such that it ends just
|
||||||
before what follows. |/zero-width| {not in Vi}
|
before what follows. |/zero-width|
|
||||||
Like "(?<!pattern)" in Perl, but Vim allows non-fixed-width patterns.
|
Like "(?<!pattern)" in Perl, but Vim allows non-fixed-width patterns.
|
||||||
The match with the preceding atom is made to end just before the match
|
The match with the preceding atom is made to end just before the match
|
||||||
with what follows, thus an atom that ends in ".*" will work.
|
with what follows, thus an atom that ends in ".*" will work.
|
||||||
@ -751,7 +746,7 @@ overview.
|
|||||||
slow.
|
slow.
|
||||||
|
|
||||||
*/\@>*
|
*/\@>*
|
||||||
\@> Matches the preceding atom like matching a whole pattern. {not in Vi}
|
\@> Matches the preceding atom like matching a whole pattern.
|
||||||
Like "(?>pattern)" in Perl.
|
Like "(?>pattern)" in Perl.
|
||||||
Example matches ~
|
Example matches ~
|
||||||
\(a*\)\@>a nothing (the "a*" takes all the "a"'s, there can't be
|
\(a*\)\@>a nothing (the "a*" takes all the "a"'s, there can't be
|
||||||
@ -830,7 +825,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
/\(.\{-}\zsFab\)\{3}
|
/\(.\{-}\zsFab\)\{3}
|
||||||
< Finds the third occurrence of "Fab".
|
< Finds the third occurrence of "Fab".
|
||||||
This cannot be followed by a multi. *E888*
|
This cannot be followed by a multi. *E888*
|
||||||
{not in Vi} {not available when compiled without the |+syntax| feature}
|
|
||||||
*/\ze*
|
*/\ze*
|
||||||
\ze Matches at any position, and sets the end of the match there: The
|
\ze Matches at any position, and sets the end of the match there: The
|
||||||
previous char is the last char of the whole match. |/zero-width|
|
previous char is the last char of the whole match. |/zero-width|
|
||||||
@ -839,17 +834,16 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
Example: "end\ze\(if\|for\)" matches the "end" in "endif" and
|
Example: "end\ze\(if\|for\)" matches the "end" in "endif" and
|
||||||
"endfor".
|
"endfor".
|
||||||
This cannot be followed by a multi. |E888|
|
This cannot be followed by a multi. |E888|
|
||||||
{not in Vi} {not available when compiled without the |+syntax| feature}
|
|
||||||
|
|
||||||
*/\%^* *start-of-file*
|
*/\%^* *start-of-file*
|
||||||
\%^ Matches start of the file. When matching with a string, matches the
|
\%^ Matches start of the file. When matching with a string, matches the
|
||||||
start of the string. {not in Vi}
|
start of the string.
|
||||||
For example, to find the first "VIM" in a file: >
|
For example, to find the first "VIM" in a file: >
|
||||||
/\%^\_.\{-}\zsVIM
|
/\%^\_.\{-}\zsVIM
|
||||||
<
|
<
|
||||||
*/\%$* *end-of-file*
|
*/\%$* *end-of-file*
|
||||||
\%$ Matches end of the file. When matching with a string, matches the
|
\%$ Matches end of the file. When matching with a string, matches the
|
||||||
end of the string. {not in Vi}
|
end of the string.
|
||||||
Note that this does NOT find the last "VIM" in a file: >
|
Note that this does NOT find the last "VIM" in a file: >
|
||||||
/VIM\_.\{-}\%$
|
/VIM\_.\{-}\%$
|
||||||
< It will find the next VIM, because the part after it will always
|
< It will find the next VIM, because the part after it will always
|
||||||
@ -870,7 +864,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
|
|
||||||
*/\%#* *cursor-position*
|
*/\%#* *cursor-position*
|
||||||
\%# Matches with the cursor position. Only works when matching in a
|
\%# Matches with the cursor position. Only works when matching in a
|
||||||
buffer displayed in a window. {not in Vi}
|
buffer displayed in a window.
|
||||||
WARNING: When the cursor is moved after the pattern was used, the
|
WARNING: When the cursor is moved after the pattern was used, the
|
||||||
result becomes invalid. Vim doesn't automatically update the matches.
|
result becomes invalid. Vim doesn't automatically update the matches.
|
||||||
This is especially relevant for syntax highlighting and 'hlsearch'.
|
This is especially relevant for syntax highlighting and 'hlsearch'.
|
||||||
@ -891,7 +885,6 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
< Note that two dots are required to include mark 'e in the match. That
|
< Note that two dots are required to include mark 'e in the match. That
|
||||||
is because "\%<'e" matches at the character before the 'e mark, and
|
is because "\%<'e" matches at the character before the 'e mark, and
|
||||||
since it's a |/zero-width| match it doesn't include that character.
|
since it's a |/zero-width| match it doesn't include that character.
|
||||||
{not in Vi}
|
|
||||||
WARNING: When the mark is moved after the pattern was used, the result
|
WARNING: When the mark is moved after the pattern was used, the result
|
||||||
becomes invalid. Vim doesn't automatically update the matches.
|
becomes invalid. Vim doesn't automatically update the matches.
|
||||||
Similar to moving the cursor for "\%#" |/\%#|.
|
Similar to moving the cursor for "\%#" |/\%#|.
|
||||||
@ -901,7 +894,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
\%<23l Matches above a specific line (lower line number).
|
\%<23l Matches above a specific line (lower line number).
|
||||||
\%>23l Matches below a specific line (higher line number).
|
\%>23l Matches below a specific line (higher line number).
|
||||||
These three can be used to match specific lines in a buffer. The "23"
|
These three can be used to match specific lines in a buffer. The "23"
|
||||||
can be any line number. The first line is 1. {not in Vi}
|
can be any line number. The first line is 1.
|
||||||
WARNING: When inserting or deleting lines Vim does not automatically
|
WARNING: When inserting or deleting lines Vim does not automatically
|
||||||
update the matches. This means Syntax highlighting quickly becomes
|
update the matches. This means Syntax highlighting quickly becomes
|
||||||
wrong.
|
wrong.
|
||||||
@ -917,7 +910,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
These three can be used to match specific columns in a buffer or
|
These three can be used to match specific columns in a buffer or
|
||||||
string. The "23" can be any column number. The first column is 1.
|
string. The "23" can be any column number. The first column is 1.
|
||||||
Actually, the column is the byte number (thus it's not exactly right
|
Actually, the column is the byte number (thus it's not exactly right
|
||||||
for multi-byte characters). {not in Vi}
|
for multi-byte characters).
|
||||||
WARNING: When inserting or deleting text Vim does not automatically
|
WARNING: When inserting or deleting text Vim does not automatically
|
||||||
update the matches. This means Syntax highlighting quickly becomes
|
update the matches. This means Syntax highlighting quickly becomes
|
||||||
wrong.
|
wrong.
|
||||||
@ -939,7 +932,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
The "23" can be any column number. The first column is 1.
|
The "23" can be any column number. The first column is 1.
|
||||||
Note that some virtual column positions will never match, because they
|
Note that some virtual column positions will never match, because they
|
||||||
are halfway through a tab or other character that occupies more than
|
are halfway through a tab or other character that occupies more than
|
||||||
one screen character. {not in Vi}
|
one screen character.
|
||||||
WARNING: When inserting or deleting text Vim does not automatically
|
WARNING: When inserting or deleting text Vim does not automatically
|
||||||
update highlighted matches. This means Syntax highlighting quickly
|
update highlighted matches. This means Syntax highlighting quickly
|
||||||
becomes wrong.
|
becomes wrong.
|
||||||
@ -958,7 +951,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
/.*\%<18v.
|
/.*\%<18v.
|
||||||
<
|
<
|
||||||
|
|
||||||
Character classes: {not in Vi}
|
Character classes:
|
||||||
\i identifier character (see 'isident' option) */\i*
|
\i identifier character (see 'isident' option) */\i*
|
||||||
\I like "\i", but excluding digits */\I*
|
\I like "\i", but excluding digits */\I*
|
||||||
\k keyword character (see 'iskeyword' option) */\k*
|
\k keyword character (see 'iskeyword' option) */\k*
|
||||||
@ -1018,7 +1011,7 @@ match ASCII characters, as indicated by the range.
|
|||||||
*E51* *E54* *E55* *E872* *E873*
|
*E51* *E54* *E55* *E872* *E873*
|
||||||
|
|
||||||
\1 Matches the same string that was matched by */\1* *E65*
|
\1 Matches the same string that was matched by */\1* *E65*
|
||||||
the first sub-expression in \( and \). {not in Vi}
|
the first sub-expression in \( and \).
|
||||||
Example: "\([a-z]\).\1" matches "ata", "ehe", "tot", etc.
|
Example: "\([a-z]\).\1" matches "ata", "ehe", "tot", etc.
|
||||||
\2 Like "\1", but uses second sub-expression, */\2*
|
\2 Like "\1", but uses second sub-expression, */\2*
|
||||||
... */\3*
|
... */\3*
|
||||||
@ -1030,7 +1023,6 @@ match ASCII characters, as indicated by the range.
|
|||||||
\%(\) A pattern enclosed by escaped parentheses. */\%(\)* */\%(* *E53*
|
\%(\) A pattern enclosed by escaped parentheses. */\%(\)* */\%(* *E53*
|
||||||
Just like \(\), but without counting it as a sub-expression. This
|
Just like \(\), but without counting it as a sub-expression. This
|
||||||
allows using more groups and it's a little bit faster.
|
allows using more groups and it's a little bit faster.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
x A single character, with no special meaning, matches itself
|
x A single character, with no special meaning, matches itself
|
||||||
|
|
||||||
@ -1108,7 +1100,7 @@ x A single character, with no special meaning, matches itself
|
|||||||
backslash before it: "[xyz\]]", "[\^xyz]", "[xy\-z]" and "[xyz\\]".
|
backslash before it: "[xyz\]]", "[\^xyz]", "[xy\-z]" and "[xyz\\]".
|
||||||
(Note: POSIX does not support the use of a backslash this way). For
|
(Note: POSIX does not support the use of a backslash this way). For
|
||||||
']' you can also make it the first character (following a possible
|
']' you can also make it the first character (following a possible
|
||||||
"^"): "[]xyz]" or "[^]xyz]" {not in Vi}.
|
"^"): "[]xyz]" or "[^]xyz]".
|
||||||
For '-' you can also make it the first or last character: "[-xyz]",
|
For '-' you can also make it the first or last character: "[-xyz]",
|
||||||
"[^-xyz]" or "[xyz-]". For '\' you can also let it be followed by
|
"[^-xyz]" or "[xyz-]". For '\' you can also let it be followed by
|
||||||
any character that's not in "^]-\bdertnoUux". "[\xyz]" matches '\',
|
any character that's not in "^]-\bdertnoUux". "[\xyz]" matches '\',
|
||||||
@ -1117,7 +1109,7 @@ x A single character, with no special meaning, matches itself
|
|||||||
- Omitting the trailing ] is not considered an error. "[]" works like
|
- Omitting the trailing ] is not considered an error. "[]" works like
|
||||||
"[]]", it matches the ']' character.
|
"[]]", it matches the ']' character.
|
||||||
- The following translations are accepted when the 'l' flag is not
|
- The following translations are accepted when the 'l' flag is not
|
||||||
included in 'cpoptions' {not in Vi}:
|
included in 'cpoptions':
|
||||||
\e <Esc>
|
\e <Esc>
|
||||||
\t <Tab>
|
\t <Tab>
|
||||||
\r <CR> (NOT end-of-line!)
|
\r <CR> (NOT end-of-line!)
|
||||||
@ -1197,7 +1189,7 @@ files. To match a <Nul> with a search pattern you can just enter CTRL-@ or
|
|||||||
"CTRL-V 000". This is probably just what you expect. Internally the
|
"CTRL-V 000". This is probably just what you expect. Internally the
|
||||||
character is replaced with a <NL> in the search pattern. What is unusual is
|
character is replaced with a <NL> in the search pattern. What is unusual is
|
||||||
that typing CTRL-V CTRL-J also inserts a <NL>, thus also searches for a <Nul>
|
that typing CTRL-V CTRL-J also inserts a <NL>, thus also searches for a <Nul>
|
||||||
in the file. {Vi cannot handle <Nul> characters in the file at all}
|
in the file.
|
||||||
|
|
||||||
*CR-used-for-NL*
|
*CR-used-for-NL*
|
||||||
When 'fileformat' is "mac", <NL> characters in the file are stored as <CR>
|
When 'fileformat' is "mac", <NL> characters in the file are stored as <CR>
|
||||||
|
@ -13,8 +13,6 @@ This plugin is only available if 'compatible' is not set.
|
|||||||
You can avoid loading this plugin by setting the "loaded_gzip" variable: >
|
You can avoid loading this plugin by setting the "loaded_gzip" variable: >
|
||||||
:let loaded_gzip = 1
|
:let loaded_gzip = 1
|
||||||
|
|
||||||
{Vi does not have any of this}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Autocommands *gzip-autocmd*
|
1. Autocommands *gzip-autocmd*
|
||||||
|
|
||||||
|
@ -108,8 +108,6 @@ Copyright: Copyright (C) 1999-2014 Charles E Campbell *netrw-copyright*
|
|||||||
13. Todo..................................................|netrw-todo|
|
13. Todo..................................................|netrw-todo|
|
||||||
14. Credits...............................................|netrw-credits|
|
14. Credits...............................................|netrw-credits|
|
||||||
|
|
||||||
{Vi does not have any of this}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Starting With Netrw *netrw-start* {{{1
|
2. Starting With Netrw *netrw-start* {{{1
|
||||||
|
|
||||||
|
@ -15,9 +15,6 @@ Printing *printing*
|
|||||||
7. PostScript Utilities |postscript-print-util|
|
7. PostScript Utilities |postscript-print-util|
|
||||||
8. Formfeed Characters |printing-formfeed|
|
8. Formfeed Characters |printing-formfeed|
|
||||||
|
|
||||||
{Vi has None of this}
|
|
||||||
{only available when compiled with the |+printer| feature}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Introduction *print-intro*
|
1. Introduction *print-intro*
|
||||||
|
|
||||||
|
@ -16,11 +16,6 @@ This subject is introduced in section |30.1| of the user manual.
|
|||||||
8. The directory stack |quickfix-directory-stack|
|
8. The directory stack |quickfix-directory-stack|
|
||||||
9. Specific error file formats |errorformats|
|
9. Specific error file formats |errorformats|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
The quickfix commands are not available when the |+quickfix| feature was
|
|
||||||
disabled at compile time.
|
|
||||||
|
|
||||||
=============================================================================
|
=============================================================================
|
||||||
1. Using QuickFix commands *quickfix* *Quickfix* *E42*
|
1. Using QuickFix commands *quickfix* *Quickfix* *E42*
|
||||||
|
|
||||||
|
@ -115,7 +115,6 @@ command:
|
|||||||
flag is present in 'cpoptions' the swap file will not
|
flag is present in 'cpoptions' the swap file will not
|
||||||
be deleted for this buffer when Vim exits and the
|
be deleted for this buffer when Vim exits and the
|
||||||
buffer is still loaded |cpo-&|.
|
buffer is still loaded |cpo-&|.
|
||||||
{Vi: might also exit}
|
|
||||||
|
|
||||||
A Vim swap file can be recognized by the first six characters: "b0VIM ".
|
A Vim swap file can be recognized by the first six characters: "b0VIM ".
|
||||||
After that comes the version number, e.g., "3.0".
|
After that comes the version number, e.g., "3.0".
|
||||||
@ -180,7 +179,5 @@ recovered file. Or use |:DiffOrig|.
|
|||||||
Once you are sure the recovery is ok delete the swap file. Otherwise, you
|
Once you are sure the recovery is ok delete the swap file. Otherwise, you
|
||||||
will continue to get warning messages that the ".swp" file already exists.
|
will continue to get warning messages that the ".swp" file already exists.
|
||||||
|
|
||||||
{Vi: recovers in another way and sends mail if there is something to recover}
|
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
|
@ -10,8 +10,6 @@ Vim client-server communication *client-server*
|
|||||||
2. X11 specific items |x11-clientserver|
|
2. X11 specific items |x11-clientserver|
|
||||||
3. MS-Windows specific items |w32-clientserver|
|
3. MS-Windows specific items |w32-clientserver|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Common functionality *clientserver*
|
1. Common functionality *clientserver*
|
||||||
|
|
||||||
|
@ -106,11 +106,12 @@ To abort this type CTRL-C twice.
|
|||||||
q{0-9a-zA-Z"} Record typed characters into register {0-9a-zA-Z"}
|
q{0-9a-zA-Z"} Record typed characters into register {0-9a-zA-Z"}
|
||||||
(uppercase to append). The 'q' command is disabled
|
(uppercase to append). The 'q' command is disabled
|
||||||
while executing a register, and it doesn't work inside
|
while executing a register, and it doesn't work inside
|
||||||
a mapping and |:normal|. {Vi: no recording}
|
a mapping and |:normal|.
|
||||||
|
|
||||||
q Stops recording. (Implementation note: The 'q' that
|
q Stops recording.
|
||||||
stops recording is not stored in the register, unless
|
Implementation note: The 'q' that stops recording is
|
||||||
it was the result of a mapping) {Vi: no recording}
|
not stored in the register, unless it was the result
|
||||||
|
of a mapping
|
||||||
|
|
||||||
*@*
|
*@*
|
||||||
@{0-9a-z".=*+} Execute the contents of register {0-9a-z".=*+} [count]
|
@{0-9a-z".=*+} Execute the contents of register {0-9a-z".=*+} [count]
|
||||||
@ -122,7 +123,7 @@ q Stops recording. (Implementation note: The 'q' that
|
|||||||
applies.
|
applies.
|
||||||
For "@=" you are prompted to enter an expression. The
|
For "@=" you are prompted to enter an expression. The
|
||||||
result of the expression is then executed.
|
result of the expression is then executed.
|
||||||
See also |@:|. {Vi: only named registers}
|
See also |@:|.
|
||||||
|
|
||||||
*@@* *E748*
|
*@@* *E748*
|
||||||
@@ Repeat the previous @{0-9a-z":*} [count] times.
|
@@ Repeat the previous @{0-9a-z":*} [count] times.
|
||||||
@ -139,17 +140,14 @@ q Stops recording. (Implementation note: The 'q' that
|
|||||||
result of evaluating the expression is executed as an
|
result of evaluating the expression is executed as an
|
||||||
Ex command.
|
Ex command.
|
||||||
Mappings are not recognized in these commands.
|
Mappings are not recognized in these commands.
|
||||||
{Vi: only in some versions} Future: Will execute the
|
|
||||||
register for each line in the address range.
|
|
||||||
|
|
||||||
*:@:*
|
*:@:*
|
||||||
:[addr]@: Repeat last command-line. First set cursor at line
|
:[addr]@: Repeat last command-line. First set cursor at line
|
||||||
[addr] (default is current line). {not in Vi}
|
[addr] (default is current line).
|
||||||
|
|
||||||
*:@@*
|
*:@@*
|
||||||
:[addr]@@ Repeat the previous :@{0-9a-z"}. First set cursor at
|
:[addr]@@ Repeat the previous :@{0-9a-z"}. First set cursor at
|
||||||
line [addr] (default is current line). {Vi: only in
|
line [addr] (default is current line).
|
||||||
some versions}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. Using Vim scripts *using-scripts*
|
4. Using Vim scripts *using-scripts*
|
||||||
@ -168,7 +166,6 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
|||||||
|:bufdo|, in a loop or when another command follows
|
|:bufdo|, in a loop or when another command follows
|
||||||
the display won't be updated while executing the
|
the display won't be updated while executing the
|
||||||
commands.
|
commands.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:ru* *:runtime*
|
*:ru* *:runtime*
|
||||||
:ru[ntime][!] {file} ..
|
:ru[ntime][!] {file} ..
|
||||||
@ -200,7 +197,6 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
|||||||
when no file could be found.
|
when no file could be found.
|
||||||
When 'verbose' is two or higher, there is a message
|
When 'verbose' is two or higher, there is a message
|
||||||
about each searched file.
|
about each searched file.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
:scripte[ncoding] [encoding] *:scripte* *:scriptencoding* *E167*
|
:scripte[ncoding] [encoding] *:scripte* *:scriptencoding* *E167*
|
||||||
Specify the character encoding used in the script.
|
Specify the character encoding used in the script.
|
||||||
@ -227,16 +223,10 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
|||||||
Mark) in utf-8 format Vim will recognize it, no need
|
Mark) in utf-8 format Vim will recognize it, no need
|
||||||
to use ":scriptencoding utf-8" then.
|
to use ":scriptencoding utf-8" then.
|
||||||
|
|
||||||
When compiled without the |+multi_byte| feature this
|
|
||||||
command is ignored.
|
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:scrip* *:scriptnames*
|
*:scrip* *:scriptnames*
|
||||||
:scrip[tnames] List all sourced script names, in the order they were
|
:scrip[tnames] List all sourced script names, in the order they were
|
||||||
first sourced. The number is used for the script ID
|
first sourced. The number is used for the script ID
|
||||||
|<SID>|.
|
|<SID>|.
|
||||||
{not in Vi} {not available when compiled without the
|
|
||||||
|+eval| feature}
|
|
||||||
|
|
||||||
*:fini* *:finish* *E168*
|
*:fini* *:finish* *E168*
|
||||||
:fini[sh] Stop sourcing a script. Can only be used in a Vim
|
:fini[sh] Stop sourcing a script. Can only be used in a Vim
|
||||||
@ -246,7 +236,7 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
|||||||
following the ":finally" up to the matching |:endtry|
|
following the ":finally" up to the matching |:endtry|
|
||||||
are executed first. This process applies to all
|
are executed first. This process applies to all
|
||||||
nested ":try"s in the script. The outermost ":endtry"
|
nested ":try"s in the script. The outermost ":endtry"
|
||||||
then stops sourcing the script. {not in Vi}
|
then stops sourcing the script.
|
||||||
|
|
||||||
All commands and command sequences can be repeated by putting them in a named
|
All commands and command sequences can be repeated by putting them in a named
|
||||||
register and then executing it. There are two ways to get the commands in the
|
register and then executing it. There are two ways to get the commands in the
|
||||||
@ -387,7 +377,6 @@ sourced file or user function and set breakpoints.
|
|||||||
NOTE: The debugging mode is far from perfect. Debugging will have side
|
NOTE: The debugging mode is far from perfect. Debugging will have side
|
||||||
effects on how Vim works. You cannot use it to debug everything. For
|
effects on how Vim works. You cannot use it to debug everything. For
|
||||||
example, the display is messed up by the debugging messages.
|
example, the display is messed up by the debugging messages.
|
||||||
{Vi does not have a debug mode}
|
|
||||||
|
|
||||||
An alternative to debug mode is setting the 'verbose' option. With a bigger
|
An alternative to debug mode is setting the 'verbose' option. With a bigger
|
||||||
number it will give more verbose messages about what Vim is doing.
|
number it will give more verbose messages about what Vim is doing.
|
||||||
@ -580,7 +569,6 @@ OBSCURE
|
|||||||
Profiling means that Vim measures the time that is spent on executing
|
Profiling means that Vim measures the time that is spent on executing
|
||||||
functions and/or scripts. The |+profile| feature is required for this.
|
functions and/or scripts. The |+profile| feature is required for this.
|
||||||
It is only included when Vim was compiled with "huge" features.
|
It is only included when Vim was compiled with "huge" features.
|
||||||
{Vi does not have profiling}
|
|
||||||
|
|
||||||
You can also use the |reltime()| function to measure time. This only requires
|
You can also use the |reltime()| function to measure time. This only requires
|
||||||
the |+reltime| feature, which is present more often.
|
the |+reltime| feature, which is present more often.
|
||||||
|
@ -12,12 +12,6 @@ These functions were originally created by Avner Lottem:
|
|||||||
E-mail: alottem@iil.intel.com
|
E-mail: alottem@iil.intel.com
|
||||||
Phone: +972-4-8307322
|
Phone: +972-4-8307322
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
*E26*
|
|
||||||
{only available when compiled with the |+rightleft| feature}
|
|
||||||
|
|
||||||
|
|
||||||
Introduction
|
Introduction
|
||||||
------------
|
------------
|
||||||
Some languages such as Arabic, Farsi, Hebrew (among others) require the
|
Some languages such as Arabic, Farsi, Hebrew (among others) require the
|
||||||
|
@ -117,7 +117,7 @@ z<CR> Redraw, line [count] at top of window (default
|
|||||||
|
|
||||||
*zt*
|
*zt*
|
||||||
zt Like "z<CR>", but leave the cursor in the same
|
zt Like "z<CR>", but leave the cursor in the same
|
||||||
column. {not in Vi}
|
column.
|
||||||
|
|
||||||
*zN<CR>*
|
*zN<CR>*
|
||||||
z{height}<CR> Redraw, make window {height} lines tall. This is
|
z{height}<CR> Redraw, make window {height} lines tall. This is
|
||||||
@ -133,7 +133,7 @@ z. Redraw, line [count] at center of window (default
|
|||||||
*zz*
|
*zz*
|
||||||
zz Like "z.", but leave the cursor in the same column.
|
zz Like "z.", but leave the cursor in the same column.
|
||||||
Careful: If caps-lock is on, this command becomes
|
Careful: If caps-lock is on, this command becomes
|
||||||
"ZZ": write buffer and exit! {not in Vi}
|
"ZZ": write buffer and exit!
|
||||||
|
|
||||||
*z-*
|
*z-*
|
||||||
z- Redraw, line [count] at bottom of window (default
|
z- Redraw, line [count] at bottom of window (default
|
||||||
@ -142,7 +142,6 @@ z- Redraw, line [count] at bottom of window (default
|
|||||||
|
|
||||||
*zb*
|
*zb*
|
||||||
zb Like "z-", but leave the cursor in the same column.
|
zb Like "z-", but leave the cursor in the same column.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. Scrolling horizontally *scroll-horizontal*
|
4. Scrolling horizontally *scroll-horizontal*
|
||||||
@ -155,26 +154,22 @@ not used.
|
|||||||
z<Right> or *zl* *z<Right>*
|
z<Right> or *zl* *z<Right>*
|
||||||
zl Move the view on the text [count] characters to the
|
zl Move the view on the text [count] characters to the
|
||||||
right, thus scroll the text [count] characters to the
|
right, thus scroll the text [count] characters to the
|
||||||
left. This only works when 'wrap' is off. {not in
|
left. This only works when 'wrap' is off.
|
||||||
Vi}
|
|
||||||
|
|
||||||
z<Left> or *zh* *z<Left>*
|
z<Left> or *zh* *z<Left>*
|
||||||
zh Move the view on the text [count] characters to the
|
zh Move the view on the text [count] characters to the
|
||||||
left, thus scroll the text [count] characters to the
|
left, thus scroll the text [count] characters to the
|
||||||
right. This only works when 'wrap' is off. {not in
|
right. This only works when 'wrap' is off.
|
||||||
Vi}
|
|
||||||
|
|
||||||
*zL*
|
*zL*
|
||||||
zL Move the view on the text half a screenwidth to the
|
zL Move the view on the text half a screenwidth to the
|
||||||
right, thus scroll the text half a screenwidth to the
|
right, thus scroll the text half a screenwidth to the
|
||||||
left. This only works when 'wrap' is off. {not in
|
left. This only works when 'wrap' is off.
|
||||||
Vi}
|
|
||||||
|
|
||||||
*zH*
|
*zH*
|
||||||
zH Move the view on the text half a screenwidth to the
|
zH Move the view on the text half a screenwidth to the
|
||||||
left, thus scroll the text half a screenwidth to the
|
left, thus scroll the text half a screenwidth to the
|
||||||
right. This only works when 'wrap' is off. {not in
|
right. This only works when 'wrap' is off.
|
||||||
Vi}
|
|
||||||
|
|
||||||
For the following two commands the cursor is not moved in the text, only the
|
For the following two commands the cursor is not moved in the text, only the
|
||||||
text scrolls on the screen.
|
text scrolls on the screen.
|
||||||
@ -182,12 +177,12 @@ text scrolls on the screen.
|
|||||||
*zs*
|
*zs*
|
||||||
zs Scroll the text horizontally to position the cursor
|
zs Scroll the text horizontally to position the cursor
|
||||||
at the start (left side) of the screen. This only
|
at the start (left side) of the screen. This only
|
||||||
works when 'wrap' is off. {not in Vi}
|
works when 'wrap' is off.
|
||||||
|
|
||||||
*ze*
|
*ze*
|
||||||
ze Scroll the text horizontally to position the cursor
|
ze Scroll the text horizontally to position the cursor
|
||||||
at the end (right side) of the screen. This only
|
at the end (right side) of the screen. This only
|
||||||
works when 'wrap' is off. {not in Vi}
|
works when 'wrap' is off.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
5. Scrolling synchronously *scroll-binding*
|
5. Scrolling synchronously *scroll-binding*
|
||||||
|
@ -10,9 +10,6 @@ Sign Support Features *sign-support*
|
|||||||
1. Introduction |sign-intro|
|
1. Introduction |sign-intro|
|
||||||
2. Commands |sign-commands|
|
2. Commands |sign-commands|
|
||||||
|
|
||||||
{Vi does not have any of these features}
|
|
||||||
{only available when compiled with the |+signs| feature}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Introduction *sign-intro* *signs*
|
1. Introduction *sign-intro* *signs*
|
||||||
|
|
||||||
|
@ -11,11 +11,6 @@ Spell checking *spell*
|
|||||||
3. Generating a spell file |spell-mkspell|
|
3. Generating a spell file |spell-mkspell|
|
||||||
4. Spell file format |spell-file-format|
|
4. Spell file format |spell-file-format|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
Spell checking is not available when the |+syntax| feature has been disabled
|
|
||||||
at compile time.
|
|
||||||
|
|
||||||
Note: There also is a vimspell plugin. If you have it you can do ":help
|
Note: There also is a vimspell plugin. If you have it you can do ":help
|
||||||
vimspell" to find about it. But you will probably want to get rid of the
|
vimspell" to find about it. But you will probably want to get rid of the
|
||||||
plugin and use the 'spell' option instead, it works better.
|
plugin and use the 'spell' option instead, it works better.
|
||||||
|
@ -76,7 +76,6 @@ filename One or more file names. The first one will be the current
|
|||||||
and the first error is displayed. See |quickfix|.
|
and the first error is displayed. See |quickfix|.
|
||||||
If [errorfile] is not given, the 'errorfile' option is used
|
If [errorfile] is not given, the 'errorfile' option is used
|
||||||
for the file name. See 'errorfile' for the default value.
|
for the file name. See 'errorfile' for the default value.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
(nothing) Without one of the four items above, Vim will start editing a
|
(nothing) Without one of the four items above, Vim will start editing a
|
||||||
new buffer. It's empty and doesn't have a file name.
|
new buffer. It's empty and doesn't have a file name.
|
||||||
@ -87,17 +86,16 @@ combined after one dash. There can be no option arguments after the "--"
|
|||||||
argument.
|
argument.
|
||||||
|
|
||||||
--help *-h* *--help*
|
--help *-h* *--help*
|
||||||
-h Give usage (help) message and exit. {not in Vi}
|
-h Give usage (help) message and exit.
|
||||||
See |info-message| about capturing the text.
|
See |info-message| about capturing the text.
|
||||||
|
|
||||||
*--version*
|
*--version*
|
||||||
--version Print version information and exit. Same output as for
|
--version Print version information and exit. Same output as for
|
||||||
|:version| command. {not in Vi}
|
|:version| command.
|
||||||
See |info-message| about capturing the text.
|
See |info-message| about capturing the text.
|
||||||
|
|
||||||
*--noplugin*
|
*--noplugin*
|
||||||
--noplugin Skip loading plugins. Resets the 'loadplugins' option.
|
--noplugin Skip loading plugins. Resets the 'loadplugins' option.
|
||||||
{not in Vi}
|
|
||||||
Note that the |-u| argument may also disable loading plugins:
|
Note that the |-u| argument may also disable loading plugins:
|
||||||
argument load vimrc files load plugins ~
|
argument load vimrc files load plugins ~
|
||||||
(nothing) yes yes
|
(nothing) yes yes
|
||||||
@ -147,13 +145,11 @@ argument.
|
|||||||
Note: You can use up to 10 "+" or "-c" arguments in a Vim
|
Note: You can use up to 10 "+" or "-c" arguments in a Vim
|
||||||
command. They are executed in the order given. A "-S"
|
command. They are executed in the order given. A "-S"
|
||||||
argument counts as a "-c" argument as well.
|
argument counts as a "-c" argument as well.
|
||||||
{Vi only allows one command}
|
|
||||||
|
|
||||||
--cmd {command} *--cmd*
|
--cmd {command} *--cmd*
|
||||||
{command} will be executed before processing any vimrc file.
|
{command} will be executed before processing any vimrc file.
|
||||||
Otherwise it acts like -c {command}. You can use up to 10 of
|
Otherwise it acts like -c {command}. You can use up to 10 of
|
||||||
these commands, independently from "-c" commands.
|
these commands, independently from "-c" commands.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-S*
|
*-S*
|
||||||
-S {file} The {file} will be sourced after the first file has been read.
|
-S {file} The {file} will be sourced after the first file has been read.
|
||||||
@ -162,7 +158,6 @@ argument.
|
|||||||
< It can be mixed with "-c" arguments and repeated like "-c".
|
< It can be mixed with "-c" arguments and repeated like "-c".
|
||||||
The limit of 10 "-c" arguments applies here as well.
|
The limit of 10 "-c" arguments applies here as well.
|
||||||
{file} cannot start with a "-".
|
{file} cannot start with a "-".
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
-S Works like "-S Session.vim". Only when used as the last
|
-S Works like "-S Session.vim". Only when used as the last
|
||||||
argument or when another "-" option follows.
|
argument or when another "-" option follows.
|
||||||
@ -174,8 +169,7 @@ argument.
|
|||||||
|crash-recovery|.
|
|crash-recovery|.
|
||||||
|
|
||||||
*-L*
|
*-L*
|
||||||
-L Same as -r. {only in some versions of Vi: "List recoverable
|
-L Same as -r.
|
||||||
edit sessions"}
|
|
||||||
|
|
||||||
*-R*
|
*-R*
|
||||||
-R Readonly mode. The 'readonly' option will be set for all the
|
-R Readonly mode. The 'readonly' option will be set for all the
|
||||||
@ -194,7 +188,6 @@ argument.
|
|||||||
-m Modifications not allowed to be written. The 'write' option
|
-m Modifications not allowed to be written. The 'write' option
|
||||||
will be reset, so that writing files is disabled. However,
|
will be reset, so that writing files is disabled. However,
|
||||||
the 'write' option can be set to enable writing again.
|
the 'write' option can be set to enable writing again.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-M*
|
*-M*
|
||||||
-M Modifications not allowed. The 'modifiable' option will be
|
-M Modifications not allowed. The 'modifiable' option will be
|
||||||
@ -202,18 +195,15 @@ argument.
|
|||||||
will be reset, so that writing files is disabled. However,
|
will be reset, so that writing files is disabled. However,
|
||||||
the 'modifiable' and 'write' options can be set to enable
|
the 'modifiable' and 'write' options can be set to enable
|
||||||
changes and writing.
|
changes and writing.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-Z* *restricted-mode* *E145*
|
*-Z* *restricted-mode* *E145*
|
||||||
-Z Restricted mode. All commands that make use of an external
|
-Z Restricted mode. All commands that make use of an external
|
||||||
shell are disabled. This includes suspending with CTRL-Z,
|
shell are disabled. This includes suspending with CTRL-Z,
|
||||||
":sh", filtering, the system() function, backtick expansion,
|
":sh", filtering, the system() function, backtick expansion,
|
||||||
delete(), rename(), mkdir(), writefile(), libcall(), etc.
|
delete(), rename(), mkdir(), writefile(), libcall(), etc.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-g*
|
*-g*
|
||||||
-g Start Vim in GUI mode. See |gui|.
|
-g Start Vim in GUI mode. See |gui|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-e*
|
*-e*
|
||||||
-e Start Vim in Ex mode |Q|.
|
-e Start Vim in Ex mode |Q|.
|
||||||
@ -250,32 +240,25 @@ argument.
|
|||||||
option is set to 0. 'modeline' is reset. The 'binary' option
|
option is set to 0. 'modeline' is reset. The 'binary' option
|
||||||
is set. This is done after reading the vimrc/exrc files but
|
is set. This is done after reading the vimrc/exrc files but
|
||||||
before reading any file in the arglist. See also
|
before reading any file in the arglist. See also
|
||||||
|edit-binary|. {not in Vi}
|
|edit-binary|.
|
||||||
|
|
||||||
*-l*
|
*-l*
|
||||||
-l Lisp mode. Sets the 'lisp' and 'showmatch' options on.
|
-l Lisp mode. Sets the 'lisp' and 'showmatch' options on.
|
||||||
|
|
||||||
*-A*
|
*-A*
|
||||||
-A Arabic mode. Sets the 'arabic' option on. (Only when
|
-A Arabic mode. Sets the 'arabic' option on.
|
||||||
compiled with the |+arabic| features (which include
|
|
||||||
|+rightleft|), otherwise Vim gives an error message
|
|
||||||
and exits.) {not in Vi}
|
|
||||||
|
|
||||||
*-F*
|
*-F*
|
||||||
-F Farsi mode. Sets the 'fkmap' and 'rightleft' options on.
|
-F Farsi mode. Sets the 'fkmap' and 'rightleft' options on.
|
||||||
(Only when compiled with |+rightleft| and |+farsi| features,
|
|
||||||
otherwise Vim gives an error message and exits.) {not in Vi}
|
|
||||||
|
|
||||||
*-H*
|
*-H*
|
||||||
-H Hebrew mode. Sets the 'hkmap' and 'rightleft' options on.
|
-H Hebrew mode. Sets the 'hkmap' and 'rightleft' options on.
|
||||||
(Only when compiled with the |+rightleft| feature, otherwise
|
|
||||||
Vim gives an error message and exits.) {not in Vi}
|
|
||||||
|
|
||||||
*-V* *verbose*
|
*-V* *verbose*
|
||||||
-V[N] Verbose. Sets the 'verbose' option to [N] (default: 10).
|
-V[N] Verbose. Sets the 'verbose' option to [N] (default: 10).
|
||||||
Messages will be given for each file that is ":source"d and
|
Messages will be given for each file that is ":source"d and
|
||||||
for reading or writing a viminfo file. Can be used to find
|
for reading or writing a viminfo file. Can be used to find
|
||||||
out what is happening upon startup and exit. {not in Vi}
|
out what is happening upon startup and exit.
|
||||||
Example: >
|
Example: >
|
||||||
vim -V8 foobar
|
vim -V8 foobar
|
||||||
|
|
||||||
@ -290,7 +273,6 @@ argument.
|
|||||||
-D Debugging. Go to debugging mode when executing the first
|
-D Debugging. Go to debugging mode when executing the first
|
||||||
command from a script. |debug-mode|
|
command from a script. |debug-mode|
|
||||||
{not available when compiled without the |+eval| feature}
|
{not available when compiled without the |+eval| feature}
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-n*
|
*-n*
|
||||||
-n No swap file will be used. Recovery after a crash will be
|
-n No swap file will be used. Recovery after a crash will be
|
||||||
@ -308,7 +290,6 @@ argument.
|
|||||||
'updatecount' to very big numbers, and type ":preserve" when
|
'updatecount' to very big numbers, and type ":preserve" when
|
||||||
you want to save your work. This way you keep the possibility
|
you want to save your work. This way you keep the possibility
|
||||||
for crash recovery.
|
for crash recovery.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-o*
|
*-o*
|
||||||
-o[N] Open N windows, split horizontally. If [N] is not given,
|
-o[N] Open N windows, split horizontally. If [N] is not given,
|
||||||
@ -316,13 +297,11 @@ argument.
|
|||||||
there is not enough room, only the first few files get a
|
there is not enough room, only the first few files get a
|
||||||
window. If there are more windows than arguments, the last
|
window. If there are more windows than arguments, the last
|
||||||
few windows will be editing an empty file.
|
few windows will be editing an empty file.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-O*
|
*-O*
|
||||||
-O[N] Open N windows, split vertically. Otherwise it's like -o.
|
-O[N] Open N windows, split vertically. Otherwise it's like -o.
|
||||||
If both the -o and the -O option are given, the last one on
|
If both the -o and the -O option are given, the last one on
|
||||||
the command line determines how the windows will be split.
|
the command line determines how the windows will be split.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-p*
|
*-p*
|
||||||
-p[N] Open N tab pages. If [N] is not given, one tab page is opened
|
-p[N] Open N tab pages. If [N] is not given, one tab page is opened
|
||||||
@ -330,13 +309,12 @@ argument.
|
|||||||
'tabpagemax' pages (default 10). If there are more tab pages
|
'tabpagemax' pages (default 10). If there are more tab pages
|
||||||
than arguments, the last few tab pages will be editing an
|
than arguments, the last few tab pages will be editing an
|
||||||
empty file. Also see |tabpage|.
|
empty file. Also see |tabpage|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-T*
|
*-T*
|
||||||
-T {terminal} Set the terminal type to "terminal". This influences the
|
-T {terminal} Set the terminal type to "terminal". This influences the
|
||||||
codes that Vim will send to your terminal. This is normally
|
codes that Vim will send to your terminal. This is normally
|
||||||
not needed, because Vim will be able to find out what type
|
not needed, because Vim will be able to find out what type
|
||||||
of terminal you are using. (See |terminal-info|.) {not in Vi}
|
of terminal you are using. (See |terminal-info|.)
|
||||||
|
|
||||||
*-d*
|
*-d*
|
||||||
-d Start in |diff-mode|.
|
-d Start in |diff-mode|.
|
||||||
@ -356,7 +334,6 @@ argument.
|
|||||||
starts. Loading plugins is also skipped.
|
starts. Loading plugins is also skipped.
|
||||||
When {vimrc} is equal to "NORC" (all uppercase), this has the
|
When {vimrc} is equal to "NORC" (all uppercase), this has the
|
||||||
same effect as "NONE", but loading plugins is not skipped.
|
same effect as "NONE", but loading plugins is not skipped.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-U* *E230*
|
*-U* *E230*
|
||||||
-U {gvimrc} The file {gvimrc} is read for initializations when the GUI
|
-U {gvimrc} The file {gvimrc} is read for initializations when the GUI
|
||||||
@ -364,14 +341,12 @@ argument.
|
|||||||
is equal to "NONE", no file is read for GUI initializations at
|
is equal to "NONE", no file is read for GUI initializations at
|
||||||
all. |gui-init|
|
all. |gui-init|
|
||||||
Exception: Reading the system-wide menu file is always done.
|
Exception: Reading the system-wide menu file is always done.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-i*
|
*-i*
|
||||||
-i {viminfo} The file "viminfo" is used instead of the default viminfo
|
-i {viminfo} The file "viminfo" is used instead of the default viminfo
|
||||||
file. If the name "NONE" is used (all uppercase), no viminfo
|
file. If the name "NONE" is used (all uppercase), no viminfo
|
||||||
file is read or written, even if 'viminfo' is set or when
|
file is read or written, even if 'viminfo' is set or when
|
||||||
":rv" or ":wv" are used. See also |viminfo-file|.
|
":rv" or ":wv" are used. See also |viminfo-file|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-X*
|
*-X*
|
||||||
-X Do not try connecting to the X server to get the current
|
-X Do not try connecting to the X server to get the current
|
||||||
@ -389,7 +364,6 @@ argument.
|
|||||||
When the connection is desired later anyway (e.g., for
|
When the connection is desired later anyway (e.g., for
|
||||||
client-server messages), call the |serverlist()| function.
|
client-server messages), call the |serverlist()| function.
|
||||||
This does not enable the XSMP handler though.
|
This does not enable the XSMP handler though.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-s*
|
*-s*
|
||||||
-s {scriptin} The script file "scriptin" is read. The characters in the
|
-s {scriptin} The script file "scriptin" is read. The characters in the
|
||||||
@ -398,7 +372,6 @@ argument.
|
|||||||
of the file is reached before the editor exits, further
|
of the file is reached before the editor exits, further
|
||||||
characters are read from the keyboard. Only works when not
|
characters are read from the keyboard. Only works when not
|
||||||
started in Ex mode, see |-s-ex|. See also |complex-repeat|.
|
started in Ex mode, see |-s-ex|. See also |complex-repeat|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-w_nr*
|
*-w_nr*
|
||||||
-w {number}
|
-w {number}
|
||||||
@ -411,62 +384,60 @@ argument.
|
|||||||
":source!". When the "scriptout" file already exists, new
|
":source!". When the "scriptout" file already exists, new
|
||||||
characters are appended. See also |complex-repeat|.
|
characters are appended. See also |complex-repeat|.
|
||||||
{scriptout} cannot start with a digit.
|
{scriptout} cannot start with a digit.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*-W*
|
*-W*
|
||||||
-W {scriptout} Like -w, but do not append, overwrite an existing file.
|
-W {scriptout} Like -w, but do not append, overwrite an existing file.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
--remote [+{cmd}] {file} ...
|
--remote [+{cmd}] {file} ...
|
||||||
Open the {file} in another Vim that functions as a server.
|
Open the {file} in another Vim that functions as a server.
|
||||||
Any non-file arguments must come before this.
|
Any non-file arguments must come before this.
|
||||||
See |--remote|. {not in Vi}
|
See |--remote|.
|
||||||
|
|
||||||
--remote-silent [+{cmd}] {file} ...
|
--remote-silent [+{cmd}] {file} ...
|
||||||
Like --remote, but don't complain if there is no server.
|
Like --remote, but don't complain if there is no server.
|
||||||
See |--remote-silent|. {not in Vi}
|
See |--remote-silent|.
|
||||||
|
|
||||||
--remote-wait [+{cmd}] {file} ...
|
--remote-wait [+{cmd}] {file} ...
|
||||||
Like --remote, but wait for the server to finish editing the
|
Like --remote, but wait for the server to finish editing the
|
||||||
file(s).
|
file(s).
|
||||||
See |--remote-wait|. {not in Vi}
|
See |--remote-wait|.
|
||||||
|
|
||||||
--remote-wait-silent [+{cmd}] {file} ...
|
--remote-wait-silent [+{cmd}] {file} ...
|
||||||
Like --remote-wait, but don't complain if there is no server.
|
Like --remote-wait, but don't complain if there is no server.
|
||||||
See |--remote-wait-silent|. {not in Vi}
|
See |--remote-wait-silent|.
|
||||||
|
|
||||||
--servername {name}
|
--servername {name}
|
||||||
Specify the name of the Vim server to send to or to become.
|
Specify the name of the Vim server to send to or to become.
|
||||||
See |--servername|. {not in Vi}
|
See |--servername|.
|
||||||
|
|
||||||
--remote-send {keys}
|
--remote-send {keys}
|
||||||
Send {keys} to a Vim server and exit.
|
Send {keys} to a Vim server and exit.
|
||||||
See |--remote-send|. {not in Vi}
|
See |--remote-send|.
|
||||||
|
|
||||||
--remote-expr {expr}
|
--remote-expr {expr}
|
||||||
Evaluate {expr} in another Vim that functions as a server.
|
Evaluate {expr} in another Vim that functions as a server.
|
||||||
The result is printed on stdout.
|
The result is printed on stdout.
|
||||||
See |--remote-expr|. {not in Vi}
|
See |--remote-expr|.
|
||||||
|
|
||||||
--serverlist Output a list of Vim server names and exit. See
|
--serverlist Output a list of Vim server names and exit. See
|
||||||
|--serverlist|. {not in Vi}
|
|--serverlist|.
|
||||||
|
|
||||||
--socketid {id} *--socketid*
|
--socketid {id} *--socketid*
|
||||||
GTK+ GUI Vim only. Make gvim try to use GtkPlug mechanism, so
|
GTK+ GUI Vim only. Make gvim try to use GtkPlug mechanism, so
|
||||||
that it runs inside another window. See |gui-gtk-socketid|
|
that it runs inside another window. See |gui-gtk-socketid|
|
||||||
for details. {not in Vi}
|
for details.
|
||||||
|
|
||||||
--windowid {id} *--windowid*
|
--windowid {id} *--windowid*
|
||||||
Win32 GUI Vim only. Make gvim try to use the window {id} as a
|
Win32 GUI Vim only. Make gvim try to use the window {id} as a
|
||||||
parent, so that it runs inside that window. See
|
parent, so that it runs inside that window. See
|
||||||
|gui-w32-windowid| for details. {not in Vi}
|
|gui-w32-windowid| for details.
|
||||||
|
|
||||||
--echo-wid *--echo-wid*
|
--echo-wid *--echo-wid*
|
||||||
GTK+ GUI Vim only. Make gvim echo the Window ID on stdout,
|
GTK+ GUI Vim only. Make gvim echo the Window ID on stdout,
|
||||||
which can be used to run gvim in a kpart widget. The format
|
which can be used to run gvim in a kpart widget. The format
|
||||||
of the output is: >
|
of the output is: >
|
||||||
WID: 12345\n
|
WID: 12345\n
|
||||||
< {not in Vi}
|
<
|
||||||
|
|
||||||
--role {role} *--role*
|
--role {role} *--role*
|
||||||
GTK+ 2 GUI only. Set the role of the main window to {role}.
|
GTK+ 2 GUI only. Set the role of the main window to {role}.
|
||||||
@ -474,7 +445,6 @@ argument.
|
|||||||
identify a window, in order to restore window placement and
|
identify a window, in order to restore window placement and
|
||||||
such. The --role argument is passed automatically when
|
such. The --role argument is passed automatically when
|
||||||
restoring the session on login. See |gui-gnome-session|
|
restoring the session on login. See |gui-gnome-session|
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
-P {parent-title} *-P* *MDI* *E671* *E672*
|
-P {parent-title} *-P* *MDI* *E671* *E672*
|
||||||
Win32 only: Specify the title of the parent application. When
|
Win32 only: Specify the title of the parent application. When
|
||||||
@ -848,16 +818,16 @@ vimrc file.
|
|||||||
*:mk* *:mkexrc*
|
*:mk* *:mkexrc*
|
||||||
:mk[exrc] [file] Write current key mappings and changed options to
|
:mk[exrc] [file] Write current key mappings and changed options to
|
||||||
[file] (default ".exrc" in the current directory),
|
[file] (default ".exrc" in the current directory),
|
||||||
unless it already exists. {not in Vi}
|
unless it already exists.
|
||||||
|
|
||||||
:mk[exrc]! [file] Always write current key mappings and changed
|
:mk[exrc]! [file] Always write current key mappings and changed
|
||||||
options to [file] (default ".exrc" in the current
|
options to [file] (default ".exrc" in the current
|
||||||
directory). {not in Vi}
|
directory).
|
||||||
|
|
||||||
*:mkv* *:mkvimrc*
|
*:mkv* *:mkvimrc*
|
||||||
:mkv[imrc][!] [file] Like ":mkexrc", but the default is ".vimrc" in the
|
:mkv[imrc][!] [file] Like ":mkexrc", but the default is ".vimrc" in the
|
||||||
current directory. The ":version" command is also
|
current directory. The ":version" command is also
|
||||||
written to the file. {not in Vi}
|
written to the file.
|
||||||
|
|
||||||
These commands will write ":map" and ":set" commands to a file, in such a way
|
These commands will write ":map" and ":set" commands to a file, in such a way
|
||||||
that when these commands are executed, the current key mappings and options
|
that when these commands are executed, the current key mappings and options
|
||||||
@ -918,9 +888,6 @@ You can quickly start editing with a previously saved View or Session with the
|
|||||||
|-S| argument: >
|
|-S| argument: >
|
||||||
vim -S Session.vim
|
vim -S Session.vim
|
||||||
<
|
<
|
||||||
All this is {not in Vi} and {not available when compiled without the
|
|
||||||
|+mksession| feature}.
|
|
||||||
|
|
||||||
*:mks* *:mksession*
|
*:mks* *:mksession*
|
||||||
:mks[ession][!] [file] Write a Vim script that restores the current editing
|
:mks[ession][!] [file] Write a Vim script that restores the current editing
|
||||||
session.
|
session.
|
||||||
@ -1203,7 +1170,7 @@ most of the information will be restored).
|
|||||||
:rv[iminfo][!] [file] Read from viminfo file [file] (default: see above).
|
:rv[iminfo][!] [file] Read from viminfo file [file] (default: see above).
|
||||||
If [!] is given, then any information that is
|
If [!] is given, then any information that is
|
||||||
already set (registers, marks, |v:oldfiles|, etc.)
|
already set (registers, marks, |v:oldfiles|, etc.)
|
||||||
will be overwritten {not in Vi}
|
will be overwritten.
|
||||||
|
|
||||||
*:wv* *:wviminfo* *E137* *E138* *E574* *E886*
|
*:wv* *:wviminfo* *E137* *E138* *E574* *E886*
|
||||||
:wv[iminfo][!] [file] Write to viminfo file [file] (default: see above).
|
:wv[iminfo][!] [file] Write to viminfo file [file] (default: see above).
|
||||||
@ -1216,15 +1183,12 @@ most of the information will be restored).
|
|||||||
check that no old temp files were left behind (e.g.
|
check that no old temp files were left behind (e.g.
|
||||||
~/.viminf*) and that you can write in the directory of
|
~/.viminf*) and that you can write in the directory of
|
||||||
the .viminfo file.
|
the .viminfo file.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:ol* *:oldfiles*
|
*:ol* *:oldfiles*
|
||||||
:ol[dfiles] List the files that have marks stored in the viminfo
|
:ol[dfiles] List the files that have marks stored in the viminfo
|
||||||
file. This list is read on startup and only changes
|
file. This list is read on startup and only changes
|
||||||
afterwards with ":rviminfo!". Also see |v:oldfiles|.
|
afterwards with ":rviminfo!". Also see |v:oldfiles|.
|
||||||
The number can be used with |c_#<|.
|
The number can be used with |c_#<|.
|
||||||
{not in Vi, only when compiled with the |+eval|
|
|
||||||
feature}
|
|
||||||
|
|
||||||
:bro[wse] ol[dfiles][!]
|
:bro[wse] ol[dfiles][!]
|
||||||
List file names as with |:oldfiles|, and then prompt
|
List file names as with |:oldfiles|, and then prompt
|
||||||
@ -1233,6 +1197,5 @@ most of the information will be restored).
|
|||||||
If you get the |press-enter| prompt you can press "q"
|
If you get the |press-enter| prompt you can press "q"
|
||||||
and still get the prompt to enter a file number.
|
and still get the prompt to enter a file number.
|
||||||
Use ! to abandon a modified buffer. |abandon|
|
Use ! to abandon a modified buffer. |abandon|
|
||||||
{not when compiled with tiny or small features}
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
|
@ -39,11 +39,6 @@ In the User Manual:
|
|||||||
17. Color xterms |xterm-color|
|
17. Color xterms |xterm-color|
|
||||||
18. When syntax is slow |:syntime|
|
18. When syntax is slow |:syntime|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
|
|
||||||
Syntax highlighting is not available when the |+syntax| feature has been
|
|
||||||
disabled at compile time.
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Quick start *:syn-qstart*
|
1. Quick start *:syn-qstart*
|
||||||
|
|
||||||
|
@ -16,10 +16,6 @@ when used in combination with more than one tab page.
|
|||||||
4. Setting 'tabline' |setting-tabline|
|
4. Setting 'tabline' |setting-tabline|
|
||||||
5. Setting 'guitablabel' |setting-guitablabel|
|
5. Setting 'guitablabel' |setting-guitablabel|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
{not able to use multiple tab pages when the |+windows| feature was disabled
|
|
||||||
at compile time}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Introduction *tab-page-intro*
|
1. Introduction *tab-page-intro*
|
||||||
|
|
||||||
@ -238,8 +234,6 @@ LOOPING OVER TAB PAGES:
|
|||||||
current tab page.
|
current tab page.
|
||||||
{cmd} can contain '|' to concatenate several commands.
|
{cmd} can contain '|' to concatenate several commands.
|
||||||
{cmd} must not open or close tab pages or reorder them.
|
{cmd} must not open or close tab pages or reorder them.
|
||||||
{not in Vi} {not available when compiled without the
|
|
||||||
|+listcmds| feature}
|
|
||||||
Also see |:windo|, |:argdo| and |:bufdo|.
|
Also see |:windo|, |:argdo| and |:bufdo|.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
@ -55,11 +55,10 @@ CTRL-] Jump to the definition of the keyword under the
|
|||||||
to the [count] one. When no [count] is given the
|
to the [count] one. When no [count] is given the
|
||||||
first one is jumped to. See |tag-matchlist| for
|
first one is jumped to. See |tag-matchlist| for
|
||||||
jumping to other matching tags.
|
jumping to other matching tags.
|
||||||
{Vi: identifier after the cursor}
|
|
||||||
|
|
||||||
*v_CTRL-]*
|
*v_CTRL-]*
|
||||||
{Visual}CTRL-] Same as ":tag {ident}", where {ident} is the text that
|
{Visual}CTRL-] Same as ":tag {ident}", where {ident} is the text that
|
||||||
is highlighted. {not in Vi}
|
is highlighted.
|
||||||
|
|
||||||
*telnet-CTRL-]*
|
*telnet-CTRL-]*
|
||||||
CTRL-] is the default telnet escape key. When you type CTRL-] to jump to a
|
CTRL-] is the default telnet escape key. When you type CTRL-] to jump to a
|
||||||
@ -100,18 +99,18 @@ Tags are only pushed onto the stack when the 'tagstack' option is set.
|
|||||||
g<RightMouse> *g<RightMouse>*
|
g<RightMouse> *g<RightMouse>*
|
||||||
<C-RightMouse> *<C-RightMouse>* *CTRL-T*
|
<C-RightMouse> *<C-RightMouse>* *CTRL-T*
|
||||||
CTRL-T Jump to [count] older entry in the tag stack
|
CTRL-T Jump to [count] older entry in the tag stack
|
||||||
(default 1). {not in Vi}
|
(default 1).
|
||||||
|
|
||||||
*:po* *:pop* *E555* *E556*
|
*:po* *:pop* *E555* *E556*
|
||||||
:[count]po[p][!] Jump to [count] older entry in tag stack (default 1).
|
:[count]po[p][!] Jump to [count] older entry in tag stack (default 1).
|
||||||
See |tag-!| for [!]. {not in Vi}
|
See |tag-!| for [!].
|
||||||
|
|
||||||
:[count]ta[g][!] Jump to [count] newer entry in tag stack (default 1).
|
:[count]ta[g][!] Jump to [count] newer entry in tag stack (default 1).
|
||||||
See |tag-!| for [!]. {not in Vi}
|
See |tag-!| for [!].
|
||||||
|
|
||||||
*:tags*
|
*:tags*
|
||||||
:tags Show the contents of the tag stack. The active
|
:tags Show the contents of the tag stack. The active
|
||||||
entry is marked with a '>'. {not in Vi}
|
entry is marked with a '>'.
|
||||||
|
|
||||||
The output of ":tags" looks like this:
|
The output of ":tags" looks like this:
|
||||||
|
|
||||||
@ -188,7 +187,7 @@ the same entry.
|
|||||||
the current position in the list (if there is one).
|
the current position in the list (if there is one).
|
||||||
[ident] can be a regexp pattern, see |tag-regexp|.
|
[ident] can be a regexp pattern, see |tag-regexp|.
|
||||||
See |tag-priority| for the priorities used in the
|
See |tag-priority| for the priorities used in the
|
||||||
listing. {not in Vi}
|
listing.
|
||||||
Example output:
|
Example output:
|
||||||
|
|
||||||
>
|
>
|
||||||
@ -215,54 +214,50 @@ the same entry.
|
|||||||
|
|
||||||
*:sts* *:stselect*
|
*:sts* *:stselect*
|
||||||
:sts[elect][!] [ident] Does ":tselect[!] [ident]" and splits the window for
|
:sts[elect][!] [ident] Does ":tselect[!] [ident]" and splits the window for
|
||||||
the selected tag. {not in Vi}
|
the selected tag.
|
||||||
|
|
||||||
*g]*
|
*g]*
|
||||||
g] Like CTRL-], but use ":tselect" instead of ":tag".
|
g] Like CTRL-], but use ":tselect" instead of ":tag".
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*v_g]*
|
*v_g]*
|
||||||
{Visual}g] Same as "g]", but use the highlighted text as the
|
{Visual}g] Same as "g]", but use the highlighted text as the
|
||||||
identifier. {not in Vi}
|
identifier.
|
||||||
|
|
||||||
*:tj* *:tjump*
|
*:tj* *:tjump*
|
||||||
:tj[ump][!] [ident] Like ":tselect", but jump to the tag directly when
|
:tj[ump][!] [ident] Like ":tselect", but jump to the tag directly when
|
||||||
there is only one match. {not in Vi}
|
there is only one match.
|
||||||
|
|
||||||
*:stj* *:stjump*
|
*:stj* *:stjump*
|
||||||
:stj[ump][!] [ident] Does ":tjump[!] [ident]" and splits the window for the
|
:stj[ump][!] [ident] Does ":tjump[!] [ident]" and splits the window for the
|
||||||
selected tag. {not in Vi}
|
selected tag.
|
||||||
|
|
||||||
*g_CTRL-]*
|
*g_CTRL-]*
|
||||||
g CTRL-] Like CTRL-], but use ":tjump" instead of ":tag".
|
g CTRL-] Like CTRL-], but use ":tjump" instead of ":tag".
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*v_g_CTRL-]*
|
*v_g_CTRL-]*
|
||||||
{Visual}g CTRL-] Same as "g CTRL-]", but use the highlighted text as
|
{Visual}g CTRL-] Same as "g CTRL-]", but use the highlighted text as
|
||||||
the identifier. {not in Vi}
|
the identifier.
|
||||||
|
|
||||||
*:tn* *:tnext*
|
*:tn* *:tnext*
|
||||||
:[count]tn[ext][!] Jump to [count] next matching tag (default 1). See
|
:[count]tn[ext][!] Jump to [count] next matching tag (default 1). See
|
||||||
|tag-!| for [!]. {not in Vi}
|
|tag-!| for [!].
|
||||||
|
|
||||||
*:tp* *:tprevious*
|
*:tp* *:tprevious*
|
||||||
:[count]tp[revious][!] Jump to [count] previous matching tag (default 1).
|
:[count]tp[revious][!] Jump to [count] previous matching tag (default 1).
|
||||||
See |tag-!| for [!]. {not in Vi}
|
See |tag-!| for [!].
|
||||||
|
|
||||||
*:tN* *:tNext*
|
*:tN* *:tNext*
|
||||||
:[count]tN[ext][!] Same as ":tprevious". {not in Vi}
|
:[count]tN[ext][!] Same as ":tprevious".
|
||||||
|
|
||||||
*:tr* *:trewind*
|
*:tr* *:trewind*
|
||||||
:[count]tr[ewind][!] Jump to first matching tag. If [count] is given, jump
|
:[count]tr[ewind][!] Jump to first matching tag. If [count] is given, jump
|
||||||
to [count]th matching tag. See |tag-!| for [!]. {not
|
to [count]th matching tag. See |tag-!| for [!].
|
||||||
in Vi}
|
|
||||||
|
|
||||||
*:tf* *:tfirst*
|
*:tf* *:tfirst*
|
||||||
:[count]tf[irst][!] Same as ":trewind". {not in Vi}
|
:[count]tf[irst][!] Same as ":trewind".
|
||||||
|
|
||||||
*:tl* *:tlast*
|
*:tl* *:tlast*
|
||||||
:tl[ast][!] Jump to last matching tag. See |tag-!| for [!]. {not
|
:tl[ast][!] Jump to last matching tag. See |tag-!| for [!].
|
||||||
in Vi}
|
|
||||||
|
|
||||||
*:lt* *:ltag*
|
*:lt* *:ltag*
|
||||||
:lt[ag][!] [ident] Jump to tag [ident] and add the matching tags to a new
|
:lt[ag][!] [ident] Jump to tag [ident] and add the matching tags to a new
|
||||||
@ -274,7 +269,6 @@ g CTRL-] Like CTRL-], but use ":tjump" instead of ":tag".
|
|||||||
characters (very nomagic). The location list showing
|
characters (very nomagic). The location list showing
|
||||||
the matching tags is independent of the tag stack.
|
the matching tags is independent of the tag stack.
|
||||||
See |tag-!| for [!].
|
See |tag-!| for [!].
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
When there is no other message, Vim shows which matching tag has been jumped
|
When there is no other message, Vim shows which matching tag has been jumped
|
||||||
to, and the number of matching tags: >
|
to, and the number of matching tags: >
|
||||||
@ -301,34 +295,28 @@ the same as above, with a "p" prepended.
|
|||||||
*:pts* *:ptselect*
|
*:pts* *:ptselect*
|
||||||
:pts[elect][!] [ident] Does ":tselect[!] [ident]" and shows the new tag in a
|
:pts[elect][!] [ident] Does ":tselect[!] [ident]" and shows the new tag in a
|
||||||
"Preview" window. See |:ptag| for more info.
|
"Preview" window. See |:ptag| for more info.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:ptj* *:ptjump*
|
*:ptj* *:ptjump*
|
||||||
:ptj[ump][!] [ident] Does ":tjump[!] [ident]" and shows the new tag in a
|
:ptj[ump][!] [ident] Does ":tjump[!] [ident]" and shows the new tag in a
|
||||||
"Preview" window. See |:ptag| for more info.
|
"Preview" window. See |:ptag| for more info.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:ptn* *:ptnext*
|
*:ptn* *:ptnext*
|
||||||
:[count]ptn[ext][!] ":tnext" in the preview window. See |:ptag|.
|
:[count]ptn[ext][!] ":tnext" in the preview window. See |:ptag|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:ptp* *:ptprevious*
|
*:ptp* *:ptprevious*
|
||||||
:[count]ptp[revious][!] ":tprevious" in the preview window. See |:ptag|.
|
:[count]ptp[revious][!] ":tprevious" in the preview window. See |:ptag|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:ptN* *:ptNext*
|
*:ptN* *:ptNext*
|
||||||
:[count]ptN[ext][!] Same as ":ptprevious". {not in Vi}
|
:[count]ptN[ext][!] Same as ":ptprevious".
|
||||||
|
|
||||||
*:ptr* *:ptrewind*
|
*:ptr* *:ptrewind*
|
||||||
:[count]ptr[ewind][!] ":trewind" in the preview window. See |:ptag|.
|
:[count]ptr[ewind][!] ":trewind" in the preview window. See |:ptag|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:ptf* *:ptfirst*
|
*:ptf* *:ptfirst*
|
||||||
:[count]ptf[irst][!] Same as ":ptrewind". {not in Vi}
|
:[count]ptf[irst][!] Same as ":ptrewind".
|
||||||
|
|
||||||
*:ptl* *:ptlast*
|
*:ptl* *:ptlast*
|
||||||
:ptl[ast][!] ":tlast" in the preview window. See |:ptag|.
|
:ptl[ast][!] ":tlast" in the preview window. See |:ptag|.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. Tags details *tag-details*
|
4. Tags details *tag-details*
|
||||||
@ -416,7 +404,6 @@ In a future version changing the buffer will be impossible. All this for
|
|||||||
security reasons: Somebody might hide a nasty command in the tags file, which
|
security reasons: Somebody might hide a nasty command in the tags file, which
|
||||||
would otherwise go unnoticed. Example: >
|
would otherwise go unnoticed. Example: >
|
||||||
:$d|/tag-function-name/
|
:$d|/tag-function-name/
|
||||||
{this security prevention is not present in Vi}
|
|
||||||
|
|
||||||
In Vi the ":tag" command sets the last search pattern when the tag is searched
|
In Vi the ":tag" command sets the last search pattern when the tag is searched
|
||||||
for. In Vim this is not done, the previous search pattern is still remembered,
|
for. In Vim this is not done, the previous search pattern is still remembered,
|
||||||
@ -608,9 +595,7 @@ If the command is a normal search command (it starts and ends with "/" or
|
|||||||
- Searching starts on line 1 of the file.
|
- Searching starts on line 1 of the file.
|
||||||
The direction of the search is forward for "/", backward for "?".
|
The direction of the search is forward for "/", backward for "?".
|
||||||
Note that 'wrapscan' does not matter, the whole file is always searched. (Vi
|
Note that 'wrapscan' does not matter, the whole file is always searched. (Vi
|
||||||
does use 'wrapscan', which caused tags sometimes not be found.) {Vi starts
|
does use 'wrapscan', which caused tags sometimes not be found.)
|
||||||
searching in line 2 of another file. It does not find a tag in line 1 of
|
|
||||||
another file when 'wrapscan' is not set}
|
|
||||||
- If the search fails, another try is done ignoring case. If that fails too,
|
- If the search fails, another try is done ignoring case. If that fails too,
|
||||||
a search is done for:
|
a search is done for:
|
||||||
"^tagname[ \t]*("
|
"^tagname[ \t]*("
|
||||||
@ -621,7 +606,7 @@ If the command is a normal search command (it starts and ends with "/" or
|
|||||||
"^[#a-zA-Z_].*\<tagname[ \t]*("
|
"^[#a-zA-Z_].*\<tagname[ \t]*("
|
||||||
This means: A line starting with '#' or an identifier and containing the tag
|
This means: A line starting with '#' or an identifier and containing the tag
|
||||||
followed by white space and a '('. This will find macro names and function
|
followed by white space and a '('. This will find macro names and function
|
||||||
names with a type prepended. {the extra searches are not in Vi}
|
names with a type prepended.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Include file searches *include-search* *definition-search*
|
6. Include file searches *include-search* *definition-search*
|
||||||
@ -682,33 +667,31 @@ mapping to do that for you. Here is an example: >
|
|||||||
of the file. Lines that look like a comment are
|
of the file. Lines that look like a comment are
|
||||||
ignored (see 'comments' option). If a count is given,
|
ignored (see 'comments' option). If a count is given,
|
||||||
the count'th matching line is displayed, and comment
|
the count'th matching line is displayed, and comment
|
||||||
lines are not ignored. {not in Vi}
|
lines are not ignored.
|
||||||
|
|
||||||
*]i*
|
*]i*
|
||||||
]i like "[i", but start at the current cursor position.
|
]i like "[i", but start at the current cursor position.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:is* *:isearch*
|
*:is* *:isearch*
|
||||||
:[range]is[earch][!] [count] [/]pattern[/]
|
:[range]is[earch][!] [count] [/]pattern[/]
|
||||||
Like "[i" and "]i", but search in [range] lines
|
Like "[i" and "]i", but search in [range] lines
|
||||||
(default: whole file).
|
(default: whole file).
|
||||||
See |:search-args| for [/] and [!]. {not in Vi}
|
See |:search-args| for [/] and [!].
|
||||||
|
|
||||||
*[I*
|
*[I*
|
||||||
[I Display all lines that contain the keyword under the
|
[I Display all lines that contain the keyword under the
|
||||||
cursor. Filenames and line numbers are displayed
|
cursor. Filenames and line numbers are displayed
|
||||||
for the found lines. The search starts at the
|
for the found lines. The search starts at the
|
||||||
beginning of the file. {not in Vi}
|
beginning of the file.
|
||||||
|
|
||||||
*]I*
|
*]I*
|
||||||
]I like "[I", but start at the current cursor position.
|
]I like "[I", but start at the current cursor position.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:il* *:ilist*
|
*:il* *:ilist*
|
||||||
:[range]il[ist][!] [/]pattern[/]
|
:[range]il[ist][!] [/]pattern[/]
|
||||||
Like "[I" and "]I", but search in [range] lines
|
Like "[I" and "]I", but search in [range] lines
|
||||||
(default: whole file).
|
(default: whole file).
|
||||||
See |:search-args| for [/] and [!]. {not in Vi}
|
See |:search-args| for [/] and [!].
|
||||||
|
|
||||||
*[_CTRL-I*
|
*[_CTRL-I*
|
||||||
[ CTRL-I Jump to the first line that contains the keyword
|
[ CTRL-I Jump to the first line that contains the keyword
|
||||||
@ -716,17 +699,17 @@ mapping to do that for you. Here is an example: >
|
|||||||
of the file. Lines that look like a comment are
|
of the file. Lines that look like a comment are
|
||||||
ignored (see 'comments' option). If a count is given,
|
ignored (see 'comments' option). If a count is given,
|
||||||
the count'th matching line is jumped to, and comment
|
the count'th matching line is jumped to, and comment
|
||||||
lines are not ignored. {not in Vi}
|
lines are not ignored.
|
||||||
|
|
||||||
*]_CTRL-I*
|
*]_CTRL-I*
|
||||||
] CTRL-I like "[ CTRL-I", but start at the current cursor
|
] CTRL-I like "[ CTRL-I", but start at the current cursor
|
||||||
position. {not in Vi}
|
position.
|
||||||
|
|
||||||
*:ij* *:ijump*
|
*:ij* *:ijump*
|
||||||
:[range]ij[ump][!] [count] [/]pattern[/]
|
:[range]ij[ump][!] [count] [/]pattern[/]
|
||||||
Like "[ CTRL-I" and "] CTRL-I", but search in
|
Like "[ CTRL-I" and "] CTRL-I", but search in
|
||||||
[range] lines (default: whole file).
|
[range] lines (default: whole file).
|
||||||
See |:search-args| for [/] and [!]. {not in Vi}
|
See |:search-args| for [/] and [!].
|
||||||
|
|
||||||
CTRL-W CTRL-I *CTRL-W_CTRL-I* *CTRL-W_i*
|
CTRL-W CTRL-I *CTRL-W_CTRL-I* *CTRL-W_i*
|
||||||
CTRL-W i Open a new window, with the cursor on the first line
|
CTRL-W i Open a new window, with the cursor on the first line
|
||||||
@ -735,45 +718,43 @@ CTRL-W i Open a new window, with the cursor on the first line
|
|||||||
that look like a comment line are ignored (see
|
that look like a comment line are ignored (see
|
||||||
'comments' option). If a count is given, the count'th
|
'comments' option). If a count is given, the count'th
|
||||||
matching line is jumped to, and comment lines are not
|
matching line is jumped to, and comment lines are not
|
||||||
ignored. {not in Vi}
|
ignored.
|
||||||
|
|
||||||
*:isp* *:isplit*
|
*:isp* *:isplit*
|
||||||
:[range]isp[lit][!] [count] [/]pattern[/]
|
:[range]isp[lit][!] [count] [/]pattern[/]
|
||||||
Like "CTRL-W i" and "CTRL-W i", but search in
|
Like "CTRL-W i" and "CTRL-W i", but search in
|
||||||
[range] lines (default: whole file).
|
[range] lines (default: whole file).
|
||||||
See |:search-args| for [/] and [!]. {not in Vi}
|
See |:search-args| for [/] and [!].
|
||||||
|
|
||||||
*[d*
|
*[d*
|
||||||
[d Display the first macro definition that contains the
|
[d Display the first macro definition that contains the
|
||||||
macro under the cursor. The search starts from the
|
macro under the cursor. The search starts from the
|
||||||
beginning of the file. If a count is given, the
|
beginning of the file. If a count is given, the
|
||||||
count'th matching line is displayed. {not in Vi}
|
count'th matching line is displayed.
|
||||||
|
|
||||||
*]d*
|
*]d*
|
||||||
]d like "[d", but start at the current cursor position.
|
]d like "[d", but start at the current cursor position.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:ds* *:dsearch*
|
*:ds* *:dsearch*
|
||||||
:[range]ds[earch][!] [count] [/]string[/]
|
:[range]ds[earch][!] [count] [/]string[/]
|
||||||
Like "[d" and "]d", but search in [range] lines
|
Like "[d" and "]d", but search in [range] lines
|
||||||
(default: whole file).
|
(default: whole file).
|
||||||
See |:search-args| for [/] and [!]. {not in Vi}
|
See |:search-args| for [/] and [!].
|
||||||
|
|
||||||
*[D*
|
*[D*
|
||||||
[D Display all macro definitions that contain the macro
|
[D Display all macro definitions that contain the macro
|
||||||
under the cursor. Filenames and line numbers are
|
under the cursor. Filenames and line numbers are
|
||||||
displayed for the found lines. The search starts
|
displayed for the found lines. The search starts
|
||||||
from the beginning of the file. {not in Vi}
|
from the beginning of the file.
|
||||||
|
|
||||||
*]D*
|
*]D*
|
||||||
]D like "[D", but start at the current cursor position.
|
]D like "[D", but start at the current cursor position.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*:dli* *:dlist*
|
*:dli* *:dlist*
|
||||||
:[range]dli[st][!] [/]string[/]
|
:[range]dli[st][!] [/]string[/]
|
||||||
Like `[D` and `]D`, but search in [range] lines
|
Like `[D` and `]D`, but search in [range] lines
|
||||||
(default: whole file).
|
(default: whole file).
|
||||||
See |:search-args| for [/] and [!]. {not in Vi}
|
See |:search-args| for [/] and [!].
|
||||||
Note that `:dl` works like `:delete` with the "l"
|
Note that `:dl` works like `:delete` with the "l"
|
||||||
flag, not `:dlist`.
|
flag, not `:dlist`.
|
||||||
|
|
||||||
@ -781,36 +762,35 @@ CTRL-W i Open a new window, with the cursor on the first line
|
|||||||
[ CTRL-D Jump to the first macro definition that contains the
|
[ CTRL-D Jump to the first macro definition that contains the
|
||||||
keyword under the cursor. The search starts from
|
keyword under the cursor. The search starts from
|
||||||
the beginning of the file. If a count is given, the
|
the beginning of the file. If a count is given, the
|
||||||
count'th matching line is jumped to. {not in Vi}
|
count'th matching line is jumped to.
|
||||||
|
|
||||||
*]_CTRL-D*
|
*]_CTRL-D*
|
||||||
] CTRL-D like "[ CTRL-D", but start at the current cursor
|
] CTRL-D like "[ CTRL-D", but start at the current cursor
|
||||||
position. {not in Vi}
|
position.
|
||||||
|
|
||||||
*:dj* *:djump*
|
*:dj* *:djump*
|
||||||
:[range]dj[ump][!] [count] [/]string[/]
|
:[range]dj[ump][!] [count] [/]string[/]
|
||||||
Like "[ CTRL-D" and "] CTRL-D", but search in
|
Like "[ CTRL-D" and "] CTRL-D", but search in
|
||||||
[range] lines (default: whole file).
|
[range] lines (default: whole file).
|
||||||
See |:search-args| for [/] and [!]. {not in Vi}
|
See |:search-args| for [/] and [!].
|
||||||
|
|
||||||
CTRL-W CTRL-D *CTRL-W_CTRL-D* *CTRL-W_d*
|
CTRL-W CTRL-D *CTRL-W_CTRL-D* *CTRL-W_d*
|
||||||
CTRL-W d Open a new window, with the cursor on the first
|
CTRL-W d Open a new window, with the cursor on the first
|
||||||
macro definition line that contains the keyword
|
macro definition line that contains the keyword
|
||||||
under the cursor. The search starts from the
|
under the cursor. The search starts from the
|
||||||
beginning of the file. If a count is given, the
|
beginning of the file. If a count is given, the
|
||||||
count'th matching line is jumped to. {not in Vi}
|
count'th matching line is jumped to.
|
||||||
|
|
||||||
*:dsp* *:dsplit*
|
*:dsp* *:dsplit*
|
||||||
:[range]dsp[lit][!] [count] [/]string[/]
|
:[range]dsp[lit][!] [count] [/]string[/]
|
||||||
Like "CTRL-W d", but search in [range] lines
|
Like "CTRL-W d", but search in [range] lines
|
||||||
(default: whole file).
|
(default: whole file).
|
||||||
See |:search-args| for [/] and [!]. {not in Vi}
|
See |:search-args| for [/] and [!].
|
||||||
|
|
||||||
*:che* *:checkpath*
|
*:che* *:checkpath*
|
||||||
:che[ckpath] List all the included files that could not be found.
|
:che[ckpath] List all the included files that could not be found.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
:che[ckpath]! List all the included files. {not in Vi}
|
:che[ckpath]! List all the included files.
|
||||||
|
|
||||||
*:search-args*
|
*:search-args*
|
||||||
Common arguments for the commands above:
|
Common arguments for the commands above:
|
||||||
|
@ -170,9 +170,6 @@ It is always possible to change individual strings by setting the
|
|||||||
appropriate option. For example: >
|
appropriate option. For example: >
|
||||||
:set t_ce=^V^[[K (CTRL-V, <Esc>, [, K)
|
:set t_ce=^V^[[K (CTRL-V, <Esc>, [, K)
|
||||||
|
|
||||||
{Vi: no terminal options. You have to exit Vi, edit the termcap entry and
|
|
||||||
try again}
|
|
||||||
|
|
||||||
The options are listed below. The associated termcap code is always equal to
|
The options are listed below. The associated termcap code is always equal to
|
||||||
the last two characters of the option name. Only one termcap code is
|
the last two characters of the option name. Only one termcap code is
|
||||||
required: Cursor motion, 't_cm'.
|
required: Cursor motion, 't_cm'.
|
||||||
|
@ -5075,7 +5075,7 @@ Various improvements:
|
|||||||
used, remove the <CR> at the end of lines in [range].
|
used, remove the <CR> at the end of lines in [range].
|
||||||
A CTRL-Z at the end of the file is removed. If
|
A CTRL-Z at the end of the file is removed. If
|
||||||
[range] is omitted, or it is the whole file, and all
|
[range] is omitted, or it is the whole file, and all
|
||||||
lines end in <CR> 'textmode' is set. {not in Vi}
|
lines end in <CR> 'textmode' is set.
|
||||||
- Should integrate addstar() and file_pat_to_reg_pat().
|
- Should integrate addstar() and file_pat_to_reg_pat().
|
||||||
- When working over a serial line with 7 bit characters, remove meta
|
- When working over a serial line with 7 bit characters, remove meta
|
||||||
characters from 'isprint'.
|
characters from 'isprint'.
|
||||||
|
@ -19,26 +19,24 @@ The basics are explained in section |02.5| of the user manual.
|
|||||||
1. Undo and redo commands *undo-commands*
|
1. Undo and redo commands *undo-commands*
|
||||||
|
|
||||||
<Undo> or *undo* *<Undo>* *u*
|
<Undo> or *undo* *<Undo>* *u*
|
||||||
u Undo [count] changes. {Vi: only one level}
|
u Undo [count] changes.
|
||||||
|
|
||||||
*:u* *:un* *:undo*
|
*:u* *:un* *:undo*
|
||||||
:u[ndo] Undo one change. {Vi: only one level}
|
:u[ndo] Undo one change.
|
||||||
*E830*
|
*E830*
|
||||||
:u[ndo] {N} Jump to after change number {N}. See |undo-branches|
|
:u[ndo] {N} Jump to after change number {N}. See |undo-branches|
|
||||||
for the meaning of {N}. {not in Vi}
|
for the meaning of {N}.
|
||||||
|
|
||||||
*CTRL-R*
|
*CTRL-R*
|
||||||
CTRL-R Redo [count] changes which were undone. {Vi: redraw
|
CTRL-R Redo [count] changes which were undone.
|
||||||
screen}
|
|
||||||
|
|
||||||
*:red* *:redo* *redo*
|
*:red* *:redo* *redo*
|
||||||
:red[o] Redo one change which was undone. {Vi: no redo}
|
:red[o] Redo one change which was undone.
|
||||||
|
|
||||||
*U*
|
*U*
|
||||||
U Undo all latest changes on one line, the line where
|
U Undo all latest changes on one line, the line where
|
||||||
the latest change was made. |U| itself also counts as
|
the latest change was made. |U| itself also counts as
|
||||||
a change, and thus |U| undoes a previous |U|.
|
a change, and thus |U| undoes a previous |U|.
|
||||||
{Vi: while not moved off of the last modified line}
|
|
||||||
|
|
||||||
The last changes are remembered. You can use the undo and redo commands above
|
The last changes are remembered. You can use the undo and redo commands above
|
||||||
to revert the text to how it was before each change. You can also apply the
|
to revert the text to how it was before each change. You can also apply the
|
||||||
@ -95,7 +93,6 @@ change but joins in with the previous change use this command:
|
|||||||
Warning: Use with care, it may prevent the user from
|
Warning: Use with care, it may prevent the user from
|
||||||
properly undoing changes. Don't use this after undo
|
properly undoing changes. Don't use this after undo
|
||||||
or redo.
|
or redo.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
This is most useful when you need to prompt the user halfway through a change.
|
This is most useful when you need to prompt the user halfway through a change.
|
||||||
For example in a function that calls |getchar()|. Do make sure that there was
|
For example in a function that calls |getchar()|. Do make sure that there was
|
||||||
@ -151,7 +148,7 @@ This is explained in the user manual: |usr_32.txt|.
|
|||||||
|
|
||||||
*g-*
|
*g-*
|
||||||
g- Go to older text state. With a count repeat that many
|
g- Go to older text state. With a count repeat that many
|
||||||
times. {not in Vi}
|
times.
|
||||||
*:ea* *:earlier*
|
*:ea* *:earlier*
|
||||||
:earlier {count} Go to older text state {count} times.
|
:earlier {count} Go to older text state {count} times.
|
||||||
:earlier {N}s Go to older text state about {N} seconds before.
|
:earlier {N}s Go to older text state about {N} seconds before.
|
||||||
@ -170,7 +167,7 @@ g- Go to older text state. With a count repeat that many
|
|||||||
|
|
||||||
*g+*
|
*g+*
|
||||||
g+ Go to newer text state. With a count repeat that many
|
g+ Go to newer text state. With a count repeat that many
|
||||||
times. {not in Vi}
|
times.
|
||||||
*:lat* *:later*
|
*:lat* *:later*
|
||||||
:later {count} Go to newer text state {count} times.
|
:later {count} Go to newer text state {count} times.
|
||||||
:later {N}s Go to newer text state about {N} seconds later.
|
:later {N}s Go to newer text state about {N} seconds later.
|
||||||
@ -271,10 +268,8 @@ respectively:
|
|||||||
the existing file and then creating a new file with the same
|
the existing file and then creating a new file with the same
|
||||||
name. So it is not possible to overwrite an existing undofile
|
name. So it is not possible to overwrite an existing undofile
|
||||||
in a write-protected directory.
|
in a write-protected directory.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
:rundo {file} Read undo history from {file}.
|
:rundo {file} Read undo history from {file}.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
You can use these in autocommands to explicitly specify the name of the
|
You can use these in autocommands to explicitly specify the name of the
|
||||||
history file. E.g.: >
|
history file. E.g.: >
|
||||||
@ -358,13 +353,13 @@ information you can use these commands: >
|
|||||||
:unlet old_undolevels
|
:unlet old_undolevels
|
||||||
|
|
||||||
Marks for the buffer ('a to 'z) are also saved and restored, together with the
|
Marks for the buffer ('a to 'z) are also saved and restored, together with the
|
||||||
text. {Vi does this a little bit different}
|
text.
|
||||||
|
|
||||||
When all changes have been undone, the buffer is not considered to be changed.
|
When all changes have been undone, the buffer is not considered to be changed.
|
||||||
It is then possible to exit Vim with ":q" instead of ":q!" {not in Vi}. Note
|
It is then possible to exit Vim with ":q" instead of ":q!".
|
||||||
that this is relative to the last write of the file. Typing "u" after ":w"
|
Note that this is relative to the last write of the file. Typing "u" after
|
||||||
actually changes the buffer, compared to what was written, so the buffer is
|
":w" actually changes the buffer, compared to what was written, so the buffer
|
||||||
considered changed then.
|
is considered changed then.
|
||||||
|
|
||||||
When manual |folding| is being used, the folds are not saved and restored.
|
When manual |folding| is being used, the folds are not saved and restored.
|
||||||
Only changes completely within a fold will keep the fold as it was, because
|
Only changes completely within a fold will keep the fold as it was, because
|
||||||
|
@ -54,7 +54,7 @@ ga Print the ascii value of the character under the
|
|||||||
<^@> 0, Hex 00, Octal 000 ~
|
<^@> 0, Hex 00, Octal 000 ~
|
||||||
If the character has composing characters these are
|
If the character has composing characters these are
|
||||||
also shown. The value of 'maxcombine' doesn't matter.
|
also shown. The value of 'maxcombine' doesn't matter.
|
||||||
Mnemonic: Get Ascii value. {not in Vi}
|
Mnemonic: Get ASCII value.
|
||||||
|
|
||||||
*g8*
|
*g8*
|
||||||
g8 Print the hex values of the bytes used in the
|
g8 Print the hex values of the bytes used in the
|
||||||
@ -63,8 +63,6 @@ g8 Print the hex values of the bytes used in the
|
|||||||
value of 'maxcombine' doesn't matter.
|
value of 'maxcombine' doesn't matter.
|
||||||
Example of a character with two composing characters:
|
Example of a character with two composing characters:
|
||||||
e0 b8 81 + e0 b8 b9 + e0 b9 89 ~
|
e0 b8 81 + e0 b8 b9 + e0 b9 89 ~
|
||||||
{not in Vi} {only when compiled with the |+multi_byte|
|
|
||||||
feature}
|
|
||||||
|
|
||||||
*8g8*
|
*8g8*
|
||||||
8g8 Find an illegal UTF-8 byte sequence at or after the
|
8g8 Find an illegal UTF-8 byte sequence at or after the
|
||||||
@ -79,8 +77,6 @@ g8 Print the hex values of the bytes used in the
|
|||||||
Note that when the cursor is on an illegal byte or the
|
Note that when the cursor is on an illegal byte or the
|
||||||
cursor is halfway through a multi-byte character the
|
cursor is halfway through a multi-byte character the
|
||||||
command won't move the cursor.
|
command won't move the cursor.
|
||||||
{not in Vi} {only when compiled with the |+multi_byte|
|
|
||||||
feature}
|
|
||||||
|
|
||||||
*:p* *:pr* *:print* *E749*
|
*:p* *:pr* *:print* *E749*
|
||||||
:[range]p[rint] [flags]
|
:[range]p[rint] [flags]
|
||||||
@ -205,9 +201,7 @@ g8 Print the hex values of the bytes used in the
|
|||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
:exe "normal \<c-w>\<c-w>"
|
:exe "normal \<c-w>\<c-w>"
|
||||||
< {not in Vi, of course}
|
<
|
||||||
{not available when the |+ex_extra| feature was
|
|
||||||
disabled at compile time}
|
|
||||||
|
|
||||||
:{range}norm[al][!] {commands} *:normal-range*
|
:{range}norm[al][!] {commands} *:normal-range*
|
||||||
Execute Normal mode commands {commands} for each line
|
Execute Normal mode commands {commands} for each line
|
||||||
@ -215,9 +209,6 @@ g8 Print the hex values of the bytes used in the
|
|||||||
cursor is positioned in the first column of the range,
|
cursor is positioned in the first column of the range,
|
||||||
for each line. Otherwise it's the same as the
|
for each line. Otherwise it's the same as the
|
||||||
":normal" command without a range.
|
":normal" command without a range.
|
||||||
{not in Vi}
|
|
||||||
{not available when |+ex_extra| feature was disabled
|
|
||||||
at compile time}
|
|
||||||
|
|
||||||
*:sh* *:shell* *E371* *E360*
|
*:sh* *:shell* *E371* *E360*
|
||||||
:sh[ell] Removed. |vim-differences| {Nvim}
|
:sh[ell] Removed. |vim-differences| {Nvim}
|
||||||
@ -389,9 +380,7 @@ N *+persistent_undo* Persistent undo |undo-persistence|
|
|||||||
N *+printer* |:hardcopy| command
|
N *+printer* |:hardcopy| command
|
||||||
H *+profile* |:profile| command
|
H *+profile* |:profile| command
|
||||||
m *+python* Python 2 interface |python|
|
m *+python* Python 2 interface |python|
|
||||||
m *+python/dyn* Python 2 interface |python-dynamic| |/dyn|
|
|
||||||
m *+python3* Python 3 interface |python|
|
m *+python3* Python 3 interface |python|
|
||||||
m *+python3/dyn* Python 3 interface |python-dynamic| |/dyn|
|
|
||||||
N *+quickfix* |:make| and |quickfix| commands
|
N *+quickfix* |:make| and |quickfix| commands
|
||||||
N *+reltime* |reltime()| function, 'hlsearch'/'incsearch' timeout,
|
N *+reltime* |reltime()| function, 'hlsearch'/'incsearch' timeout,
|
||||||
'redrawtime' option
|
'redrawtime' option
|
||||||
@ -442,7 +431,7 @@ N *+X11* Unix only: can restore window title |X11|
|
|||||||
:ve[rsion] {nr} Is now ignored. This was previously used to check the
|
:ve[rsion] {nr} Is now ignored. This was previously used to check the
|
||||||
version number of a .vimrc file. It was removed,
|
version number of a .vimrc file. It was removed,
|
||||||
because you can now use the ":if" command for
|
because you can now use the ":if" command for
|
||||||
version-dependent behavior. {not in Vi}
|
version-dependent behavior.
|
||||||
|
|
||||||
*:redi* *:redir*
|
*:redi* *:redir*
|
||||||
:redi[r][!] > {file} Redirect messages to file {file}. The messages which
|
:redi[r][!] > {file} Redirect messages to file {file}. The messages which
|
||||||
@ -459,31 +448,28 @@ N *+X11* Unix only: can restore window title |X11|
|
|||||||
with ":silent call Function()".
|
with ":silent call Function()".
|
||||||
An alternative is to use the 'verbosefile' option,
|
An alternative is to use the 'verbosefile' option,
|
||||||
this can be used in combination with ":redir".
|
this can be used in combination with ":redir".
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
:redi[r] >> {file} Redirect messages to file {file}. Append if {file}
|
:redi[r] >> {file} Redirect messages to file {file}. Append if {file}
|
||||||
already exists. {not in Vi}
|
already exists.
|
||||||
|
|
||||||
:redi[r] @{a-zA-Z}
|
:redi[r] @{a-zA-Z}
|
||||||
:redi[r] @{a-zA-Z}> Redirect messages to register {a-z}. Append to the
|
:redi[r] @{a-zA-Z}> Redirect messages to register {a-z}. Append to the
|
||||||
contents of the register if its name is given
|
contents of the register if its name is given
|
||||||
uppercase {A-Z}. The ">" after the register name is
|
uppercase {A-Z}. The ">" after the register name is
|
||||||
optional. {not in Vi}
|
optional.
|
||||||
:redi[r] @{a-z}>> Append messages to register {a-z}. {not in Vi}
|
:redi[r] @{a-z}>> Append messages to register {a-z}.
|
||||||
|
|
||||||
:redi[r] @*>
|
:redi[r] @*>
|
||||||
:redi[r] @+> Redirect messages to the selection or clipboard. For
|
:redi[r] @+> Redirect messages to the selection or clipboard. For
|
||||||
backward compatibility, the ">" after the register
|
backward compatibility, the ">" after the register
|
||||||
name can be omitted. See |quotestar| and |quoteplus|.
|
name can be omitted. See |quotestar| and |quoteplus|.
|
||||||
{not in Vi}
|
|
||||||
:redi[r] @*>>
|
:redi[r] @*>>
|
||||||
:redi[r] @+>> Append messages to the selection or clipboard.
|
:redi[r] @+>> Append messages to the selection or clipboard.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
:redi[r] @"> Redirect messages to the unnamed register. For
|
:redi[r] @"> Redirect messages to the unnamed register. For
|
||||||
backward compatibility, the ">" after the register
|
backward compatibility, the ">" after the register
|
||||||
name can be omitted. {not in Vi}
|
name can be omitted.
|
||||||
:redi[r] @">> Append messages to the unnamed register. {not in Vi}
|
:redi[r] @">> Append messages to the unnamed register.
|
||||||
|
|
||||||
:redi[r] => {var} Redirect messages to a variable. If the variable
|
:redi[r] => {var} Redirect messages to a variable. If the variable
|
||||||
doesn't exist, then it is created. If the variable
|
doesn't exist, then it is created. If the variable
|
||||||
@ -492,12 +478,12 @@ N *+X11* Unix only: can restore window title |X11|
|
|||||||
Only string variables can be used. After the
|
Only string variables can be used. After the
|
||||||
redirection starts, if the variable is removed or
|
redirection starts, if the variable is removed or
|
||||||
locked or the variable type is changed, then further
|
locked or the variable type is changed, then further
|
||||||
command output messages will cause errors. {not in Vi}
|
command output messages will cause errors.
|
||||||
|
|
||||||
:redi[r] =>> {var} Append messages to an existing variable. Only string
|
:redi[r] =>> {var} Append messages to an existing variable. Only string
|
||||||
variables can be used. {not in Vi}
|
variables can be used.
|
||||||
|
|
||||||
:redi[r] END End redirecting messages. {not in Vi}
|
:redi[r] END End redirecting messages.
|
||||||
|
|
||||||
*:sil* *:silent*
|
*:sil* *:silent*
|
||||||
:sil[ent][!] {command} Execute {command} silently. Normal messages will not
|
:sil[ent][!] {command} Execute {command} silently. Normal messages will not
|
||||||
@ -600,12 +586,11 @@ K Run a program to lookup the keyword under the
|
|||||||
< - When 'keywordprg' is equal to "man -s", a count
|
< - When 'keywordprg' is equal to "man -s", a count
|
||||||
before "K" is inserted after the "-s". If there is
|
before "K" is inserted after the "-s". If there is
|
||||||
no count, the "-s" is removed.
|
no count, the "-s" is removed.
|
||||||
{not in Vi}
|
|
||||||
|
|
||||||
*v_K*
|
*v_K*
|
||||||
{Visual}K Like "K", but use the visually highlighted text for
|
{Visual}K Like "K", but use the visually highlighted text for
|
||||||
the keyword. Only works when the highlighted text is
|
the keyword. Only works when the highlighted text is
|
||||||
not more than one line. {not in Vi}
|
not more than one line.
|
||||||
|
|
||||||
[N]gs *gs* *:sl* *:sleep*
|
[N]gs *gs* *:sl* *:sleep*
|
||||||
:[N]sl[eep] [N] [m] Do nothing for [N] seconds. When [m] is included,
|
:[N]sl[eep] [N] [m] Do nothing for [N] seconds. When [m] is included,
|
||||||
@ -618,7 +603,7 @@ K Run a program to lookup the keyword under the
|
|||||||
< Can be interrupted with CTRL-C (CTRL-Break on MS-DOS).
|
< Can be interrupted with CTRL-C (CTRL-Break on MS-DOS).
|
||||||
"gs" stands for "goto sleep".
|
"gs" stands for "goto sleep".
|
||||||
While sleeping the cursor is positioned in the text,
|
While sleeping the cursor is positioned in the text,
|
||||||
if at a visible position. {not in Vi}
|
if at a visible position.
|
||||||
|
|
||||||
|
|
||||||
*g_CTRL-A*
|
*g_CTRL-A*
|
||||||
|
@ -20,10 +20,6 @@ This is introduced in section |04.4| of the user manual.
|
|||||||
7. Examples |visual-examples|
|
7. Examples |visual-examples|
|
||||||
8. Select mode |Select-mode|
|
8. Select mode |Select-mode|
|
||||||
|
|
||||||
{Vi has no Visual mode, the name "visual" is used for Normal mode, to
|
|
||||||
distinguish it from Ex mode}
|
|
||||||
{Since Vim 7.4.200 the |+visual| feature is always included}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Using Visual mode *visual-use*
|
1. Using Visual mode *visual-use*
|
||||||
|
|
||||||
|
@ -26,12 +26,6 @@ The basics are explained in chapter 7 and 8 of the user manual |usr_07.txt|
|
|||||||
11. Using hidden buffers |buffer-hidden|
|
11. Using hidden buffers |buffer-hidden|
|
||||||
12. Special kinds of buffers |special-buffers|
|
12. Special kinds of buffers |special-buffers|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
|
||||||
{not able to use multiple windows when the |+windows| feature was disabled at
|
|
||||||
compile time}
|
|
||||||
{not able to use vertically split windows when the |+vertsplit| feature was
|
|
||||||
disabled at compile time}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Introduction *windows-intro* *window*
|
1. Introduction *windows-intro* *window*
|
||||||
|
|
||||||
@ -710,8 +704,6 @@ can also get to them with the buffer list commands, like ":bnext".
|
|||||||
the current window.
|
the current window.
|
||||||
{cmd} can contain '|' to concatenate several commands.
|
{cmd} can contain '|' to concatenate several commands.
|
||||||
{cmd} must not open or close windows or reorder them.
|
{cmd} must not open or close windows or reorder them.
|
||||||
{not in Vi} {not available when compiled without the
|
|
||||||
|+listcmds| feature}
|
|
||||||
Also see |:tabdo|, |:argdo| and |:bufdo|.
|
Also see |:tabdo|, |:argdo| and |:bufdo|.
|
||||||
|
|
||||||
*:bufdo*
|
*:bufdo*
|
||||||
@ -738,8 +730,6 @@ can also get to them with the buffer list commands, like ":bnext".
|
|||||||
autocommand event is disabled by adding it to
|
autocommand event is disabled by adding it to
|
||||||
'eventignore'. This considerably speeds up editing
|
'eventignore'. This considerably speeds up editing
|
||||||
each buffer.
|
each buffer.
|
||||||
{not in Vi} {not available when compiled without the
|
|
||||||
|+listcmds| feature}
|
|
||||||
Also see |:tabdo|, |:argdo| and |:windo|.
|
Also see |:tabdo|, |:argdo| and |:windo|.
|
||||||
|
|
||||||
Examples: >
|
Examples: >
|
||||||
@ -858,7 +848,7 @@ CTRL-W CTRL-Z *CTRL-W_CTRL-Z* *:pc* *:pclose*
|
|||||||
*:pp* *:ppop*
|
*:pp* *:ppop*
|
||||||
:[count]pp[op][!]
|
:[count]pp[op][!]
|
||||||
Does ":[count]pop[!]" in the preview window. See |:pop| and
|
Does ":[count]pop[!]" in the preview window. See |:pop| and
|
||||||
|:ptag|. {not in Vi}
|
|:ptag|.
|
||||||
|
|
||||||
CTRL-W } *CTRL-W_}*
|
CTRL-W } *CTRL-W_}*
|
||||||
Use identifier under cursor as a tag and perform a :ptag on
|
Use identifier under cursor as a tag and perform a :ptag on
|
||||||
|
@ -23,8 +23,6 @@ You can avoid loading this plugin by setting the "loaded_matchit" variable
|
|||||||
in your |vimrc| file: >
|
in your |vimrc| file: >
|
||||||
:let loaded_matchit = 1
|
:let loaded_matchit = 1
|
||||||
|
|
||||||
{Vi does not have any of this}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Extended matching with "%" *matchit-intro*
|
1. Extended matching with "%" *matchit-intro*
|
||||||
|
|
||||||
|
@ -85,8 +85,6 @@ syn match helpSpecial "CTRL-PageDown"
|
|||||||
syn match helpSpecial "CTRL-Insert"
|
syn match helpSpecial "CTRL-Insert"
|
||||||
syn match helpSpecial "CTRL-Del"
|
syn match helpSpecial "CTRL-Del"
|
||||||
syn match helpSpecial "CTRL-{char}"
|
syn match helpSpecial "CTRL-{char}"
|
||||||
syn region helpNotVi start="{Vi[: ]" start="{not" start="{only" end="}" contains=helpLeadBlank,helpHyperTextJump
|
|
||||||
syn match helpLeadBlank "^\s\+" contained
|
|
||||||
|
|
||||||
" Highlight group items in their own color.
|
" Highlight group items in their own color.
|
||||||
syn match helpComment "\t[* ]Comment\t\+[a-z].*"
|
syn match helpComment "\t[* ]Comment\t\+[a-z].*"
|
||||||
@ -140,7 +138,6 @@ if v:lang =~ '\<IT\>' || v:lang =~ '_IT\>' || v:lang =~? "italian"
|
|||||||
syn match helpSpecial "Nmi"me=e-2
|
syn match helpSpecial "Nmi"me=e-2
|
||||||
syn match helpSpecial "Nmo"me=e-2
|
syn match helpSpecial "Nmo"me=e-2
|
||||||
syn match helpSpecial "\[interv.]"
|
syn match helpSpecial "\[interv.]"
|
||||||
syn region helpNotVi start="{non" start="{solo" start="{disponibile" end="}" contains=helpLeadBlank,helpHyperTextJump
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syn sync minlines=40
|
syn sync minlines=40
|
||||||
@ -161,7 +158,6 @@ hi def link helpVim Identifier
|
|||||||
hi def link helpCommand Comment
|
hi def link helpCommand Comment
|
||||||
hi def link helpExample Comment
|
hi def link helpExample Comment
|
||||||
hi def link helpOption Type
|
hi def link helpOption Type
|
||||||
hi def link helpNotVi Special
|
|
||||||
hi def link helpSpecial Special
|
hi def link helpSpecial Special
|
||||||
hi def link helpNote Todo
|
hi def link helpNote Todo
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user