ap / vim-buftabline

Forget Vim tabs – now you can have buffer tabs
http://www.vim.org/scripts/script.php?script_id=5057
MIT License
782 stars 75 forks source link

Doesn’t iteroperate well with Netrw #31

Closed equant closed 6 years ago

equant commented 7 years ago

This is probably user error, and not a bug, but when I have buffers open, :bprev and :bnext work as expected, but when I do :e to get a file list, the file list becomes a buffer that I can not :prev.

i.e. I can cycle past it using next, but previous doesn't work. Also, the "tab" at the top isn't highlighted when I'm viewing the ":e" buffer.

Any ideas on how I'm supposed to be handling this situation? Thanks.

ap commented 7 years ago

That’s due to how the Netrw plugin works (which is what Vim uses to implement directory listings), unfortunately. In short, it puts its directory listing in a nameless hidden buffer. (You can check :ls vs :ls! to see what I’m talking about.) This is what ultimately drove me to write the readdir plugin. Trying to do it differently from Netrw then taught me why Netrw is written as it is – both approaches have their problems. I’m not sure what to do here really. I can’t tell everyone to install Readdir just to fix this, nor should they have to, nor would I recommend it to everyone any more. And in the end the UX is suboptimal either way. Kinda crappy situation.

equant commented 7 years ago

Ok, thanks for the information about the issue. I can live with it, and I'll try readdir to see if that works for me.

ap commented 6 years ago

(Duplicate of #25, reclosing)