21

In VIM-NerdTree, I press Enter to open a folder but how do I open a folder and all its sub-folders in NerdTree through a single command?

I don't want to open any file. I just want all sub-folders to be open so that I can view the various filenames.

2 Answers 2

48

If you press ? you see the help. O opens recursively the nodes. o just opens the nodes. I think you need one of those.

3
  • I was replying "Just go on a dir and press "O" (uppercase o). It will recursively open all its subfolder. Very nice feature. BTW, if you press "?" when you are in NERDTree it will display a very nice help" :)
    – lucapette
    Jan 20, 2011 at 9:54
  • Thanks guys. Perfect! Didn't know about the ? command. Quite a useful command.
    – Arpit Rai
    Jan 20, 2011 at 10:27
  • 3
    X (uppercase x) to undo (i.e close all child nodes)
    – Daniel
    Nov 5, 2017 at 14:56
5

I may be misunderstanding your question, but doesn O do what you need? (capital o)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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