DEV Community

Liz Lam
Liz Lam

Posted on

Explore and Delete Files in vim

Hello World! I'm back to talk to about my favorite editor.

Did you know that you are not just restricted to editing in vim?

Alt Text

You can explore your current directory by hitting :Ex.

This will show a list view of your files and you can navigate up (j) or down (k) with the usual methods.

You can also delete a file by hitting: SHIFT + D and confirming with y.

To go back to editing, select the file and hit ENTER.

Top comments (6)

Collapse
 
pnaranja profile image
Paul

Thanks for the post! If you want some enhancements to the directory browser, you can check out github.com/tpope/vim-vinegar

Collapse
 
grepliz profile image
Liz Lam

Thanks Paul!

Collapse
 
sirseanofloxley profile image
Sean Allin Newell

Vim is bae.

Collapse
 
grepliz profile image
Liz Lam

So bae!

Collapse
 
wideawakening profile image
Iru.

Always get amazed when I open a JAR file with vim and navigate/search through its content. This is agile!

Collapse
 
grepliz profile image
Liz Lam

Yes!