Vim File Explorer

Mar 8, 2016 using tags vim

Inside a vim session, you may already know that triggering :Explore brings up a file explorer where you can rename/delete/process files as you please.

What you may not know is that inside that File Explorer session, triggering :Explore one more time changes your (file explorer) working directory to the root of vim session. This is especially useful if you use vim split windows and need to get to the files in multiple places in your source tree.

Another neat thing about :Explore is that it makes it very easy to delete specially-named files. So for example, if you accidentally created a file named *, or ~, don’t fret, :Explore has your back!