Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to refresh in NERDTree plugin

Tags:

vim

nerdtree

When I open a file in vim with (Directory A in) NERDTree, it works well.

But if I open one more file in another directory (Directory B), it doesn't refresh to show the contents of directory B (While it still shows directory A).

Can NERDTree automatically refresh by itself?

like image 559
Toress Avatar asked Dec 21 '11 01:12

Toress


People also ask

How do you close a file in NERDTree?

The :wqa command will write all changed buffers and exit Vim. This will close down NerdTree, too.


1 Answers

From https://gist.github.com/geekontheway/2667442 : just hit the r or R key to refresh the current tree. Could be mapped to auto refresh in .vimrc

like image 132
John Smith Avatar answered Sep 18 '22 14:09

John Smith