Skip to main content
2 of 3
Avoid confusion, the question asking for go back from text view, without including go back from oridnary directory which i can simply press .. or hyphen key to do that.
林果皞
  • 5.6k
  • 4
  • 35
  • 46

vim - How to navigate back from text/binary file view in Netrw Directory Listing

I use vim.gtk3 . to naviagte current directory in Netrw Directory Listing view.

enter image description here

I know i can press x to act like xdg-open. I also know i can press - to navigate to parent directory.

But if i press Enter on mp4 binary file, it will show in binaries view: enter image description here

Or if i press Enter on c text file, it will show in normal code view: enter image description here

At this point (binaries or code view), how to use shortcut key and get back to previous Netrw Directory Listing page ? I pressed - and it doesn't work. I have to type :q to quit the entire vim.gtk3.

Is it possible go back directory listing page from text view after pressed Enter in Netrw Directory Listing ?

林果皞
  • 5.6k
  • 4
  • 35
  • 46