preservim / nerdtree

A tree explorer plugin for vim.
Do What The F*ck You Want To Public License
19.56k stars 1.44k forks source link

How to make NerdTree auto refresh if I create a new file from vim terminal #1430

Open hungpham3112 opened 3 weeks ago

hungpham3112 commented 3 weeks ago

It seems that nerdtree doesn't have the ability to autorefreshing. I open a Vim's terminal and nerd tree. When I create a new file with touch newfile, I observe that Nerdtree doesn't show the new file, I have to manually type r or :NerdTreeRefreshRoot. How do I automatically refresh nerdtree structure when a new file is created?