Re: In vim, how to tell which version of a syntax file is being used?

Liste des GroupesRevenir à c editors 
Sujet : Re: In vim, how to tell which version of a syntax file is being used?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.editors
Date : 15. Feb 2025, 23:29:23
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vor4g5$7l11$1@dont-email.me>
References : 1
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 15.02.2025 17:27, Kenny McCormack wrote:
Overall problem: I'm trying to debug a problem in the syntax highlighting
of a particular shell script.
 
I want to know if there is some variable that is set by the syntax
apparatus that tells me either or both of:
 
    1) What version of sh.vim was used?
    2) The full path of the used sh.vim file?
 

If in doubt I'm inspecting (according to :help) what Vim shows me
when I'm typing ':set rtp'. There's a couple directories and mine
shows (for and on a Unix system) '/usr/share/vim/vim73' so my 'sh'
default syntax file would be '/usr/share/vim/vim73/syntax/sh.vim'.

But there's more directories shown in that path list that appear
before the '/usr/share' path, and I have also a local directory
'~/.vim/after/syntax/sh/...' where some changes to the default
behavior for 'sh' are defined.

Janis


Date Sujet#  Auteur
15 Feb 25 * In vim, how to tell which version of a syntax file is being used?8Kenny McCormack
15 Feb 25 `* Re: In vim, how to tell which version of a syntax file is being used?7Janis Papanagnou
16 Feb 25  `* Re: In vim, how to tell which version of a syntax file is being used?6Kenny McCormack
16 Feb 25   +- Re: In vim, how to tell which version of a syntax file is being used?1Janis Papanagnou
16 Feb 25   +- Re: In vim, how to tell which version of a syntax file is being used?1Eric Pozharski
16 Feb 25   +- Re: In vim, how to tell which version of a syntax file is being used?1DrunkenThon
16 Feb 25   `* Re: In vim, how to tell which version of a syntax file is being used?2Jens Schweikhardt
17 Feb 25    `- Re: In vim, how to tell which version of a syntax file is being used?1Kenny McCormack

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal