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

Buftabline is not clickable on vim? #84

Closed RnYi closed 2 years ago

RnYi commented 2 years ago

It can be clicked in nvim, but not in vim?

ap commented 2 years ago

That’s correct: NeoVim supports custom actions to handle clicks on the tabline, so under NeoVim Buftabline can install a handler that responds to tabline clicks by switching buffers.

Vim only allows clicks on the tabline to trigger one particular behaviour: switching tab pages (i.e. the Vim feature a Buftabline user doesn’t care about and doesn’t use). So all Buftabline can do under Vim is to just disable clicking on the tabline completely.

I have made various attempts to use Vim’s behaviour against it, so to speak, to make clicks on the tabline cause buffer switching with some very indirect tricks – but nothing ever worked out. There were always very obvious cases where it didn’t work that I couldn’t figure out how to fix.

If Vim ever adds functionality that allows Buftabline to implement proper mouse support, rest assured I’ll be adding support for it to the plugin immediately.