[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] suffixes

From: Thomas Dickey
Subject: Re: [vile] suffixes
Date: Thu, 1 Nov 2018 19:32:17 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Nov 01, 2018 at 07:15:16PM -0400, Wayne Cuddy wrote:
> How does one view or access which suffixes apply to the current major
> mode without having to examine modes.rc?

I'd start with

> Is it possible to add to suffixes that exist in modes.rc without having
> to redefine them?

no (there's no "+=" for regular expressions).  Though you can use the
values in a "setv", e.g.,

        :setv %foo=$yacc-suffixes

I think the trailing "$" anchor would interfere with some combinations


though I suppose you could wrap that in something like (untested)

        :setv %foo=\($yacc-suffixes\|\.Y$\)

and assign that to suffixes for the mode...

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]