How can I show hidden files (starting with period) in NERDTree?
Asked Answered
M

2

242

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.

Merilee answered 20/2, 2011 at 13:41 Comment(0)
M
490

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

Merilee answered 20/2, 2011 at 13:50 Comment(2)
And to hide hidden files by default, put let NERDTreeShowHidden=0 into your vimrc.Lutes
if you are in a Lua file: vim.g.NERDTreeShowHidden=1Holeandcorner
J
1

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

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

Jobe answered 14/2, 2023 at 20:6 Comment(1)
This should be a comment, not an answer. ;)Armelda

© 2022 - 2024 — McMap. All rights reserved.