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

18575Re: Local/Global tags variable

Expand Messages
  • Paul Kippes
    Mar 1, 2001
      Correct. It should read
      let &tags="/home/pkippes/tags/tags-bw65"

      The question still stands. Does the "tags" setting now default
      to a local variable? How would one determine/know this?

      Also, using the corrected .vimrc I gave earlier, I can create a
      new buffer (with :new) and buffers #1 and #2 now have different
      tags settings.


      --- "Douglas L . Potts" <dp@...-sys.com> wrote:
      > Paul Kippes spake saying:
      > > I'm aware that beginning in vim60w, "set tags" can be unique
      > for
      > > each buffer. But knowing this, I'm unsure if the following
      > is
      > > suppose to work. I first noticed the situation starting in
      > > vim60w.
      > >
      > > ----- My reduced .vimrc file -----
      > > set nocompatible
      > > set &tags="/home/pkippes/tags/tags-bw65"
      > > ----------------------------------
      > I could be wrong, but I thing you want to:
      > set &tags
      > set tags+=/home/pkippes/tags/tags-bw65
      >
      > You want to make sure that tags are first set to the default
      > setting,
      > and then add your tags file location to it. Is this your
      > intent?
      > Because your line above, doesn't even work for me. It gives
      > an error:
      > Unknown option: &tags=
      >
      > Or perhaps you meant let &tags=...
      > >
      > > In vim60w, tagging to a tag within the current file is fine.
      >
      > > But once I tag outside the current file, my "set tags?"
      > becomes
      > > "tags=./tags,tags".
      > >
      > > Also, if I start vim with line #2 of the above .vimrc file
      > > removed and then "set tags=/home/pkippes/tags/tags-bw65"
      > things
      > > work as before vim60w. (I.e. tagging to outside the current
      > > file does not modify the tags setting.)
      > >
      > > Is this the new behavior? Also, how does one modify
      > > local/global settings?
      > :h local-options
      > :h global-local
      >
      > HTH,
      > -Doug
      >
      > --
      >
      *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
      > Douglas L. Potts Spectral Systems, Inc.
      > http://www.bigfoot.com/~pottsdl
      > "But you can't expect to wield supreme executive power just
      > 'cause some
      > watery tart threw a sword at you!"
      > -Dennis, "Monty Python and the Holy Grail"
      >
      *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*


      __________________________________________________
      Do You Yahoo!?
      Get email at your own domain with Yahoo! Mail.
      http://personal.mail.yahoo.com/
    • Show all 8 messages in this topic