how to make vim's auto-complete behave like bash's default auto-complete?

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.


Add this to your .vimrc:

set wildmenu
set wildmode=list:longest