Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I understand that this questions could be a bit unclear, but I think an example will help.

I'm in Vim and want to open a file. There are a few files in my directory and some have the same prefix. I used wildmode=longest,list. For example: Common.pm, Context.pm and Controller.pm. There are more files, but lets keep the example simple.

I want to open Controller.pm, so I type :e and C, followed by <tab>.

So now I see a list like this (pipe | is cursor):

Common.pm      Context.pm      Controller.pm
:e Co|

I need to type the next character that's different to choose the file I want, I need to type the ntr to choose the file. To make it easier to know which characters to type, Vim could highlight the next differing characters like this, but with a bright color instead of brackets.

Co[m]mon.pm      Co[nte]xt.pm      Co[ntr]oller.pm
:e Co|

Does this exist? Or is there a way to make this work with options or scripts?

share|improve this question
add comment

1 Answer 1

You might want to take a look at NERDTree

The NERD tree allows you to explore your filesystem and to open files and directories. It presents the filesystem to you in the form of a tree which you manipulate with the keyboard and/or mouse. It also allows you to perform simple filesystem operations.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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