8

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.

Karel Bílek
  • 1,859
  • 5
  • 20
  • 26
  • 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. –  Jan 21 '12 at 01: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 01: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](http://www.vim.org/scripts/script.php?script_id=1658). –  Jan 21 '12 at 01:44
  • What are the differences between nerdtree and netrw? – Karel Bílek Jan 21 '12 at 02:26

1 Answers1

4

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.