Skip to main content
retag: added the proper tag for what the user calls "directory listing"
Link
Source Link
Bartek
  • 133
  • 4

How do I properly manage a directory listing within a buffer?

I use a mix of buffers and split panes to manage my workflow. Sometimes, I (perhaps accidentally) open a directory listing instead of a file. My buffers may look like this then:

directory listing

At this point, I can :bnext or :bprevious to bounce between my buffers, but when in the directory listing I cannot :bp <BAR> as I would normally to close a buffer and I'm seemingly stuck with this awkward buffer that I can't remove. (I have these all nmaped in some capacity, FWIW)

Yes, my habits should get me to use CTRL+P more to search for files, but sometimes I find this method of file traversal useful, so understanding the proper way to manage these would be superb.

Thank you!