Taboo aims to ease the way you set the vim tabline. In addition, Taboo provides fews useful utilities for renaming tabs.
NOTE: tabs look different in terminal vim than in gui versions. If you wish having terminal style tabs even in gui versions you have to add the following line to your .vimrc file
Taboo is able to remember tab names when you save the current session but you are required to set the following option in your .vimrc file
TabooRename <tabname>Renames the current tab with the name provided.
TabooOpen <tabname>Opens a new tab and and gives it the name provided.
TabooResetRemoves the custom label associated with the current tab.
With this option you can customize the look of tabs. Below all the available items:
%f: the name of the first buffer open in the tab
%a: the path relative to
$HOMEof the first buffer open in the tab
%n: the tab number, but only on the active tab
%N: the tab number on each tab
%w: the number of windows opened into the tab, but only on the active tab
%W: the number of windows opened into the tab, on each tab
%m: the modified flag
" %f%m "
g:taboo_tab_format but for renamed tabs. In addition, you can use the following items:
%l: the custom tab name set with
NOTE: with renamed tabs the items
%a will be evaluated to an empty string.
" [%l]%m "
This option controls how the modified flag looks like.
Turn off this option and Taboo won't generate the tabline. This may be useful if you want to do it yourself with the help of the functions
Taboo provides a couple of public functions that may be used by third party plugins:
This function returns the formatted tab title according to the options
g:taboo_renamed_tab_format(for renamed tabs).
This function returns the name of a renamed tab. If a tab has no name, an empty string is returned.