NERDTree reload new files

前端 未结 5 1384
醉酒成梦
醉酒成梦 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:41

    As @romainl answered above; press r to refresh current directory or R to refresh root directory.

    You can consider adding new files from nerdTree itself by pressing m, then a to add a new file (or directory by adding a trailing slash). This way you don't need to refresh nerdTree to see the new added file.

提交回复
热议问题