NERDTree reload new files

前端 未结 5 1309
醉酒成梦
醉酒成梦 2021-01-29 18:44

If I add a file to the same directory opened in NERDTree, the only way I can see the file added is if I quit vim and start it again .

Is there a way I can

5条回答
  •  执笔经年
    2021-01-29 19:44

    Personally I prefer to trigger the refresh automatically when focusing the NERDTree window. This autocommand (in your .vimrc) will do it

    autocmd BufEnter NERD_tree_* | execute 'normal R'

提交回复
热议问题