mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
runtime(doc): fix inconsistent indent (#14089)
Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
a2ebb6e917
commit
d086b8f646
@ -496,7 +496,7 @@ g:changelog_new_date_format
|
|||||||
%% insert a single '%' character
|
%% insert a single '%' character
|
||||||
%d insert the date from above
|
%d insert the date from above
|
||||||
%u insert the user from above
|
%u insert the user from above
|
||||||
%p insert result of b:changelog_entry_prefix
|
%p insert result of b:changelog_entry_prefix
|
||||||
%c where to position cursor when done
|
%c where to position cursor when done
|
||||||
The default is "%d %u\n\n\t* %p%c\n\n", which produces
|
The default is "%d %u\n\n\t* %p%c\n\n", which produces
|
||||||
something like (| is where cursor will be, unless at
|
something like (| is where cursor will be, unless at
|
||||||
@ -510,7 +510,7 @@ g:changelog_new_entry_format
|
|||||||
The format used when creating a new entry.
|
The format used when creating a new entry.
|
||||||
The following table describes special tokens in the
|
The following table describes special tokens in the
|
||||||
string:
|
string:
|
||||||
%p insert result of b:changelog_entry_prefix
|
%p insert result of b:changelog_entry_prefix
|
||||||
%c where to position cursor when done
|
%c where to position cursor when done
|
||||||
The default is "\t*%c", which produces something
|
The default is "\t*%c", which produces something
|
||||||
similar to >
|
similar to >
|
||||||
|
@ -172,7 +172,7 @@ GNAT OBJECT ~
|
|||||||
*g:gnat.Make()*
|
*g:gnat.Make()*
|
||||||
g:gnat.Make()
|
g:gnat.Make()
|
||||||
Calls |g:gnat.Make_Command| and displays the result inside a
|
Calls |g:gnat.Make_Command| and displays the result inside a
|
||||||
|quickfix| window.
|
|quickfix| window.
|
||||||
|
|
||||||
*g:gnat.Pretty()*
|
*g:gnat.Pretty()*
|
||||||
g:gnat.Pretty()
|
g:gnat.Pretty()
|
||||||
|
@ -371,7 +371,7 @@ This command breaks down as: >
|
|||||||
'sqlKeyword' - Display the items for the sqlKeyword highlight
|
'sqlKeyword' - Display the items for the sqlKeyword highlight
|
||||||
group
|
group
|
||||||
'sqlKeyword\w*' - A second option available with Vim 7.4 which
|
'sqlKeyword\w*' - A second option available with Vim 7.4 which
|
||||||
uses a regular expression to determine which
|
uses a regular expression to determine which
|
||||||
syntax groups to use
|
syntax groups to use
|
||||||
)<CR> - Execute the :let command
|
)<CR> - Execute the :let command
|
||||||
<C-X><C-O> - Trigger the standard omni completion key stroke.
|
<C-X><C-O> - Trigger the standard omni completion key stroke.
|
||||||
|
@ -39,9 +39,9 @@ instance), code similar to the following should be used:
|
|||||||
$vim = new Win32::OLE 'Vim.Application';
|
$vim = new Win32::OLE 'Vim.Application';
|
||||||
|
|
||||||
[C#] >
|
[C#] >
|
||||||
// Add a reference to Vim in your project.
|
// Add a reference to Vim in your project.
|
||||||
// Choose the COM tab.
|
// Choose the COM tab.
|
||||||
// Select "Vim Ole Interface 1.1 Type Library"
|
// Select "Vim Ole Interface 1.1 Type Library"
|
||||||
Vim.Vim vimobj = new Vim.Vim();
|
Vim.Vim vimobj = new Vim.Vim();
|
||||||
|
|
||||||
Vim does not support acting as a "hidden" OLE server, like some other OLE
|
Vim does not support acting as a "hidden" OLE server, like some other OLE
|
||||||
|
@ -592,7 +592,7 @@ displayed in the first line. Also a key map will also display where it was
|
|||||||
last defined. Example: >
|
last defined. Example: >
|
||||||
|
|
||||||
:verbose map <C-W>*
|
:verbose map <C-W>*
|
||||||
Kitty keyboard protocol: Cleared
|
Kitty keyboard protocol: Cleared
|
||||||
n <C-W>* * <C-W><C-S>*
|
n <C-W>* * <C-W><C-S>*
|
||||||
Last set from /home/abcd/.vimrc
|
Last set from /home/abcd/.vimrc
|
||||||
|
|
||||||
|
@ -366,14 +366,14 @@ created, thus they behave slightly differently:
|
|||||||
shown (but that might change in the future).
|
shown (but that might change in the future).
|
||||||
|
|
||||||
:se[t] {option}< Set the effective value of {option} to its global
|
:se[t] {option}< Set the effective value of {option} to its global
|
||||||
value.
|
value.
|
||||||
For string |global-local| options, the local value is
|
For string |global-local| options, the local value is
|
||||||
removed, so that the global value will be used.
|
removed, so that the global value will be used.
|
||||||
For all other options, the global value is copied to
|
For all other options, the global value is copied to
|
||||||
the local value.
|
the local value.
|
||||||
|
|
||||||
:setl[ocal] {option}< Set the effective value of {option} to its global
|
:setl[ocal] {option}< Set the effective value of {option} to its global
|
||||||
value.
|
value.
|
||||||
For number and boolean |global-local| options, the
|
For number and boolean |global-local| options, the
|
||||||
local value is removed, so that the global value will
|
local value is removed, so that the global value will
|
||||||
be used.
|
be used.
|
||||||
@ -2932,7 +2932,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Use the indent heuristic for the internal
|
Use the indent heuristic for the internal
|
||||||
diff library.
|
diff library.
|
||||||
|
|
||||||
algorithm:{text} Use the specified diff algorithm with the
|
algorithm:{text} Use the specified diff algorithm with the
|
||||||
internal diff engine. Currently supported
|
internal diff engine. Currently supported
|
||||||
algorithms are:
|
algorithms are:
|
||||||
myers the default algorithm
|
myers the default algorithm
|
||||||
@ -6467,7 +6467,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
this option at the default "on". Only switch it off when working with
|
this option at the default "on". Only switch it off when working with
|
||||||
old Vi scripts.
|
old Vi scripts.
|
||||||
|
|
||||||
*'renderoptions'* *'rop'*
|
*'renderoptions'* *'rop'*
|
||||||
'renderoptions' 'rop' string (default: empty)
|
'renderoptions' 'rop' string (default: empty)
|
||||||
global
|
global
|
||||||
{only available when compiled with GUI and DIRECTX on
|
{only available when compiled with GUI and DIRECTX on
|
||||||
|
@ -753,7 +753,7 @@ Solution 2. Different directories: >
|
|||||||
$ say "IA64 platform"
|
$ say "IA64 platform"
|
||||||
$ define/nolog VIM RF10:[UTIL.IA64_EXE] ! IA64 executables
|
$ define/nolog VIM RF10:[UTIL.IA64_EXE] ! IA64 executables
|
||||||
$ endif
|
$ endif
|
||||||
$! VIMRUNTIME must be defined in order to find runtime files
|
$! VIMRUNTIME must be defined in order to find runtime files
|
||||||
$ define/nolog VIMRUNTIME RF10:[UTIL.VIM73]
|
$ define/nolog VIMRUNTIME RF10:[UTIL.VIM73]
|
||||||
|
|
||||||
A good example for this approach is the [GNU]gnu_tools.com script from
|
A good example for this approach is the [GNU]gnu_tools.com script from
|
||||||
|
@ -642,7 +642,7 @@ additional prompting.
|
|||||||
work with your ftp client. Otherwise the script will
|
work with your ftp client. Otherwise the script will
|
||||||
prompt for user-id and password.
|
prompt for user-id and password.
|
||||||
|
|
||||||
(*3) for ftp, "machine" may be machine#port or machine:port
|
(*3) for ftp, "machine" may be machine#port or machine:port
|
||||||
if a different port is needed than the standard ftp port
|
if a different port is needed than the standard ftp port
|
||||||
|
|
||||||
(*4) for http:..., if wget is available it will be used. Otherwise,
|
(*4) for http:..., if wget is available it will be used. Otherwise,
|
||||||
@ -788,7 +788,7 @@ below, a {netfile} is a URL to a remote file.
|
|||||||
(related: |netrw-userpass|)
|
(related: |netrw-userpass|)
|
||||||
|
|
||||||
:NetrwSettings This command is described in |netrw-settings| -- used to
|
:NetrwSettings This command is described in |netrw-settings| -- used to
|
||||||
display netrw settings and change netrw behavior.
|
display netrw settings and change netrw behavior.
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
@ -378,14 +378,14 @@ processing a quickfix or location list command, it will be aborted.
|
|||||||
List all errors.
|
List all errors.
|
||||||
|
|
||||||
:cl[ist]! +{count} List the current and next {count} error lines. This
|
:cl[ist]! +{count} List the current and next {count} error lines. This
|
||||||
is useful to see unrecognized lines after the current
|
is useful to see unrecognized lines after the current
|
||||||
one. For example, if ":clist" shows:
|
one. For example, if ":clist" shows:
|
||||||
8384 testje.java:252: error: cannot find symbol ~
|
8384 testje.java:252: error: cannot find symbol ~
|
||||||
Then using ":cl! +3" shows the reason:
|
Then using ":cl! +3" shows the reason:
|
||||||
8384 testje.java:252: error: cannot find symbol ~
|
8384 testje.java:252: error: cannot find symbol ~
|
||||||
8385: ZexitCode = Fmainx(); ~
|
8385: ZexitCode = Fmainx(); ~
|
||||||
8386: ^ ~
|
8386: ^ ~
|
||||||
8387: symbol: method Fmainx() ~
|
8387: symbol: method Fmainx() ~
|
||||||
|
|
||||||
:lli[st] [from] [, [to]] *:lli* *:llist*
|
:lli[st] [from] [, [to]] *:lli* *:llist*
|
||||||
Same as ":clist", except the location list for the
|
Same as ":clist", except the location list for the
|
||||||
|
@ -1025,17 +1025,17 @@ This can be used to pass the current directory from a shell to Vim.
|
|||||||
Put this in your .vimrc: >
|
Put this in your .vimrc: >
|
||||||
def g:Tapi_lcd(_, path: string)
|
def g:Tapi_lcd(_, path: string)
|
||||||
if isdirectory(path)
|
if isdirectory(path)
|
||||||
execute 'silent lcd ' .. fnameescape(path)
|
execute 'silent lcd ' .. fnameescape(path)
|
||||||
endif
|
endif
|
||||||
enddef
|
enddef
|
||||||
<
|
<
|
||||||
And, in a bash init file: >
|
And, in a bash init file: >
|
||||||
if [[ -n "$VIM_TERMINAL" ]]; then
|
if [[ -n "$VIM_TERMINAL" ]]; then
|
||||||
PROMPT_COMMAND='_vim_sync_PWD'
|
PROMPT_COMMAND='_vim_sync_PWD'
|
||||||
function _vim_sync_PWD() {
|
function _vim_sync_PWD() {
|
||||||
printf '\033]51;["call", "Tapi_lcd", "%q"]\007' "$PWD"
|
printf '\033]51;["call", "Tapi_lcd", "%q"]\007' "$PWD"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
<
|
<
|
||||||
Or, for zsh: >
|
Or, for zsh: >
|
||||||
if [[ -n "$VIM_TERMINAL" ]]; then
|
if [[ -n "$VIM_TERMINAL" ]]; then
|
||||||
@ -1403,8 +1403,8 @@ Other commands ~
|
|||||||
*:Asm* jump to the window with the disassembly, create it if there
|
*:Asm* jump to the window with the disassembly, create it if there
|
||||||
isn't one
|
isn't one
|
||||||
*:Var* jump to the window with the local and argument variables,
|
*:Var* jump to the window with the local and argument variables,
|
||||||
create it if there isn't one. This window updates whenever the
|
create it if there isn't one. This window updates whenever the
|
||||||
program is stopped
|
program is stopped
|
||||||
|
|
||||||
Events ~
|
Events ~
|
||||||
*termdebug-events*
|
*termdebug-events*
|
||||||
|
@ -2024,7 +2024,7 @@ Note that this does not work for variables, only for functions.
|
|||||||
*import-legacy* *legacy-import*
|
*import-legacy* *legacy-import*
|
||||||
`:import` can also be used in legacy Vim script. The imported namespace still
|
`:import` can also be used in legacy Vim script. The imported namespace still
|
||||||
becomes script-local, even when the "s:" prefix is not given. For example: >
|
becomes script-local, even when the "s:" prefix is not given. For example: >
|
||||||
import "myfile.vim"
|
import "myfile.vim"
|
||||||
call s:myfile.MyFunc()
|
call s:myfile.MyFunc()
|
||||||
|
|
||||||
And using the "as name" form: >
|
And using the "as name" form: >
|
||||||
|
Loading…
x
Reference in New Issue
Block a user