Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Is there any version of tree command that displays file structure as a tree structure, but in a way that I can interactively walk trough?

Why do I need it exactly - I am trying to simulate TextMate project drawer using vim and splitscreen with screen and "interactive" tree on the left. But if there is any better way than that, I would also like to hear it.

share|improve this question
You could always run vim your_dir and hit i three times to list the directories as a tree. From there you can interactively walk through the tree. – user13742 Jan 21 '12 at 1:33
Oh, it seems I don't know everything about vim! Thanks! A little question - how do I resize the vim "window"? – Karel Bílek Jan 21 '12 at 1:36
You can split the vim window vertically and horizontally with Ctrl+W+V and Ctrl+W+S, respectively. Anyway, I think what you want here is something like the vim nerdtree plugin. – user13742 Jan 21 '12 at 1:44
What are the differences between nerdtree and netrw? – Karel Bílek Jan 21 '12 at 2:26
@hesse: add your comment about nerdtree as an answer and I will accept it. – Karel Bílek Jan 21 '12 at 3:00
up vote 3 down vote accepted

The nerdtree plugin for vim should do just that. It gives you a tree view of your filesystem inside vim that can be used interactively. It supports a dozen features such as bookmarking files, syntax highlighting, mouse support, tree filtering and more. Generally, good stuff to have when working on projects that span multiple files and directories.

share|improve this answer
Sorry I am accepting your answer 2 years later, I just sort of forgot about it earlier. :) – Karel Bílek Jan 26 '14 at 23:28

Your Answer


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.