Small doc patches

7 views
Skip to first unread message

Christian Brabandt

unread,
Apr 23, 2020, 10:02:01 AM4/23/20
to vim...@vim.org
Hi Bram,
I noticed that `:terminal` command is missing from the list at :h :bar

diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt
index a01d4b97f..41e4d4aee 100644
--- a/runtime/doc/cmdline.txt
+++ b/runtime/doc/cmdline.txt
@@ -614,6 +614,7 @@ followed by another Vim command:
:sign
:tcl
:tcldo
+ :terminal
:tclfile
:vglobal
:windo


Also I think, it would be nice to have a help tag for command modifiers.
I am not exactly sure, where it should be, but I think the list at :h
<mods> can be re-used. Or should we have an extra list with all
supported command modifiers? Let me know what you think.

diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index bf643c0ff..6916fcd97 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1492,7 +1492,7 @@ The valid escape sequences are
<bang> (See the '-bang' attribute) Expands to a ! if the
command was executed with a ! modifier, otherwise
expands to nothing.
- *<mods>*
+ *<mods>* *:command-modifiers*
<mods> The command modifiers, if specified. Otherwise, expands to
nothing. Supported modifiers are |:aboveleft|, |:belowright|,
|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,


Thanks,
Christian
--
Ich glaube, daß ich nichts glaube.

Bram Moolenaar

unread,
Apr 23, 2020, 10:21:36 AM4/23/20
to vim...@googlegroups.com, Christian Brabandt, vim...@vim.org

Christian -

> I noticed that `:terminal` command is missing from the list at :h :bar
>
> diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt
> index a01d4b97f..41e4d4aee 100644
> --- a/runtime/doc/cmdline.txt
> +++ b/runtime/doc/cmdline.txt
> @@ -614,6 +614,7 @@ followed by another Vim command:
> :sign
> :tcl
> :tcldo
> + :terminal
> :tclfile
> :vglobal
> :windo

OK. Also, there is no mention of :terminal including the bar in the
command argument, I'll add that.

> Also I think, it would be nice to have a help tag for command modifiers.
> I am not exactly sure, where it should be, but I think the list at :h
> <mods> can be re-used. Or should we have an extra list with all
> supported command modifiers? Let me know what you think.
>
> diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
> index bf643c0ff..6916fcd97 100644
> --- a/runtime/doc/map.txt
> +++ b/runtime/doc/map.txt
> @@ -1492,7 +1492,7 @@ The valid escape sequences are
> <bang> (See the '-bang' attribute) Expands to a ! if the
> command was executed with a ! modifier, otherwise
> expands to nothing.
> - *<mods>*
> + *<mods>* *:command-modifiers*
> <mods> The command modifiers, if specified. Otherwise, expands to
> nothing. Supported modifiers are |:aboveleft|, |:belowright|,
> |:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,

There doesn't appear to be another place that mentions command modifiers
in general. So this is probably the best place.

--
login: yes
password: I don't know, please tell me
password is incorrect
login: yes
password: incorrect

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages