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

5,728

Add this to your .vimrc:

set wildmenu
set wildmode=list:longest
Share:
5,728

Related videos on Youtube

hasen
Author by

hasen

Computer Science, University of Calgary (2009)

Updated on September 17, 2022

Comments

  • hasen
    hasen almost 2 years

    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.

  • hasen
    hasen almost 15 years
    I know ... that's not the question
  • user138727
    user138727 about 12 years
    I just signed up to superuser and answered questions so that I could get enough reputation to upvote your answer. Thankyou.