How do I refresh file tree in NERDTree ?
If I use:
:!touch SomeNewFile
It is not rendered in the tree.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityThe NERD tree quick help is accessible from the NERD tree window by typing ? There I read:
" Filesystem mappings~
...
" r: refresh cursor dir
" R: refresh current root
These should do what you ask.
I use a custom map to refresh NERDTree
:
nmap <Leader>r :NERDTreeFocus<cr> \| R \| <c-w><c-p>
Once set, Leader + r will do this for you:
NERDTree
Note: My key map has a last step where it refreshes CtrlP after refreshing NERDTree