9 years ago
An autocommand to refresh NERDTree when its window is focused, far better than always pressing R.
autocmd WinEnter * if exists('b:NERDTree') | execute 'normal R' | endif " P.S: Better to include it into an augroup