title: How to have different title and tab title in vim
body: <p>As of now I have put the following in my .vimrc file in order to display the name of the currently open file in the screen title of my Terminal:</p>
  
  <pre><code>autocmd BufEnter * let &amp;titlestring = expand("%:@")
  set title
  </code></pre>
  
  <p>Is it possible to also set a specific tab title? That is, when I have a number of vim tabs open in Terminal on my Mac I would Terminal to display the directory path in the Terminal header when I have selected the tab related to the file and I would like to display only the name of the file in the header of the tab.</p>