On Do, 10 Mai 2018, Bram Moolenaar wrote:
>
> Christian wrote:
>
> > On Mi, 09 Mai 2018, Bram Moolenaar wrote:
> >
> > > You can use Shift-Tab to go back to the uncompleted text (well, if
> > > shift-Tab works on the terminal).
> >
> > Is that documented somewhere?
>
> :he c_<S-Tab>
>
> CTRL-P also works. I actually need to use that sometimes over ssh.
,----
| <S-Tab> *c_CTRL-P* *c_<S-Tab>*
| CTRL-P After using 'wildchar' which got multiple matches, go to
| previous match. Otherwise recall older command-line from
| history. <S-Tab> only works with the GUI, on the Amiga and
| with MS-DOS.
`----
I actually checked :h cmdline-complete (which contains this paragraph)
and I did not understand this. I know Ctrl-P gets the previous command
from the commandline but it wasn't entirely obvious to me, that you can
use it to undo the completion. So how about this paragraph:
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt
index 25577a2b6..c6608bbff 100644
--- a/runtime/doc/cmdline.txt
+++ b/runtime/doc/cmdline.txt
@@ -417,9 +417,12 @@ CTRL-N After using 'wildchar' which got
multiple matches, go to next
match. Otherwise recall more recent command-line from history.
<S-Tab> *c_CTRL-P*
*c_<S-Tab>*
CTRL-P After using 'wildchar' which got multiple matches, go to
- previous match. Otherwise recall older command-line from
- history. <S-Tab> only works with the GUI, on the Amiga and
- with MS-DOS.
+ previous match. After the first match undoes the last
+ completion and leaves the cursor at the previously entered
+ text. This is useful to change what will be completed.
+ Otherwise recall older command-line from history.
+ <S-Tab> only works with the GUI, on the Amiga and on MS-DOS.
+ In a terminal, Vim may not be able to recognize <S-Tab>.
*c_CTRL-A*
CTRL-A All names that match the pattern in front of the cursor are
inserted.
Best,
Christian
--
Auch das Chaos gruppiert sich um einen festen Punkt, sonst wäre es
nicht einmal als Chaos da.
-- Arthur Schnitzler
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.