Giter Club home page Giter Club logo

Comments (4)

lifepillar avatar lifepillar commented on May 22, 2024 1

No, I will document that.

from vim-colortemplate.

lunacookies avatar lunacookies commented on May 22, 2024

Here’s an example syntax:

# _statement.colortemplate
Params: fg bg style warningColor
Statement $fg $bg $style
#let g:warningColor = '$warningColor'
# one.colortemplate

Color: red #ff0000 ~
Color: blue #0000ff ~
Color: black #000000 ~

Include: _statement blue black bold @guired
# which expands to
Statement blue black bold
#let g:warningColor = '#ff0000'
# two.colortemplate

Color: orange #ffaa00
Color: pink #ff00ff ~
Color: black #ffffff ~

Include: _statement pink none italic orange
# which expands to
Statement pink none italic
#let g:warningColor = '#ffaa00'

from vim-colortemplate.

lifepillar avatar lifepillar commented on May 22, 2024

You may deal with duplication in your auxiliary files by using multiple auxfile blocks with the same path: the blocks are concatenated in the order in which they are encountered during parsing. For instance:

# _aux.colortemplate
auxfile foo.vim
" Text common to all versions of foo.vim
endauxfile
# one.colortemplate
auxfile foo.vim
" Text specific to one.colortemplate
endauxfile
Include: _aux.colortemplate
auxfile foo.vim
" More text specific to one.colortemplate
endauxfile
# two.colortemplate
auxfile foo.vim
" Text specific to two.colortemplate
endauxfile
Include: _aux.colortemplate
auxfile foo.vim
" More text specific to two.colortemplate
endauxfile

Does that help?

from vim-colortemplate.

lunacookies avatar lunacookies commented on May 22, 2024

Yep, that completely solves it; thanks for the hint. For future reference, is this mentioned in the documentation anywhere?

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.