Re: Always display full path in tab?

2006-05-18 Thread Mark Volkmann

On 5/18/06, Scot P. Floess [EMAIL PROTECTED] wrote:

I have been looking through the documentation on vim (yes I even tried
using :h tabline) in an attempt to always list the full path in my
tabs.  I can't see what option I need to enable so that the full path
displays.  Presently if I edit a file that exists in a rather long path,
I see abbreviations in the path names (like /h/v/s/foo.bar).

What do I need to do to enable?

Thanks...and if this is in the documentation and I overlooked it...sorry
- I will deserve the RTFM comments ;)  In all seriousness I probably
spent a good hour looking...just want the answer now :)


I've also failed to find that, but I want the opposite. I only want to
see file names, no abbreviated directory paths. I've been there's a
plug-in to let you do this, but it only works if you use the non-GUI
version. I prefer to use the GUI version.

--
R. Mark Volkmann
Object Computing, Inc.


Re: Always display full path in tab?

2006-05-18 Thread Steve Hall
From: Mark Volkmann, May 18, 2006 3:24 PM
 On 5/18/06, Scot P. Floess [EMAIL PROTECTED] wrote:
 
  list the full path in my tabs.

 I've also failed to find that, but I want the opposite.

  function! TabpageName(mode)
  if a:mode == 1
  return fnamemodify(expand(%), :p:h)
  elseif a:mode == 2
  let name = fnamemodify(expand(%), :p:t)
  if name == 
  return (Untitled)
  endif
  return name
  endif
  endfunction
  function! TabpageState()
  if modified != 0
  return '*'
  else
  return ''
  endif
  endfunction

  set guitablabel=%{TabpageName(2)}%{TabpageState()}

Change the argument in the TabpageName() call to 1 for full paths.

-- 
Steve Hall  [ digitect mindspring com ]
:: Cream... something good to put in your Vim!
::   http://cream.sourceforge.net