Actually, the question post wants to show all hidden files and folders but ignore some files or folders like .git
folder. for this setting:
- We should show all hidden files and folders by default, so open the
.vimrc
file and at the end of file insert the following command:
let NERDTreeShowHidden=1
- We should ignore some files or folders like other IDEs, so open the
.vimrc
file again and the end of file insert the following command too:
let NERDTreeIgnore=['\.git$']
Hint: recently I migrated from VSCode
and WebStorm
to Vim
so on the second step I ignore some other files and folders, I mean:
let NERDTreeIgnore=['\.git$', '\.idea$', '\.vscode$', '\.history$']