JSPM

  • Created
  • Published
  • Downloads 99
  • Score
    100M100P100Q80937F
  • License MIT

Generate vim color schemes from simple templates

Package Exports

  • estilo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (estilo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Estilo

Generate full vim colorschemes from yaml templates with node.js

Install

npm install -g estilo

Usage

estilo mytemplate.yaml
# will generate mytemplate.vim

Template example

info:
  author: 'John Doe'
  scheme: 'supercolors'
  background: 'dark'
  description: 'A cool scheme'
  license: 'MIT'
  version: '0.0.1'
colors:
  dark: '#282828'
hilinks:
  Comment: '#aaaaaa dark'
  Constant: '#ff0000 #0000ff bi'
  Search: '@constant'

will generate:

"
" supercolors v0.0.1
" A cool scheme
" author: John Doe
" license: MIT
" background: dark
"
" This file was generated by *estilo*
" https://github.com/jacoborus/estilo

let colors_name="supercolors"
hi clear
if exists("syntax_on")
  syntax reset
endif
if has("gui_running")
  set background=dark
endif

hi Comment guifg=#aaaaaa ctermfg=248 guibg=#282828 ctermbg=235 gui=NONE cterm=NONE
hi Constant guifg=#ff0000 ctermfg=9 guibg=#0000ff ctermbg=12 gui=bold,italic cterm=bold,italic
hi link Search Constant