{"id":19179265,"url":"https://github.com/nearhuscarl/vim-color-config","last_synced_at":"2026-04-18T00:32:14.881Z","repository":{"id":98240485,"uuid":"115453129","full_name":"NearHuscarl/vim-color-config","owner":"NearHuscarl","description":"Generate vim colorscheme file from simple yaml config","archived":false,"fork":false,"pushed_at":"2018-02-09T22:38:24.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T01:35:45.747Z","etag":null,"topics":["color-scheme","vim","vim-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NearHuscarl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-26T20:35:42.000Z","updated_at":"2017-12-26T20:41:34.000Z","dependencies_parsed_at":"2023-05-18T21:45:20.393Z","dependency_job_id":null,"html_url":"https://github.com/NearHuscarl/vim-color-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NearHuscarl/vim-color-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NearHuscarl%2Fvim-color-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NearHuscarl%2Fvim-color-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NearHuscarl%2Fvim-color-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NearHuscarl%2Fvim-color-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NearHuscarl","download_url":"https://codeload.github.com/NearHuscarl/vim-color-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NearHuscarl%2Fvim-color-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31951307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color-scheme","vim","vim-plugin"],"created_at":"2024-11-09T10:42:38.207Z","updated_at":"2026-04-18T00:32:14.841Z","avatar_url":"https://github.com/NearHuscarl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Colorscheme config\n\nGenerate vim colorscheme file from simple yaml config\n\n#### Input\n``` yaml\nname: example\nauthor:\n   name: Near Huscarl\n   email: near.huscarl@gmail.com\nlicense: BSD 3-Clauses\nnote: sample color config for demonstartion purpse only\noption:\n   transparent: true\n   background: dark\npalette:\n   # color name         gui         cterm    optional\n   dark:             ['#1F2D3A',      0,     'black'    ]\n   yellow:           ['#F39C12',      3,     'yellow'   ]\n   blue:             ['#2980B9',      4,     'blue'     ]\n   gray:             ['#84888B',      7,     'lightgray']\n   red:              ['#E74C3C',      9,     'lightred' ]\n   white:            ['#ECF0F1',      15,    'white'    ]\ngroup:\n   #              fg          bg         attr\n   Normal:        white       dark       _\n   LineNr:        gray        dark       _\n   Error:         red         _          reverse\n   Identifier:    blue        _          _\n   Ignore:        _           _          _\n   Statement:     yellow      _          _\nlink:\n   - Conditional     -\u003e       Statement\n   - PreProc         -\u003e       Error\n```\n\n#### Output\n``` vim\n\" ==============================================================\n\" File:        example.vim\n\" Description: example colorscheme\n\" Author:      Near Huscarl \u003cnear.huscarl@gmail.com\u003e\n\" Last Change: Wed Dec 27 02:00:11 +07 2017\n\" Licence:     BSD 3-Clauses\n\" Note:        sample color config for demonstartion purpse only\n\" ==============================================================\n\n\" Name    Hex      Rgb                 Xterm\n\" ==========================================\n\" dark    #1F2D3A  rgb(31, 45, 58)     0\n\" yellow  #F39C12  rgb(243, 156, 18)   3\n\" blue    #2980B9  rgb(41, 128, 185)   4\n\" gray    #84888B  rgb(132, 136, 139)  7\n\" red     #E74C3C  rgb(231, 76, 60)    9\n\" white   #ECF0F1  rgb(236, 240, 241)  15\n\nhi clear\n\nif exists('syntax_on')\n\tsyntax reset\nendif\n\nlet colors_name = 'example'\nset background=dark\n\nif ($TERM =~ '256' || \u0026t_Co \u003e= 256) || has('gui_running')\n\thi Normal     ctermfg=15   ctermbg=NONE guifg=#ECF0F1 guibg=#1F2D3A cterm=NONE      gui=NONE\n\thi LineNr     ctermfg=7    ctermbg=NONE guifg=#84888B guibg=#1F2D3A cterm=NONE      gui=NONE\n\thi Error      ctermfg=9    ctermbg=NONE guifg=#E74C3C guibg=NONE    cterm=reverse   gui=reverse\n\thi Identifier ctermfg=4    ctermbg=NONE guifg=#2980B9 guibg=NONE    cterm=NONE      gui=NONE\n\thi Ignore     ctermfg=NONE ctermbg=NONE guifg=NONE    guibg=NONE    cterm=NONE      gui=NONE\n\thi Statement  ctermfg=3    ctermbg=NONE guifg=#F39C12 guibg=NONE    cterm=NONE      gui=NONE\nendif\n\nhi link Conditional Statement\nhi link PreProc     Error\n```\n\n## Dependency\n* python3\n* pyyaml (python package)\n``` bash\n$ pip install pyyaml\n```\n\n## Installation\n\n#### Pathogen\n``` bash\ncd ~/.vim/bundle\ngit clone https://github.com/NearHuscarl/vim-color-config.git\n# vim -u NONE -c \"helptags vim-color-config/doc\" -c q\n```\n\n#### Vim-plug\n``` vim\nPlug 'NearHuscarl/vim-color-config'\n```\n\n#### Vundles\n``` vim\nPlugin 'NearHuscarl/vim-color-config'\n```\n\n## Usage\n\nQuickstart using default settings\n\nCreate the config file in yaml format in `~/.vim/colors/example.yaml`\n\n**Note:** On window, the path should be `~\\vimfiles\\colors\\example.yaml`\n\nHere is the minimal config:\n\n``` yaml\nname: example\nauthor:\n   name: Near Huscarl\n   email: near.huscarl@gmail.com\npalette:\n   # color name         gui         cterm    optional\n   dark:             ['#1F2D3A',      0,     'black'    ]\n   white:            ['#ECF0F1',      15,    'white'    ]\ngroup:\n   #              fg          bg         attr\n   Normal:        white       dark       _\n```\n\nSave the file and type `:ColorConfigGenerate`\n\nNow you have a new colorshcheme file in the same directory, in this case\n`~/.vim/colors/example.vim`\n\n## Options\n\n| option                       | default      |\n| :--------------------------- | :-------     |\n| `g:color_config_debug`       | `0`          |\n| `g:color_config_output_path` | `'cwd'`      |\n| `g:color_config_options`     | `['indent']` |\n\n**Note**: `g:color_config_output_path` is absolute path or relative path to `getcwd()`\n\n#### Example\n``` vim\nlet g:color_config_debug = 1\nlet g:color_config_output_path = '$HOME/.vim/colors/'\nlet g:color_config_options = ['callgraph', 'no-overwrite']\n```\n\n## Commandline Usage\n```bash\n$ cd path/to/this/plugin\n$ python plugin/color_config.py -h\nusage: color_config.py [-h] [-d [DEST]] [-cg] [-i] [-now] filename\n\nGenerate vim colorscheme file from simplilfied yaml config file\n\npositional arguments:\n  filename              yaml file path to parse\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -d [DEST], --dest [DEST]\n                        destination path for generated colorscheme file,\n                        default is current directory\n  -cg, --callgraph      generate functions callgraph\n  -i, --indent          indent colorscheme file using vim editor\n  -now, --no-overwrite  throw error if target file has already existed\n```\n\n**Note**: Your vim dont have to be compiled with python (+python) because\nthe source file `source/color_config.py` can act as a standalone command.\nThis plugin is just a wrapper around that command\n\n## Related Works\n* [colortemplate](https://github.com/lifepillar/vim-colortemplate) by [lifepillar](https://github.com/lifepillar)\n* [rnb](https://gist.github.com/romainl/5cd2f4ec222805f49eca) by [romainl](https://github.com/romainl)\n\n## Todo\n* Add docs\n* Add option to auto reload on save\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnearhuscarl%2Fvim-color-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnearhuscarl%2Fvim-color-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnearhuscarl%2Fvim-color-config/lists"}