Vim - NERDTree - how to open a hidden folder (.name) in NERDTree plugin?
Asked Answered
W

2

30

I have a hidden folder which name starts with . (dot) I am editing files withing the parent folder but want to be able to access files within the hidden one as well from within NERDTree plugin under vim.

Is there a way to do it?

Watercool answered 29/11, 2012 at 14:7 Comment(2)
Does this answer your question? How can I show hidden files (starting with period) in NERDTree?Semifinalist
The question is exactly like this post and I leave a downvote and also vote to close.Semifinalist
I
57

If you hit SHIFTi, the NERDTree shows also hidden files.

This could be found in the docs of NERDTree that appear if you hit ? in the NERDTree window or type :he NERDTree (specific: :he NERDTreeMappings).

Isom answered 29/11, 2012 at 14:10 Comment(1)
Thanks a lot for the quick answer!Watercool
M
14

To shows hidden files/folders by default, add this line to your .vimrc file:

let NERDTreeShowHidden=1

Hit SHIFTi to toggle between show and hide hidden files/folders.

If you ignore file/folder(like .git/ , .DS_Store/ etc) in NerdTree, add this line to your vim script:

let NERDTreeIgnore=['\.DS_Store$', '\.git$'] " ignore files in nerd tree
Monti answered 14/11, 2018 at 14:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.