Tuesday, October 9, 2012

Re: Commandmode autocomplete

Hi,

> When doing ":e /var/<tab>", Vim will pause for input after the first match, eg. "/var/X11/".
> Further presses of tab will scroll through the other directories under /var. In order to go
> through the files under /var/X11, however, one could have, at the point of ":e /var/X11/":
>
> * Type '/' and then tab, resulting in ":e /var/X11//<first file>".
>
> or
>
> * Type <ctrl-d><tab>.
>
> The latter results in a tidier command line because it doesn't show a double forward-slash,
> but a messier main window, because all /var/X11's files are listed.
>
> I know having a double forward-slash is a minor thing, but it makes me feel that there's
> another keypress I don't know about, that tells Vim to start looking in this directory
> -- is there?

Yes it is: any of the the right arrow or down arrow keys
But I didn't know the hint with <ctrl-d>. Nice.

good night
quidame

--
You received this message from the "vim_use" 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

No comments:

Post a Comment