vim nerdtree hide .git code example Example: vim nerdtree hide .git add the following line to your .vimrc file: let NERDTreeIgnore=[".git"]