mkitt/tabline.vim

Where is close button?

noscript opened this issue · 4 comments

I wish there would be a close button from the default tabline. Thanks!

I believe this is part of the default tabline included within Vim, but I'm not positive. I typically just type

tabc2

with 2 being the number of the tab I wish to close. This for me, is way faster than reaching for the mouse and triggering a close button. I most likely won't add this in since I really want my tab displays to be incredibly succinct. Sorry.

This can be optional. Will you accept a pull request?

Absolutely.

Wrapping PR #4 in a conditional like this:

  if (exists("g:tablineclosebutton"))
    let s .= '%=%999XX'
  endif

Allows you to put the following line in your ~/.vimrc to make the close button appear:
let g:tablineclosebutton=1

I'd personally like to have the close button to help make vim more accessible to newcomers. Thanks for the plugin and the patch! Looks great!