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?

Blaise
  • 7,230
  • 6
  • 43
  • 53
  • Does this answer your question? [How can I show hidden files (starting with period) in NERDTree?](https://stackoverflow.com/questions/5057359/how-can-i-show-hidden-files-starting-with-period-in-nerdtree) – AmerllicA Mar 12 '20 at 12:56
  • The question is exactly like [this post](https://stackoverflow.com/questions/5057359) and I leave a downvote and also vote to close. – AmerllicA Mar 12 '20 at 12:57

2 Answers2

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).

eckes
  • 64,417
  • 29
  • 168
  • 201
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
finn
  • 311
  • 2
  • 6