mirror of
https://github.com/vim/vim.git
synced 2025-10-15 07:14:09 -04:00
runtime(doc): Add missing optional tail command-name specs
- Use the optional tail command-name specs at help entries for :keepalt, :lcd, :cfdo, :lfdo, :wundo, :rundo, :bdelete and :bunload. - Add missing shortname tags. closes: #18547 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
c7d6ec713e
commit
6800da6ff1
@@ -1,4 +1,4 @@
|
|||||||
*editing.txt* For Vim version 9.1. Last change: 2025 Sep 09
|
*editing.txt* For Vim version 9.1. Last change: 2025 Oct 11
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -40,8 +40,8 @@ the |CTRL-^| command to toggle between the current and the alternate file.
|
|||||||
However, the alternate file name is not changed when |:keepalt| is used.
|
However, the alternate file name is not changed when |:keepalt| is used.
|
||||||
An alternate file name is remembered for each window.
|
An alternate file name is remembered for each window.
|
||||||
|
|
||||||
*:keepalt* *:keepa*
|
*:keepa* *:keepalt*
|
||||||
:keepalt {cmd} Execute {cmd} while keeping the current alternate file
|
:keepa[lt] {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.
|
name.
|
||||||
@@ -1418,7 +1418,7 @@ present in 'cpoptions' and "!" is not used in the command.
|
|||||||
to another window will stop using {path}.
|
to another window will stop using {path}.
|
||||||
|
|
||||||
*:lcd-*
|
*:lcd-*
|
||||||
:lcd[!] - Change to the previous current directory, before the
|
:lc[d][!] - Change to the previous current directory, before the
|
||||||
last ":lcd {path}" command.
|
last ":lcd {path}" command.
|
||||||
|
|
||||||
*:lch* *:lchdir*
|
*:lch* *:lchdir*
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*quickfix.txt* For Vim version 9.1. Last change: 2025 Sep 24
|
*quickfix.txt* For Vim version 9.1. Last change: 2025 Oct 11
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -516,8 +516,8 @@ EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
|
|||||||
Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
|
Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
|
||||||
|:ldo|, |:cfdo| and |:lfdo|.
|
|:ldo|, |:cfdo| and |:lfdo|.
|
||||||
|
|
||||||
*:cfdo*
|
*:cfd* *:cfdo*
|
||||||
:cfdo[!] {cmd} Execute {cmd} in each file in the quickfix list.
|
:cfd[o][!] {cmd} Execute {cmd} in each file in the quickfix list.
|
||||||
It works like doing this: >
|
It works like doing this: >
|
||||||
:cfirst
|
:cfirst
|
||||||
:{cmd}
|
:{cmd}
|
||||||
@@ -526,7 +526,7 @@ EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
|
|||||||
etc.
|
etc.
|
||||||
< Otherwise it works the same as `:cdo`.
|
< Otherwise it works the same as `:cdo`.
|
||||||
|
|
||||||
*:ldo*
|
*:ld* *:ldo*
|
||||||
:ld[o][!] {cmd} Execute {cmd} in each valid entry in the location list
|
:ld[o][!] {cmd} Execute {cmd} in each valid entry in the location list
|
||||||
for the current window.
|
for the current window.
|
||||||
It works like doing this: >
|
It works like doing this: >
|
||||||
@@ -538,8 +538,8 @@ EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
|
|||||||
< Only valid entries in the location list are used.
|
< Only valid entries in the location list are used.
|
||||||
Otherwise it works the same as `:cdo`.
|
Otherwise it works the same as `:cdo`.
|
||||||
|
|
||||||
*:lfdo*
|
*:lfd* *:lfdo*
|
||||||
:lfdo[!] {cmd} Execute {cmd} in each file in the location list for
|
:lfd[o][!] {cmd} Execute {cmd} in each file in the location list for
|
||||||
the current window.
|
the current window.
|
||||||
It works like doing this: >
|
It works like doing this: >
|
||||||
:lfirst
|
:lfirst
|
||||||
|
@@ -2425,6 +2425,7 @@ $quote eval.txt /*$quote*
|
|||||||
:cex quickfix.txt /*:cex*
|
:cex quickfix.txt /*:cex*
|
||||||
:cexpr quickfix.txt /*:cexpr*
|
:cexpr quickfix.txt /*:cexpr*
|
||||||
:cf quickfix.txt /*:cf*
|
:cf quickfix.txt /*:cf*
|
||||||
|
:cfd quickfix.txt /*:cfd*
|
||||||
:cfdo quickfix.txt /*:cfdo*
|
:cfdo quickfix.txt /*:cfdo*
|
||||||
:cfi quickfix.txt /*:cfi*
|
:cfi quickfix.txt /*:cfi*
|
||||||
:cfile quickfix.txt /*:cfile*
|
:cfile quickfix.txt /*:cfile*
|
||||||
@@ -2847,6 +2848,7 @@ $quote eval.txt /*$quote*
|
|||||||
:lclose quickfix.txt /*:lclose*
|
:lclose quickfix.txt /*:lclose*
|
||||||
:lcs if_cscop.txt /*:lcs*
|
:lcs if_cscop.txt /*:lcs*
|
||||||
:lcscope if_cscop.txt /*:lcscope*
|
:lcscope if_cscop.txt /*:lcscope*
|
||||||
|
:ld quickfix.txt /*:ld*
|
||||||
:ldo quickfix.txt /*:ldo*
|
:ldo quickfix.txt /*:ldo*
|
||||||
:le change.txt /*:le*
|
:le change.txt /*:le*
|
||||||
:left change.txt /*:left*
|
:left change.txt /*:left*
|
||||||
@@ -2874,6 +2876,7 @@ $quote eval.txt /*$quote*
|
|||||||
:lex quickfix.txt /*:lex*
|
:lex quickfix.txt /*:lex*
|
||||||
:lexpr quickfix.txt /*:lexpr*
|
:lexpr quickfix.txt /*:lexpr*
|
||||||
:lf quickfix.txt /*:lf*
|
:lf quickfix.txt /*:lf*
|
||||||
|
:lfd quickfix.txt /*:lfd*
|
||||||
:lfdo quickfix.txt /*:lfdo*
|
:lfdo quickfix.txt /*:lfdo*
|
||||||
:lfi quickfix.txt /*:lfi*
|
:lfi quickfix.txt /*:lfi*
|
||||||
:lfile quickfix.txt /*:lfile*
|
:lfile quickfix.txt /*:lfile*
|
||||||
@@ -3227,6 +3230,7 @@ $quote eval.txt /*$quote*
|
|||||||
:rubydo if_ruby.txt /*:rubydo*
|
:rubydo if_ruby.txt /*:rubydo*
|
||||||
:rubyf if_ruby.txt /*:rubyf*
|
:rubyf if_ruby.txt /*:rubyf*
|
||||||
:rubyfile if_ruby.txt /*:rubyfile*
|
:rubyfile if_ruby.txt /*:rubyfile*
|
||||||
|
:rund undo.txt /*:rund*
|
||||||
:rundo undo.txt /*:rundo*
|
:rundo undo.txt /*:rundo*
|
||||||
:runtime repeat.txt /*:runtime*
|
:runtime repeat.txt /*:runtime*
|
||||||
:rv starting.txt /*:rv*
|
:rv starting.txt /*:rv*
|
||||||
@@ -3720,6 +3724,7 @@ $quote eval.txt /*$quote*
|
|||||||
:write_a editing.txt /*:write_a*
|
:write_a editing.txt /*:write_a*
|
||||||
:write_c editing.txt /*:write_c*
|
:write_c editing.txt /*:write_c*
|
||||||
:write_f editing.txt /*:write_f*
|
:write_f editing.txt /*:write_f*
|
||||||
|
:wu undo.txt /*:wu*
|
||||||
:wundo undo.txt /*:wundo*
|
:wundo undo.txt /*:wundo*
|
||||||
:wv starting.txt /*:wv*
|
:wv starting.txt /*:wv*
|
||||||
:wviminfo starting.txt /*:wviminfo*
|
:wviminfo starting.txt /*:wviminfo*
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*undo.txt* For Vim version 9.1. Last change: 2024 Nov 09
|
*undo.txt* For Vim version 9.1. Last change: 2025 Oct 11
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -278,8 +278,8 @@ guaranteed.
|
|||||||
|
|
||||||
You can also save and restore undo histories by using ":wundo" and ":rundo"
|
You can also save and restore undo histories by using ":wundo" and ":rundo"
|
||||||
respectively:
|
respectively:
|
||||||
*:wundo* *:rundo*
|
*:wu* *:wundo*
|
||||||
:wundo[!] {file}
|
:wu[ndo][!] {file}
|
||||||
Write undo history to {file}.
|
Write undo history to {file}.
|
||||||
When {file} exists and it does not look like an undo file
|
When {file} exists and it does not look like an undo file
|
||||||
(the magic number at the start of the file is wrong), then
|
(the magic number at the start of the file is wrong), then
|
||||||
@@ -292,7 +292,8 @@ respectively:
|
|||||||
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.
|
||||||
|
|
||||||
:rundo {file} Read undo history from {file}.
|
*:rund* *:rundo*
|
||||||
|
:rund[o] {file} Read undo history from {file}.
|
||||||
|
|
||||||
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.: >
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
*windows.txt* For Vim version 9.1. Last change: 2025 Apr 30
|
*windows.txt* For Vim version 9.1. Last change: 2025 Oct 11
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -1223,17 +1223,18 @@ list of buffers. |unlisted-buffer|
|
|||||||
:%bdelete " delete all buffers
|
:%bdelete " delete all buffers
|
||||||
<
|
<
|
||||||
|
|
||||||
:bdelete[!] {bufname} *E93* *E94*
|
:bd[elete][!] {bufname} *E93* *E94*
|
||||||
Like ":bdelete[!] [N]", but buffer given by name, see
|
Like ":bdelete[!] [N]", but buffer given by name, see
|
||||||
|{bufname}|.
|
|{bufname}|.
|
||||||
|
|
||||||
:bdelete[!] N1 N2 ...
|
:bd[elete][!] N1 N2 ...
|
||||||
Do ":bdelete[!]" for buffer N1, N2, etc. The arguments can be
|
Do ":bdelete[!]" for buffer N1, N2, etc. The arguments can be
|
||||||
buffer numbers or buffer names (but not buffer names that are
|
buffer numbers or buffer names (but not buffer names that are
|
||||||
a number). Insert a backslash before a space in a buffer
|
a number). Insert a backslash before a space in a buffer
|
||||||
name.
|
name.
|
||||||
|
|
||||||
:N,Mbdelete[!] Do ":bdelete[!]" for all buffers in the range N to M
|
:N,Mbd[elete][!]
|
||||||
|
Do ":bdelete[!]" for all buffers in the range N to M
|
||||||
|inclusive|.
|
|inclusive|.
|
||||||
|
|
||||||
:[N]bw[ipeout][!] *:bw* *:bwipe* *:bwipeout* *E517*
|
:[N]bw[ipeout][!] *:bw* *:bwipe* *:bwipeout* *E517*
|
||||||
@@ -1262,14 +1263,15 @@ list of buffers. |unlisted-buffer|
|
|||||||
This is the most recent entry in the jump list that points
|
This is the most recent entry in the jump list that points
|
||||||
into a loaded buffer.
|
into a loaded buffer.
|
||||||
|
|
||||||
:bunload[!] {bufname}
|
:bun[load][!] {bufname}
|
||||||
Like ":bunload[!] [N]", but buffer given by name.
|
Like ":bunload[!] [N]", but buffer given by name.
|
||||||
Also see |{bufname}|.
|
Also see |{bufname}|.
|
||||||
|
|
||||||
:N,Mbunload[!] Do ":bunload[!]" for all buffers in the range N to M
|
:N,Mbun[load][!]
|
||||||
|
Do ":bunload[!]" for all buffers in the range N to M
|
||||||
|inclusive|.
|
|inclusive|.
|
||||||
|
|
||||||
:bunload[!] N1 N2 ...
|
:bun[load][!] N1 N2 ...
|
||||||
Do ":bunload[!]" for buffer N1, N2, etc. The arguments can be
|
Do ":bunload[!]" for buffer N1, N2, etc. The arguments can be
|
||||||
buffer numbers or buffer names (but not buffer names that are
|
buffer numbers or buffer names (but not buffer names that are
|
||||||
a number). Insert a backslash before a space in a buffer
|
a number). Insert a backslash before a space in a buffer
|
||||||
|
Reference in New Issue
Block a user