VIM - NerdTree command for opening all sub-folders under a folder in NerdTree
Asked Answered
R

2

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.

Rabblement answered 20/1, 2011 at 9:45 Comment(0)
P
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.

Paduasoy answered 20/1, 2011 at 9:53 Comment(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" :)Recurve
Thanks guys. Perfect! Didn't know about the ? command. Quite a useful command.Rabblement
X (uppercase x) to undo (i.e close all child nodes)Acoustic
A
5

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

Atory answered 20/1, 2011 at 9:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.