Commandmode autocomplete

12 views
Skip to first unread message

Paul

unread,
Oct 6, 2012, 6:48:10 AM10/6/12
to vim...@googlegroups.com
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?

--

.
Reply all
Reply to author
Forward
0 new messages