### One-Line Directives Example (Input) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Shows the shorthand syntax for common Vimscript commands like `if`, `let`, and `call` when used at the start of a line in a Colortemplate file. ```colortemplate #if get(g:, 'some_option', 0) #let s:color = '@guiMyColor' #endif #call foo() #call! bar() ``` -------------------------------- ### Defining Colortemplate File Metadata (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test11.txt Provides descriptive metadata for the colorscheme file, including full name, short name, author, maintainer, and demonstrates an example of an invalid key name. ```colortemplate Full name:Test 11 Short name:test11 Author:y Invalid - Char - In - Key: Maintainer:w ``` -------------------------------- ### Setting Colortemplate Options Example (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Shows an example of setting template-specific options like 'creator' and 'timestamp' using the 'Colortemplate Options' directive, overriding global settings. ```colortemplate Colortemplate Options: creator=0 timestamp=1 ``` -------------------------------- ### Documentation Block Code Example Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Provides an example of Vimscript code placed within a documentation block, which is used to document settings or variables for the generated help file. ```vimscript let g:@shortname_transp_bg = 0 ``` -------------------------------- ### Color Directive Example (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Provides a concrete example of the 'Color' directive syntax, defining a color named "red" with its specifications for GUI, Base-256, and Base-16 terminals. ```colortemplate Color: red #e64547 167 DarkRed ``` -------------------------------- ### Example Colortemplate Statistics Output Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Provides an example line from the Colortemplate color similarity table output. It shows the GUI color value, its RGB representation, the corresponding terminal color index, its hex/RGB representation, and the calculated delta distance between them. ```Text red: GUI=#9e0006/rgb(158,0,6) Term=88 #870000/rgb(135,0,0) [delta=4.473285] ``` -------------------------------- ### Example Folded Text Structure - Text Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt An example of text structured with `{{{` and `}}}` markers, which can be folded when 'foldmethod' is set to 'marker'. Use commands like `zc` and `zv` to toggle the fold and test the highlighting. ```Text {{{ some text }}} ``` -------------------------------- ### Defining Colors and Variants Example (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Provides an example template snippet showing how to define colors using the 'Color' directive and apply highlight group definitions ('Normal') to specific variants ('gui 8', '256') using the 'Variant' directive. ```colortemplate Color: white #ffffff 231 White Color: black #000000 16 Black Color: ivory #ebebeb 255 LightGray Color: dust #343436 236 Brown Variant: gui 8 Normal ivory dust Variant: 256 Normal white black ``` -------------------------------- ### Generated Vim Script for Variants Example (vim) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Shows the Vim script code generated from the template example in Snippet 5, demonstrating how 'Variant' directives translate into conditional checks for 'termguicolors', 'gui_running', and 't_Co' to apply specific highlight definitions. ```vim if (has('termguicolors') && &termguicolors) || has('gui_running') hi Normal guifg=#ebebeb guibg=#343436 gui=NONE cterm=NONE finish endif if &t_Co >= 256 hi Normal ctermfg=231 ctermbg=16 cterm=NONE finish endif if &t_Co >= 8 hi Normal ctermfg=LightGray ctermbg=Brown cterm=NONE finish endif ``` -------------------------------- ### Defining Color Scheme Names Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test16.txt Specifies the full and short names for the color scheme being defined by the template. ```colortemplate Full name:Test 16 Short name:test16 ``` -------------------------------- ### Vim Modeline Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test91.txt A Vim modeline specifying the filetype as 'colortemplate', allowing Vim to apply appropriate syntax highlighting and settings. ```Vim ; vim: ft=colortemplate ``` -------------------------------- ### Auxiliary File Block Example (Input) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Shows the syntax for defining an auxiliary file using the `auxfile`/`endauxfile` block, specifying the relative path for the generated file. ```colortemplate auxfile autoload/airline/themes/@shortname.vim " Anything can go here endauxfile ``` -------------------------------- ### Colortemplate Options and Metadata Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test8.txt Configures global options for the colortemplate generation process and defines basic metadata for the colorscheme, such as names, author, and background type. ```Colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 Full name:Test 8 Short name:test8 Author:y Maintainer:w Background:dark ``` -------------------------------- ### Define Colortemplate Metadata Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test91.txt Sets the full name, short name, and author for the colorscheme being defined by the colortemplate. ```Vim Colortemplate Full name:Test 91 Short name:test91 Author:y ``` -------------------------------- ### Apply Colors to Highlights (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test2.txt Applies the previously defined colors to standard Vim highlight groups like 'Normal' and 'ColorColumn'. It specifies the foreground and background colors for each group. Includes a commented line and an example with a potentially undefined color name. ```colortemplate Normal white black ; Wrong color ColorColumn wwhite black ``` -------------------------------- ### Verbatim Block Example Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test8.txt Content within a 'verbatim' block is included literally in the generated colorscheme file, allowing for inclusion of raw Vimscript or other content. ```Colortemplate verbatim xyz endverbatim xyz ``` -------------------------------- ### Define Colortemplate Metadata (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test87/test87.txt Sets the full name, short name, author, maintainer, and variant for the color scheme being defined. ```colortemplate Full name:Test 87 Short name:test87 Author:y Maintainer:w Variant: gui ``` -------------------------------- ### Example: Custom Style Picker Background (Vimscript) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Provides an example of how to set a custom background for the style picker by defining a new highlight group `MyBlack` with a black background and then setting `g:colortemplate_popup_bg` to 'MyBlack'. ```Vimscript hi MyBlack ctermbg=16 guibg=#000000 let g:colortemplate_popup_bg = 'MyBlack' ``` -------------------------------- ### Define Colortemplate Variant and Background Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test75.txt Specifies the color variant (e.g., 256 colors) and the background type (dark or light) for the generated colorscheme. ```colortemplate Variant: 256 Background:dark ``` -------------------------------- ### Including Second Verbatim Content Block Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test83.txt This is another example of a 'verbatim' block, demonstrating that multiple such blocks can be used to insert literal content at different points in the generated color scheme file. ```Colortemplate " Verbatim block 2 ``` -------------------------------- ### Quick Start: Compile and Apply Color Scheme (VimScript) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/Readme.md Demonstrates the basic steps to use Colortemplate: editing a template file, compiling it into a Vim color scheme file using the `:Colortemplate!` command, and then applying the generated scheme with `:colorscheme`. ```vim :edit templates/dark.colortemplate :Colortemplate! ~/.vim :colorscheme dark ``` -------------------------------- ### Defining Color Variables (Vimscript) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test61.txt Defines variables for different color representations (256-color, 16-color, GUI) using the `#let` command, referencing predefined color names. ```Vimscript #let x256 = '@term256black' #let x16 = '@term16black' #let xgui = '@guiblack' ``` -------------------------------- ### Include another template file (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test48c.txt Includes the content of another colortemplate file, 'test48d.txt', into the current template during processing. ```colortemplate Include: test48d.txt ``` -------------------------------- ### Defining Author and Maintainer Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test16.txt Identifies the author and maintainer of the color scheme template. ```colortemplate Author:y Maintainer:w ``` -------------------------------- ### Defining Colors (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test89.txt Defines specific colors by name, RGB value, terminal color index, and a descriptive name. These colors are then referenced in style definitions. ```colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Minimal .colortemplate File Example (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/Readme.md Illustrates the basic structure of a Colortemplate template file. It includes metadata like name and author, defines the color palette using `Color:` directives, and specifies highlight group styling (e.g., `Normal`) and terminal colors using `Term colors:`. ```colortemplate Full name: My Gorgeous Theme Short name: gorgeous Author: Me Variant: gui 256 Background: dark ; Color palette Color: myblack #333333 ~ Color: mywhite #fafafa ~ ; Highlight group definitions Normal mywhite myblack Term colors: mywhite mywhite mywhite mywhite mywhite mywhite mywhite mywhite Term colors: myblack myblack myblack myblack myblack myblack myblack myblack ``` -------------------------------- ### Call Colortemplate Function (foo) - Vim Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test80.txt Calls the internal or user-defined function `foo` within the colortemplate processing. This is typically used for modularizing template logic or executing specific setup tasks. ```Vim Colortemplate #call! foo() ``` -------------------------------- ### Vim Modeline for Filetype Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test75.txt A Vim modeline specifying the filetype as 'colortemplate' for proper syntax highlighting and processing within Vim. ```vim ; vim: ft=colortemplate ``` -------------------------------- ### Define Colortemplate Options and Metadata (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test2.txt Sets various options controlling the colortemplate generation process and defines basic metadata for the color scheme, such as names, author, maintainer, and background type. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 Full name:Test 2 Short name:test2 Author:y Maintainer:w Background:dark ``` -------------------------------- ### Define Colors (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test53.txt Defines colors using different formats (name, hex, terminal index, description) for use in the colortemplate. ```colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Example Highlight Group Definitions for Search/Cursor Interaction - Vimscript Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Provides example definitions for `CursorLine`, `CursorColumn`, and `Search` highlight groups. This snippet demonstrates how to configure these groups so that the cursor line/column highlighting appears 'behind' search highlighting, improving visibility when both are active. ```Vimscript CursorLine none grey ; No foreground color CursorColumn none grey ; No foreground color Search yellow fg reverse ; Use reverse ``` -------------------------------- ### Setting Colortemplate Options Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test57.txt This snippet shows how to configure various options for the colortemplate generation process, controlling aspects like creator information, verbosity, source comments, timestamps, and warnings. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Set Colortemplate Options (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test87/test87.txt Configures various options for the colortemplate generation process, such as creator inclusion, quiet mode, source comment, timestamp, and warnings. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Vim Modeline (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test53.txt A Vim modeline specifying the filetype as 'colortemplate' for syntax highlighting and other filetype-specific settings within Vim. ```colortemplate ; vim: ft=colortemplate ``` -------------------------------- ### Defining Basic Scheme Metadata Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test58.txt Defines basic metadata for the color scheme being created, such as its full and short names, the author, the intended variant (GUI or terminal), and whether the background is dark or light. This information helps identify and categorize the color scheme. ```colortemplate Full name:Test 58 Short name:test58 Author:y Variant:gui Background:dark ``` -------------------------------- ### Configure Colortemplate Options Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test75.txt Sets various options for the colortemplate generation process, such as disabling creator, quiet mode, source comments, timestamp, and warnings. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Setting Colortemplate Options (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test89.txt Configures various options for the colortemplate generation process, such as backward compatibility, quiet mode, and timestamp inclusion. ```colortemplate Colortemplate Options: backward_compatible=1 creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Basic Colortemplate Definition Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test27.txt Defines the core settings and metadata for a Vim colortemplate, including options, names, author, maintainer, background, and a specific color definition for the 'Normal' group. ```Vim colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 Full name:Test 27 Short name:test27 Author:y Maintainer:w Background:dark Color:black rgb(0,0,0) ~ Normal black black ; vim: ft=colortemplate ``` -------------------------------- ### Complex Variant and Background Directives Example (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Illustrates a more complex arrangement of `Variant` and `Background` directives to define multiple local sections applying to different combinations of display variants (GUI, 256, 16 colors) and backgrounds (dark, light, any). Shows how directives can be combined for flexibility. ```Colortemplate Variant: gui Background: any ; Defs. for both backgrounds, apply only to GUI Background: dark ; Defs. for dark background, apply only to GUI Variant: gui 256 16 ; Defs. for dark background, apply to GUI/256/16 colors Background: any ; Defs. for both backgrounds, apply to GUI/256/16 colors Background: light Variant: 16 ; Defs. for light background, apply only to 16 colors ``` -------------------------------- ### Define a Specific Color Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test75.txt Defines a color named 'white' with its hexadecimal value, 256-color index, and 16-color index. ```colortemplate Color:white #ffffff 231 15 ``` -------------------------------- ### Vim Modeline Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test8.txt A comment used by Vim to automatically set options for the current buffer, in this case, setting the filetype to 'colortemplate'. ```VimL ; vim: ft=colortemplate ``` -------------------------------- ### Define Colortemplate Documentation Block Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test30.txt Includes a documentation block within the template, which can be used for generating help files or embedding notes. This block contains a reference to a shortname. ```colortemplate documentation\n @shortname_transp_bg\nenddocumentation ``` -------------------------------- ### One-Line Directives Example (Output) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Illustrates the Vimscript code generated from the one-line directives, including the translation of `#call!` to `silent! call` and interpolation. ```vimscript if get(g:, 'some_option', 0) let s:color = '#abcdef' endif call foo() silent! call bar() ``` -------------------------------- ### Vim Filetype Modeline Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test85.txt A standard Vim modeline comment instructing Vim to set the filetype to 'colortemplate' when the file is opened. ```vimscript ; vim: ft=colortemplate ``` -------------------------------- ### Define Basic Colors (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test87/test87.txt Defines two basic colors, black and white, specifying their names, RGB values, terminal color indices, and descriptive names. ```colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Applying Conditional Styling (Normal) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test58.txt Applies styling to the 'Normal' highlight group, which controls the default foreground and background colors of text in Vim. The styling is applied conditionally using #if, #elseif, and #else directives, allowing the scheme to adapt based on conditions like variable values or terminal capabilities. The example shows how comments and interpolation work within these blocks. ```colortemplate #if 1 " some condition Normal white black #if here is treated as comment #elseif '@guiblack' == '@guiwhite' " interpolation works here Normal black white #else ditto #else " A comment Normal black black #elseif ditto #endif " end some condition (@term256white) ``` -------------------------------- ### Setting Background Type (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test11.txt Specifies the intended background type for the colorscheme, which affects how colors are interpreted and applied. ```colortemplate Background:dark ``` -------------------------------- ### Defining Colortemplate Options Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test16.txt Sets various options for the colortemplate generation process, controlling aspects like creator information, quiet mode, source comments, timestamps, and warnings. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Defining Colors (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test29.txt Defines colors used in the color scheme. Each line specifies a color name, its RGB value, cterm index, and an optional descriptive name. ```colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Specify Neovim Only Compatibility Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test91.txt Restricts the generated colorscheme to be compatible only with Neovim, potentially using features specific to Neovim. ```Vim Colortemplate Neovim: only ``` -------------------------------- ### Define a Basic Highlight Group Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test75.txt Defines the 'Normal' highlight group using the previously defined 'white' color for both foreground and background. ```colortemplate Normal white white ``` -------------------------------- ### Set Colortemplate Options (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test53.txt Configures various options for the colortemplate generation process, such as creator information, quiet mode, source comment inclusion, timestamp, and warnings. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Setting Background Type Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test16.txt Declares the intended background type for the color scheme, typically 'dark' or 'light'. ```colortemplate Background:dark ``` -------------------------------- ### Defining Color Scheme Variant Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test16.txt Specifies the variant number for the color scheme template, allowing for multiple variations within a single file. ```colortemplate Variant:0 ``` -------------------------------- ### Define Highlight Group Links Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test75.txt Defines links between highlight groups, mapping 'Cursor' to 'x' and 'y' (intended to show an error), 'Todo' to 'Label', and 'Label' to 'Statement', 'Float', and '#'. Includes a comment demonstrating valid syntax. ```colortemplate Cursor -> x y Todo -> Label ; This is ok! Label -> Statement Float # ``` -------------------------------- ### Define Background and Normal Text Colors (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test87/test87.txt Sets the background type (dark/light) and defines the foreground and background colors for the 'Normal' syntax group based on the background type. ```colortemplate Background: dark Normal white black Background: light Normal black white ``` -------------------------------- ### Configure Colortemplate Options and Metadata Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test64.txt Sets global options for the colortemplate generation process and defines basic metadata like names, author, and background style. Options control aspects like creator inclusion, quiet mode, source comment generation, timestamp, and warnings. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 Full name:Test 64 Short name:test64 Author:y Background:light ``` -------------------------------- ### Vim Modeline for Filetype (vim) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test87/test87.txt A Vim modeline comment that sets the filetype for the current buffer to 'colortemplate', helping Vim apply correct syntax highlighting. ```vim ; vim: ft=colortemplate ``` -------------------------------- ### Setting Colortemplate Options (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test34.txt Configures various options for the colortemplate generation process, such as creator inclusion, quiet mode, source comment inclusion, timestamp inclusion, and warning display. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Defining Colors for Light Background (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test85.txt Defines the 'foo' and 'bar' colors with specific hex codes, cterm indices, and names for use when the background is set to 'light'. ```colortemplate Color:foo #ffffff 255 Black Color:bar #000000 16 White ``` -------------------------------- ### Defining Colors in Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test94.txt Defines the colors used in the color scheme by assigning them a name, an RGB hexadecimal value, and a terminal color index. ```colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Defining Colortemplate Metadata (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test34.txt Specifies metadata for the generated colorscheme, including the full name, short name, author, maintainer, and background type (dark or light). ```colortemplate Full name:Test 34 Short name:test34 Author:y Maintainer:w Background:dark ``` -------------------------------- ### Define Basic Color Scheme - Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test46a.txt This snippet defines the core settings and colors for the color scheme. It sets options like 'creator' and 'quiet', defines 'black' and 'white' colors with RGB and terminal palette values, sets the default 'Normal' style, and includes another template file 'test46b.txt'. It also sets the 'ColorColumn' style. ```Colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 Full name:Test 46a Short name:test46a Author:y Maintainer:w Background:dark Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White Normal white black ; Include empty file Include: test46b.txt ColorColumn white black ``` -------------------------------- ### Defining Colors and Styles in Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test37.txt This snippet shows the core directives used in a .colortemplate file to define a color scheme. It includes setting the background, defining colors with their hex, RGB, and cterm equivalents, and applying foreground and background colors to the 'Normal' syntax group. ```colortemplate Background:dark Color:white #ffffff 255 White Background:dark Color:black rgb(0,0,0) 16 Black Normal white black ``` -------------------------------- ### Defining Colortemplate Metadata (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Provides an example of the mandatory (`Full name`, `Short name`, `Author`) and optional (`Maintainer`, `Description`) metadata fields used at the beginning of a Colortemplate file. This information is used by Colortemplate to identify and document the color scheme. ```Colortemplate ; Mandatory information Full name: A unique and attractive name Short name: all_lowercase_with_no_spaces Author: Myself ; Optional information Maintainer: [Uses Author's value by default] Description: [Empty] ``` -------------------------------- ### Setting Background in Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test94.txt Specifies the intended background type (dark or light) for the color scheme, which can affect how colors are interpreted or applied. ```colortemplate Background:dark ``` -------------------------------- ### Defining Normal Highlight Group Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test8.txt Sets the default foreground and background colors for the 'Normal' highlight group, which is used for standard text in Vim. ```Colortemplate Normal white black ``` -------------------------------- ### Defining Normal Syntax Group Rule (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test11.txt Sets the foreground and background colors for the 'Normal' syntax highlighting group using previously defined color names. ```colortemplate Normal white black ``` -------------------------------- ### Verbatim Block Translation Example Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Illustrates how a verbatim block in a Colortemplate file is translated into standard Vimscript code, including interpolation of template variables. ```vimscript if get(g:, 'fancyflag', 0) hi! Normal ctermfg=88 guifg=#ff6400 gui=NONE,undercurl guisp=#ffff00 endif ``` -------------------------------- ### Vim Modeline for Filetype Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test16.txt A Vim modeline placed at the end of the file to inform Vim about the filetype, enabling correct syntax highlighting and settings for 'colortemplate' files. ```vim ; vim: ft=colortemplate ``` -------------------------------- ### Defining Colors and Syntax Highlighting Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test66.txt Defines a specific color (black) with its hex code, 256-color index, and name, and then links the 'Normal' syntax group to use this color for both foreground and background. ```colortemplate Color:black #000000 16 Black Normal black black ``` -------------------------------- ### Defining Normal Style (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test89.txt Sets the default foreground and background colors for the 'Normal' highlighting group in Vim, using the colors defined previously. ```colortemplate Normal white black ``` -------------------------------- ### Defining Colors Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test16.txt Defines specific colors used in the color scheme template, including their names, RGB/hex values, and terminal color indices. Comments can be included. ```colortemplate Color:black (0,0,0) 0 Black ; WRONG Color:white #ffffff 255 White ``` -------------------------------- ### Custom Reset Block Example (Input) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Shows how to define a custom reset block at the beginning of a Colortemplate file using `reset`/`endreset` to override the default reset behavior. ```colortemplate reset hi clear let g:colors_name = '@shortname' let s:myvar = 'I **need** this to be defined at this point!' endreset ``` -------------------------------- ### Define White Color (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test14.txt Defines a color named 'white' using hex, cterm, and a descriptive name for use within the colortemplate. ```colortemplate Color:white #ffffff 255 White ``` -------------------------------- ### Vim Modeline (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test2.txt A Vim modeline comment at the end of the file that specifies the file type as 'colortemplate'. This helps Vim apply the correct syntax highlighting and settings when opening the file. ```colortemplate ; vim: ft=colortemplate ``` -------------------------------- ### Defining Colors in Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test8.txt Defines specific colors that can be referenced later in highlight group definitions. Each color is given a name, RGB value, terminal color index, and a description. ```Colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Setting Filetype with Vim Modeline (Vimscript) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test7.txt This line is a Vim modeline that instructs Vim to set the filetype to 'colortemplate' when the file is opened. This ensures proper syntax highlighting and functionality for the colortemplate format within Vim. ```vimscript ; vim: ft=colortemplate ``` -------------------------------- ### Define Terminal Color Palette Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test91.txt Specifies the 16-color terminal palette using the previously defined named colors 'black' and 'white'. ```Vim Colortemplate Term colors: black black black black black black black black Term colors: white white white white white white white white ``` -------------------------------- ### Setting Colortemplate Options (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test11.txt Configures various options for the colortemplate generation process, such as creator comment inclusion, quiet mode, source comment inclusion, timestamp inclusion, and warning display. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Setting Colortemplate Options Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test66.txt Configures various options for the colortemplate processing, such as disabling creator information, quiet mode, source comments, timestamp, and warnings. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Define Terminal Color Palette (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test87/test87.txt Specifies the 16-color terminal palette mapping using defined color names. This section appears twice, likely defining the same palette. ```colortemplate Term Colors: black white black white black white black white Term Colors: black white black white black white black white ``` -------------------------------- ### Define Normal Highlight Group (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test53.txt Sets the foreground and background colors for the 'Normal' highlight group, which defines the default text appearance. ```colortemplate Normal white black ; : ``` -------------------------------- ### Defining Normal Highlight Group (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test29.txt Defines the 'Normal' highlight group, which sets the default foreground and background colors for text in Vim. ```colortemplate Normal white black ``` -------------------------------- ### Defining Syntax Groups in Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test94.txt Defines the appearance (foreground color, background color, and style attributes like bold or italic) for standard Vim syntax highlighting groups. ```colortemplate Normal white black Comment white black Bold white black bold Italic white black italic ``` -------------------------------- ### Define Normal Highlight Group Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test91.txt Sets the foreground and background colors for the 'Normal' highlight group using the named colors 'white' and 'black'. ```Vim Colortemplate Normal white black ``` -------------------------------- ### Configure Colortemplate Options and Metadata (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test36.txt Sets global options for the colortemplate file, controlling aspects like creator information, quiet mode, source comments, timestamps, and warnings. It also defines basic metadata for the color scheme like full name, short name, author, and maintainer. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 Full name:Test 36 Short name:test36 Author:y Maintainer:w ``` -------------------------------- ### Call foo() function (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test63.txt Calls the `foo()` function within the colortemplate execution context. This function likely performs some setup or generates template content before the main color definitions. ```colortemplate #call foo() ``` -------------------------------- ### Set Colortemplate Options Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test30.txt Configures various processing options for the colortemplate file, such as disabling creator information, quiet mode, source comments, timestamps, and warnings. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Vim Modeline for Filetype (vim) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test34.txt A Vim modeline specifying the filetype for the current buffer. This helps Vim recognize the file as a 'colortemplate' file and apply appropriate syntax highlighting and settings. ```vim ; vim: ft=colortemplate ``` -------------------------------- ### Define Black Color (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test14.txt Defines a color named 'black' using RGB, cterm, and a descriptive name for use within the colortemplate. ```colortemplate Color black : rgb(0,0,0) 16 Black ``` -------------------------------- ### Defining Normal Style (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test85.txt Sets the 'Normal' highlighting group to use the previously defined 'foo' color as the foreground and 'bar' as the background. A comment notes potential ambiguity. ```colortemplate Normal foo bar ``` -------------------------------- ### Define Styles for Light Background (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test36.txt Switches the background context to 'light'. It then defines the 'Normal' highlight group to use 'white' for both foreground and background. It also attempts to style 'ColorColumn' with 'white' foreground and 'black' background, noting that 'black' is undefined in this specific background context. ```colortemplate Background:light Normal white white ColorColumn white black ; black is undefined here ``` -------------------------------- ### Map Syntax Groups Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test91.txt Maps standard Vim syntax highlight groups ('@function', '@text.literal') to custom or standard highlight group names ('Label', 'Comment'). ```Vim Colortemplate @function -> Label @text.literal -> Comment ``` -------------------------------- ### Defining Template Metadata Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test66.txt Specifies identifying information for the color scheme template, including full name, short name, author, and background type (light or dark). ```colortemplate Full name:Test 66 Short name:test66 Author:y Background:light ``` -------------------------------- ### Defining Colors for Dark Background (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test85.txt Defines the 'foo' and 'bar' colors with specific hex codes, cterm indices, and names for use when the background is set to 'dark'. ```colortemplate Color:foo #000000 16 Black Color:bar #ffffff 255 White ``` -------------------------------- ### Define Colors (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test2.txt Defines specific colors by name, providing their RGB hexadecimal value, 256-color terminal code, and a descriptive name. This section lists the colors available for use in highlight definitions. ```colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Including a Colortemplate File Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt Demonstrates the basic syntax for including another Colortemplate file named `_help` (or `_help.colortemplate`) into the current template. This allows splitting templates into multiple files for better organization. ```Colortemplate Include: _help ``` -------------------------------- ### Defining Color: white (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test11.txt Defines a color named 'white' with its hex value, terminal color index, and a descriptive name for use within the colorscheme. ```colortemplate Color:white #ffffff 255 White ``` -------------------------------- ### Call foobar() function (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test63.txt Calls the `foobar()` function within the colortemplate execution context. This function likely performs some final setup or generates content after the main color definitions. ```colortemplate #call foobar() ``` -------------------------------- ### Defining Color Palette in Vim Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test47.txt Specifies a color palette to be used. This line references the 'vimspectr' palette type with specific parameters. ```Vim Colortemplate Palette: vimspectr wcurve 180 ``` -------------------------------- ### Set Background Type Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test91.txt Specifies that the colorscheme is intended for a dark background. ```Vim Colortemplate Background:dark ``` -------------------------------- ### Set Filetype Modeline - Vimscript Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test46a.txt This line is a Vim modeline that tells the editor to set the filetype to 'colortemplate'. This is important for enabling correct syntax highlighting and plugin functionality when opening the file in Vim. ```Vimscript ; vim: ft=colortemplate ``` -------------------------------- ### Setting Basic Highlighting Rules Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test77.txt Configures basic highlighting for standard Vim syntax groups. 'Normal' sets the default text color, and 'EndOfBuffer' sets the color for lines after the file content. ```Colortemplate Normal white none EndOfBuffer black none ``` -------------------------------- ### Defining a Basic Dark Color Scheme (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test7.txt This snippet configures a Vim color scheme using the colortemplate format. It sets various options, defines the scheme's name, author, background, specific colors with their RGB, cterm, and name values, and a basic highlighting rule for the 'Normal' group. ```colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 Full name:Test 7 Short name:test7 Author:y Maintainer:w Background:dark Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White Normal white black reverse ``` -------------------------------- ### Defining Colors Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test58.txt Declares custom colors that can be referenced later in highlight group definitions. Each color is given a name, an RGB value (hex or rgb() format), a 256-color terminal index, and an optional descriptive name. These definitions simplify managing color values. ```colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Defining Colortemplate Metadata Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test57.txt This section defines metadata for the color scheme, including its full name, a short identifier, and the author's name. This information is often used within the generated color scheme file. ```colortemplate Full name:Test 57 Short name:test57 Author:me ``` -------------------------------- ### Defining Custom Colors Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test77.txt Defines custom colors to be used throughout the color scheme. Each line specifies the color name, its hex code, the corresponding terminal color index, and an optional descriptive name. ```Colortemplate Color: black #000000 0 Black Color: white #ffffff 7 White ``` -------------------------------- ### Define Named Colors Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test91.txt Defines custom named colors ('black' and 'white') using RGB hexadecimal values and corresponding terminal color indices. ```Vim Colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Defining Normal Text Colors Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test16.txt Sets the foreground and background colors for the 'Normal' highlighting group using previously defined color names. A comment indicates a potential issue with this specific combination. ```colortemplate Normal white black ; will be undefined ``` -------------------------------- ### Set Normal Highlight Group (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test14.txt Sets the foreground and background colors for the default 'Normal' highlight group using previously defined color names. ```colortemplate Normal white black ``` -------------------------------- ### Defining Colors (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test34.txt Defines custom colors by name, specifying their RGB value (hex or rgb function), terminal color index, and an optional comment. These colors can then be referenced in highlighting commands. ```colortemplate Color:black rgb(0,0,0) 16 Black ; Comment Color:white #ffffff 255 White ; Comment ``` -------------------------------- ### Defining Color: black (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test11.txt Defines a color named 'black' with its RGB value, terminal color index, and a descriptive name for use within the colorscheme. ```colortemplate Color:black rgb(0,0,0) 16 Black ``` -------------------------------- ### Linking Syntax Groups to Colors Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test74.txt Assigns defined colors to standard Vim syntax highlighting groups like Normal, NonText, Conceal, and Cursor, specifying foreground and background colors. ```colortemplate Normal white black NonText black white Conceal black black Cursor white white ``` -------------------------------- ### Setting Normal Highlight Group in Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test13.txt Configures the 'Normal' highlight group to use the previously defined 'white' foreground color and 'black' background color. ```colortemplate Normal white black ``` -------------------------------- ### Vim Modeline Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test64.txt A Vim modeline comment that instructs Vim to set the filetype to 'colortemplate' when the file is opened. This helps Vim apply correct syntax highlighting and settings for editing .ctp files. ```vim ; vim: ft=colortemplate ``` -------------------------------- ### Setting Normal Highlighting (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test34.txt Sets the default highlighting for the 'Normal' group, specifying the foreground and background colors using names defined previously. This determines the default text and background colors in Vim. ```colortemplate Normal white black ``` -------------------------------- ### Define Colors and Styles for Dark Background (colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test36.txt Defines 'white' and 'black' colors using hex, RGB, and cterm values, providing descriptive names. It then sets the background to 'dark' and applies the defined 'white' foreground and 'black' background to the 'Normal' highlight group for this specific background variant. Includes comments about color definition order. ```colortemplate ; Color defined before background ; must be valid for both background Color:white #ffffff 255 White Background:dark Color:black rgb(0,0,0) 16 Black Normal white black ``` -------------------------------- ### Setting Colortemplate Variables in Vimscript Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test83.txt This snippet defines Vimscript variables using 'let' to store metadata like the color scheme name, author, and description. These variables can be referenced elsewhere in the template. ```Vimscript let g:colors_name = '@shortname' let s:name = '@fullname' let s:author = '@author' let s:maintainer = '@maintainer' let s:license = '@license' let s:description = '@description' ``` -------------------------------- ### Defining Colors (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test18.txt Defines various colors using the 'Color' command. Each line specifies a color name, value (hex or rgb), cterm index, and description. The examples include valid and intentionally invalid syntax for testing purposes. ```Colortemplate Color:white #ffffff 255 White Color:black rgb 0,0,0) 0 Black Color:black rgb(-1,0,0) 0 Black Color:black rgb(256,0,0) 0 Black Color:black rgb(0:0,0) 0 Black Color:black rgb(0,,0) 0 Black Color:black rgb(0,256,0) 0 Black Color:black rgb(0,0-0) 0 Black Color:black rgb(0,0,x0) 0 Black Color:black rgb(0,0,256) 0 Black Color:black rgb(0,0,0 0 Black ``` -------------------------------- ### Defining Conditional Variants Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test66.txt Uses conditional blocks (#if, #endif) to define different color scheme variants (256-color, GUI) that are included based on specific conditions or flags during processing. ```colortemplate #if ok Variant:256 #endif Variant: gui #endif Variant: 256 gui #if wrong Variant: gui #endif ``` -------------------------------- ### Set Colortemplate Options Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test91.txt Configures various options for the colortemplate generation process, such as disabling the creator comment, suppressing quiet messages, omitting source comments, disabling timestamps, and hiding warnings. ```Vim Colortemplate Colortemplate Options: creator=0 quiet=1 source_comment=0 timestamp=0 warnings=0 ``` -------------------------------- ### Defining Colors (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test57.txt These lines define specific colors by assigning a name (e.g., 'skyblue', 'nightblue'), a hexadecimal color code, and an optional comment or description indicated by a tilde (~). These names can then be used when defining highlight groups. ```colortemplate Color:skyblue #ffffff ~ Color:nightblue #000000 ~ ``` -------------------------------- ### Set Vim Filetype (vimscript) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test36.txt A standard Vim modeline comment used to explicitly set the filetype to 'colortemplate'. This helps Vim apply the correct syntax highlighting and load relevant plugins for processing the file. ```vimscript ; vim: ft=colortemplate ``` -------------------------------- ### Setting Highlight Group Background (Vimscript) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test61.txt Sets the background color for the 'Foobar' highlight group using a variable ('@black') defined elsewhere in the template. This command is typically used within a colortemplate definition. ```Vimscript hi Foobar ctermbg=@black ``` -------------------------------- ### Call bar() function (Colortemplate) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test63.txt Calls the `bar()` function within the colortemplate execution context. This function likely performs some setup or generates template content, possibly related to the variant definition. ```colortemplate #call bar() ``` -------------------------------- ### Defining Syntax Highlighting Rules Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test47.txt Assigns colors or palette entries to specific Vim syntax highlighting groups. 'Normal' sets the default text color, and 'ColorColumn' sets the color for the column marker. ```Vim Colortemplate Normal white black ColorColumn g0 g7 ; vimspectr colors ``` -------------------------------- ### Defining Colors in Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test33.txt Defines several colors using different formats (rgb, hex, cterm index) and assigns them names for later use in the colortemplate. Includes a commented-out example. ```colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White #Color:green #719e07 ~ ``` -------------------------------- ### Defining Colors in Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test83.txt This snippet demonstrates how to define colors using the 'Color' directive in a colortemplate file. Each color is given a name, a hexadecimal value, and a terminal color code. ```Colortemplate Color: white #ffffff 231 Color: black #a34c9e 133 ``` -------------------------------- ### Defining Colors in Vim Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test47.txt Defines specific colors used in the color scheme. Each line specifies a color name, its value (RGB or hex), its terminal color code, and an optional comment. ```Vim Colortemplate Color:black rgb(0,0,0) 16 Black Color:white #ffffff 255 White ``` -------------------------------- ### Defining Normal Highlight Group in Colortemplate Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test83.txt This snippet shows how to define the 'Normal' highlight group using the 'Normal' directive. It sets the foreground and background colors for default text. ```Colortemplate Normal black white ``` -------------------------------- ### Define Colors and Normal Highlight Group Source: https://github.com/lifepillar/vim-colortemplate/blob/master/test/test30.txt Defines two colors, 'black' and 'white', specifying their RGB, terminal color index, and name. It then sets the 'Normal' highlight group to use the defined 'white' color for the foreground and 'black' for the background. ```colortemplate Color:black rgb(0,0,0) 16 Black\nColor:white #ffffff 255 White\nNormal white black ``` -------------------------------- ### Configuring Toolbar Actions in vim-colortemplate (Vimscript) Source: https://github.com/lifepillar/vim-colortemplate/blob/master/doc/colortemplate.txt This snippet demonstrates how to configure the actions associated with toolbar menu entries using the `g:colortemplate_toolbar_actions` dictionary. It maps the 'Build!' label to the `:Colortemplate!` command. ```vim let g:colortemplate_toolbar_actions = { \ 'Build!': ':Colortemplate!' \ } ```