Loading ...
Sorry, an error occurred while loading the content.
 

Re: How should I config tabpage to make it showing only file name

Expand Messages
  • Benjamin Fritz
    ... The easiest way assumes you re using gvim (as opposed to regular Vim) and that your system supports the guitablabel option. See :help guitablabel and
    Message 1 of 6 , Mar 27, 2008
      Uranuslei wrote:
      > Hi everyone,
      >
      > Glad to join this group.
      >
      > I use "tabe" a lot, and it makes viewing multiple files in one window
      > quite easy. But I have a question that when opening a file which is
      > not under the current directory, it will show its directory and file
      > name in the tab, for instance, "~/workspace/project/src/a.cpp", which
      > makes the tab so wide that I cannot see all the tabs but have to use
      > mouse to click on "<" or ">" to switch between tab pages. I know that
      > "gt" or "[N]gt" can quickly switch tab pages, but I still prefer
      > seeing more tabs at one time.
      >
      > So, how should I config tabpage to make the tab showing only file
      > name, no matter it is under current directory or not?
      >
      > Thanks a lot!
      >
      > your friend, Uranuslei
      > >
      >
      The easiest way assumes you're using gvim (as opposed to regular Vim)
      and that your system supports the "guitablabel" option. See :help
      'guitablabel' and it's actually pretty simple from there.

      If that doesn't work, you may need the slightly more complex :help 'tabline'

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.