How can you auto refresh the directory panes automatically in vim NERDTree? I know you can press R to refresh manually but I want to have it refresh automatically. This is particularly helpful when checking out between different git branches.
UPDATE: following those links and combining the ideas the following put into your .vimrc should refresh every four seconds though an if statement to check for an open NERDTree might be in order too.
set autoread au CursorHold * if exists("t:NerdTreeBufName") | call <SNR>15_refreshRoot() | endif
note: still a work in progress. My script number 15 was found using :scriptnames and looking up NERD_Tree.vim. Now to automate that part...