Re: unable to set "tags" file in front of "tags" option

Andreas Otto <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
thanks...

Enan Ajmain schrieb am Samstag, 14. September 2024 um 17:28:25 UTC+2:

> On Sat, 14 Sep 2024 02:33:55 -0700 (PDT)
> Andreas Otto <[email protected]> wrote:
> > Hi, I build my *tags* options like:
> >
> > source $NHI1_HOME/example/.vimrc
> > set tags+=$NHI1_HOME/theKernel/jv/tags
> > set tags+=$NHI1_HOME/theLink/jv/tags
> > set tags+=$NHI1_HOME/theConfig/jv/tags
> > set tags+=$NHI1_HOME/theSq3Lite/jv/tags
> >
> > with the most specific *tags* files at the end (+=). my problem is that I
> > want the most specific *tags* file in the FRONT of the *tags* option.
> >
> > I'm a little embarrassed to ask such a simple question, but since Vim has
> > decided to use a somewhat "unusual" custom development as a "programming
> > language", I unfortunately have no choice but to go down this route.
> >
> > Normally I would assume that something like:
> > > set tags=/my/file/to/tags,$tags
> > would work, but it just doesn't.
> >
>
> Try "^=" to prepend instead of "+=" which appends. From the helpdocs:
>
> :se[t] {option}+={value} *:set+=*
> Add the {value} to a number option, or append the
> {value} to a string option. When the option is a
> comma-separated list, a comma is added, unless the
> value was empty.
> If the option is a list of flags, superfluous flags
> are removed. When adding a flag that was already
> present the option value doesn't change.
> Also see |:set-args| above.
>
> :se[t] {option}^={value} *:set^=*
> Multiply the {value} to a number option, or prepend
> the {value} to a string option. When the option is a
> comma-separated list, a comma is added, unless the
> value was empty.
> Also see |:set-args| above.
>
>
> --
> Enan
>

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5c46ae1d-fb3a-4d49-a42e-15abce2a4547n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.