Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
3  
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. –  Herman Torjussen 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
3  
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. –  Herman Torjussen 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

1 Answer 1

up vote 2 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 at 23:28

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.