240

How can I make NERDTree show files that begin with an . (period)?

I have a file named .hgignore in a project directory. If I browse to that directory using NERDTree, the file is not displayed within the tree.

I am using gvim on Windows.

ndequeker
  • 7,932
  • 7
  • 61
  • 93
James Fassett
  • 40,306
  • 11
  • 38
  • 43

2 Answers2

484

Press I (Shift+i) to toggle hidden files in the NERDTree explorer window.

To enable this behavior by default, add this line to your .vimrc file:

let NERDTreeShowHidden=1

For more detail, access the NERDTree help file :help NERD_tree.txt and search for "hidden".

Ma_124
  • 45
  • 1
  • 11
James Fassett
  • 40,306
  • 11
  • 38
  • 43
0

If you are using Neovim on Linux, the configs are in the file :

home/[user]/.config/nvim/init.vim

rainer
  • 3,295
  • 5
  • 34
  • 50