gcmt / taboo.vim

Few utilities for pretty tabs
MIT License
259 stars 35 forks source link

Don't load tabline setting on VimEnter. #12

Closed chrisbra closed 5 years ago

chrisbra commented 8 years ago

Please don't set the tabline on VimEnter autocommand, because that does not allow other plugins to disable resetting the tabline. So I propose, either remove the autocommand altogether and simply set the tabline option without an autocmmand, or change the autocommand to something like:

    au VimEnter * if g:taboo_tabline | set tabline=%!TabooTabline() |endif
    au VimEnter * if g:taboo_tabline | set guitablabel=%!TabooGuiTabTitle() |endif

This way other plugins like vim-airline, can disable resetting the tabline by setting the g:taboo_tabline variable.