Files do not appear in the folder.
Hello. Files do not hidden, but when I open folder it looks empty. When I explore empty dir, files displayed (right column on attached image). After reloading vim files are displayed.

Update: This only happens after I press "x" on folder.
+1 same issue
+1 the same problem
+1 Same problem
+1 Same problem
Duplicate: #519 Same issue.
The problem still exists.
I experience this bug when I go up twice from a directory that is a single item in its parent directory.
For example (as shown on OP's screenshot), I open vim from directory controllers/admin. Then I press 'u'. And then I press 'u' again. At this step I see the directory structure like on the screenshot (>controllers/admin). And I'm not able to view the contents of controllers/admin even if I press 'R' or 'r'.
#519 is a bit different issue. I have updated to the latest version at the moment.
mkdir ttt mkdir ttt/ttt/ touch ttt/ttt/test cd ttt/ttt/ vim test
Inside vim: :NERDTreeToggle u u And now you're not able to view the contents of folder ttt/ttt.
I can now replicate this bug, and I believe it to be confirmed. Replicate with these steps:
- Point the NERDTree root to a directory that will cascade beneath its parent.
- Press
utwice. - Note that the cascaded directory will no longer open.
You can do this in the NERDTree repository itself by making the root nerdtree/lib/nerdtree/ pressing u twice, and then trying to open lib/nerdtree/ again.
Bug confirmed.
Look at the NERDTreeCascadeSingleChildDir option. When set to 1, the default, I see the behavior described in this issue. A workaround is to set it to 0.
Hey, @PhilRunninger, I think I've got this one. A possible duplicate is issue #547. I also have a fix in progress. I believe the problem can be captured in a few words as follows:
When you make a directory that belongs to a cascade the NERDTree root, pressing u repeatedly will close every directory in the chain along the way up. Then, when you try to open the cascaded node with o, the mapping opens the lowest directory node in the cascade while leaving the ancestor nodes closed. That is, the mappings are operating on the tail of the cascade, not the immediate child of the current root node.
The rendering logic never reaches the open node at the bottom of the cascade, and the children there cannot be displayed because their ancestors are "closed" from the point of view of the NERDTree. This also explains why the open/closed status indicator (+ or ~ on Windows) changes while the children never render.
ANNOUNCEMENT: Everyone experiencing this bug can try the fix in pull request #720. It should repair this problem without any side effects. The code is currently under review.
Works for me, thx.