title: How to save tab specific data in Vim
body: <p>The <a href="http://www.vim.org/scripts/script.php?script_id=1678" rel="nofollow">tabnames</a> plugin keeps a tab local variable <code>t:tab_name</code> for the tab label. Unfortunately, <code>mksession</code> does not appear to save tab specific variables. What options do I have for saving this data, as I will need it to later (manually) load the tab names. Here's what I have so far:</p>
  
  <ol>
  <li>Update <code>sessionoptions</code> to save tab data (is this possible?)</li>
  <li>Find some <code>SessionSavePre</code> event to traverse all tabs and make a global list of tab names <code>g:tab_names</code> (does such an event exist?)</li>
  <li>Update a global tab names list <code>g:tab_names</code> every time tabs are added or removed (I would rather not do this as it involves shifting previous entries around)</li>
  </ol>