Git Product home page Git Product logo

Comments (3)

lifepillar avatar lifepillar commented on June 5, 2024

Does it work for you if you move the verbatim block towards the top of the file, before the first Variant and Background directive, in what the help file calls the “global section” (see :help colortemplate-structure?

from vim-colortemplate.

lifepillar avatar lifepillar commented on June 5, 2024

You've put the block in the scope of Variant: gui 256 16: that is why it appears in every variant. Either put it at the top, as suggested above, or add Variant: gui before it to limit the scope to the GUI variant (whose statements are executed unconditionally). I agree that this is not particularly intuitive, though.

For Colortemplate v3 I plan to allow only one optional verbatim section that always appears at the beginning of a color scheme. That, combined with “discriminators”, which is a new feature, covers all the cases I can think of.

Unless there is a specific reason why you would want to execute arbitrary statements after the highlight groups have been defined.

from vim-colortemplate.

romainl avatar romainl commented on June 5, 2024

Thank you, I will experiment with that and report back.

from vim-colortemplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.