Sunday, September 15, 2024

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

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 <aotto1...@gmail.com> 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 vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5c46ae1d-fb3a-4d49-a42e-15abce2a4547n%40googlegroups.com.

No comments: