Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:, and There are more files, but lets keep the example simple.

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

So now I see a list like this (pipe | is cursor):
: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]      Co[nte]      Co[ntr]
:e Co|

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

share|improve this question

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .