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

Skip buffer when its already open in another split. #28

Closed neilgarcia closed 7 years ago

neilgarcia commented 7 years ago

Is there a way to do this?

ap commented 7 years ago

You mean instead of highlighting it?

neilgarcia commented 7 years ago

ahh sorry, I wanted :bnext to behave in a way where if the buffer is already open in another pane, it will skip that buffer then go to the next one. Then I realized that this plugin does not handle those kind of things sorry for asking.

ap commented 7 years ago

Ah. Yes, that’s outside the purview of this plugin. And no biggie.

This is actually something I wanted myself, though. So I wrote myself a small plugin that does just that. I’d like to release that if I ever figure out a proper shape for it, but I haven’t found that so far. What’s there works for me, though, and maybe it can be a starting point for you.

neilgarcia commented 7 years ago

This is exactly what I was looking for! Thanks @ap!!!