up vote 3 down vote favorite
3
share [g+] share [fb]

When you type :e some/path/file<Tab> if there are several matches, vim just picks the first one and you have to cycle through the rest of them with the Tab key. (pretty much like the behavior of the Windows CLI).

How do I make it behave like bash where it only completes until there's ambiguity?

EDIT: updated question for a bit more clarity.

link|improve this question

74% accept rate
feedback

2 Answers

up vote 6 down vote accepted

Add this to your .vimrc:

set wildmenu
set wildmode=list:longest
link|improve this answer
feedback

Pressing Tab multiple times steps through the matches.

You can omit set wildmenu since set wildmode=list:longest implies it.

link|improve this answer
I know ... that's not the question – hasen j Sep 13 '09 at 5:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.