{"id":13898687,"url":"https://github.com/gerardbm/vim-atomic","last_synced_at":"2025-07-17T16:30:36.925Z","repository":{"id":101739326,"uuid":"91928263","full_name":"gerardbm/vim-atomic","owner":"gerardbm","description":"Atomic color scheme for Vim, Neovim and Gvim","archived":false,"fork":false,"pushed_at":"2025-06-14T15:08:11.000Z","size":1881,"stargazers_count":16,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T16:23:55.731Z","etag":null,"topics":["colorscheme","palette","vim"],"latest_commit_sha":null,"homepage":"https://github.com/gerardbm/atomic","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gerardbm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2017-05-21T02:26:56.000Z","updated_at":"2025-06-14T15:08:15.000Z","dependencies_parsed_at":"2024-02-28T06:12:31.017Z","dependency_job_id":"4fcb52f0-c851-4195-b6ec-c0ec8364b0ac","html_url":"https://github.com/gerardbm/vim-atomic","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gerardbm/vim-atomic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardbm%2Fvim-atomic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardbm%2Fvim-atomic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardbm%2Fvim-atomic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardbm%2Fvim-atomic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerardbm","download_url":"https://codeload.github.com/gerardbm/vim-atomic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerardbm%2Fvim-atomic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265629783,"owners_count":23801472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["colorscheme","palette","vim"],"created_at":"2024-08-06T18:04:24.344Z","updated_at":"2025-07-17T16:30:36.919Z","avatar_url":"https://github.com/gerardbm.png","language":"Vim Script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# Atomic for Vim/Neovim\n\nVim-atomic is a dark \u0026 light color scheme designed to use on vim, gvim and neovim. It consists of 16 colors selected procedurally (algorithms) and it's part of a bigger project: [Atomic](https://github.com/gerardbm/atomic), which also includes themes and color schemes for terminals (URxvt, XTerm) and some terminal programs (tmux, zsh, irssi, cmus).\n\n![Atomic Space Screenshot](https://github.com/gerardbm/vim-atomic/blob/master/img/Atomic-Space-Mode.png)\n\n![Atomic Night Screenshot](https://github.com/gerardbm/vim-atomic/blob/master/img/Atomic-Night-Mode.png)\n\n![Atomic Old Book Screenshot](https://github.com/gerardbm/vim-atomic/blob/master/img/Atomic-Old-Book-Mode.png)\n\nAtomic has support for 8, 16 and 256 colors, and *True Color* (24 bits) on the last versions of vim, gvim, neovim and nvim-qt. It uses the setting `termguicolors` properly (some color schemes don't).\n\nIt also includes 7 modes of color (6 darks and 1 light):\n- Space mode is dark with teal hue (260°).\n- Onion mode is dark with purple hue (293°).\n- Blood mode is dark with red hue (10°).\n- Night mode is dark with orange hue (55°).\n- Grass mode is dark with green hue (110°).\n- Ocean mode is dark with blue hue (222°).\n- Light mode is light with orange hue (55°).\n\nEach mode has 3 contrasts:\n\n- High contrast (HC), +3%\n- Medium contrast (MC), 0\n- Low contrast (LC), -3%\n\n## Installation\n\n#### Manual installation\n\n1. Copy the file `atomic.vim` to your `~/.vim/colors/` directory (for vim) or `~/.config/nvim/colors/` directory (for neovim).\n\n```bash\n$ cd vim-atomic\n$ cp atomic.vim ~/.vim/colors/\n```\n\n#### Using a plugin manager (i.e., [vim-plug](https://github.com/junegunn/vim-plug))\n\n1. Paste this in your `.vimrc` file:\n```viml\nPlug 'gerardbm/vim-atomic'\n```\n2. Reload your settings and install it:\n```viml\n:source $MYVIMRC\n:PlugInstall\n```\n\n#### Modify your .vimrc\n\n1. Set the colorscheme in your `.vimrc` configuration file:\n```viml\nsyntax enable\ncolorscheme atomic\n```\n\n## Configuration\n\n#### Color support\n\nIf your terminal does not support *True color*, you can take a look at the main [Atomic](https://github.com/gerardbm/atomic) repository to see if Atomic colors are available for your terminal and how to install them.\n\nIf your terminal supports *True color* (1), you can enable it configuring your `~/.vimrc` file with the setting `set termguicolors` (2) **before** the color scheme definition (`colorscheme atomic`).\n\n---\n\n1. See [https://gist.github.com/XVilka/8346728](https://gist.github.com/XVilka/8346728) for a list of terminals that support *True color*.\n\n2. Sometimes setting `termguicolors` is not enough and one has to set the `t_8f` and `t_8b` options explicitly, also **before** the color scheme definition:\n\n```viml\nif has(\"termguicolors\")\n\tlet \u0026t_8f = \"\\\u003cEsc\u003e[38;2;%lu;%lu;%lum\"\n\tlet \u0026t_8b = \"\\\u003cEsc\u003e[48;2;%lu;%lu;%lum\"\n\tset termguicolors\nendif\n```\n\nUse it when `$TERM` is not `xterm`, for example, running vim into tmux or using a terminal with different `$TERM`, like st case.\n\nMore info, see `:h xterm-true-color`.\n\n#### Color palettes\n\nIf your terminal have *True color* support or if you are using a GUI (like gvim or nvim-qt), you have the following commands to switch between the different color palettes:\n\n- (1) `AtomicSpaceHC`: sets the space mode (teal hue, dark background) in high contrast (+3%).\n- (2) `AtomicSpaceMC`: sets the space mode (teal hue, dark background) in medium contrast (default).\n- (3) `AtomicSpaceLC`: sets the space mode (teal hue, dark background) in soft contrast (-3%).\n- (4) `AtomicOnionHC`: sets the onion mode (purple hue, dark background) in high contrast (+3%).\n- (5) `AtomicOnionMC`: sets the onion mode (purple hue, dark background) in medium contrast (default).\n- (6) `AtomicOnionLC`: sets the onion mode (purple hue, dark background) in soft contrast (-3%).\n- (7) `AtomicBloodHC`: sets the blood mode (red hue, dark background) in high contrast (+3%).\n- (8) `AtomicBloodMC`: sets the blood mode (red hue, dark background) in medium contrast (default).\n- (9) `AtomicBloodLC`: sets the blood mode (red hue, dark background) in soft contrast (-3%).\n- (10) `AtomicNightHC`: sets the night mode (orange hue, dark background) in high contrast (+3%).\n- (11) `AtomicNightMC`: sets the night mode (orange hue, dark background) in medium contrast (default).\n- (12) `AtomicNightLC`: sets the night mode (orange hue, dark background) in soft contrast (-3%).\n- (13) `AtomicGrassHC`: sets the grass mode (green hue, dark background) in high contrast (+3%).\n- (14) `AtomicGrassMC`: sets the grass mode (green hue, dark background) in medium contrast (default).\n- (15) `AtomicGrassLC`: sets the grass mode (green hue, dark background) in soft contrast (-3%).\n- (16) `AtomicOceanHC`: sets the ocean mode (blue hue, dark background) in high contrast (+3%).\n- (17) `AtomicOceanMC`: sets the ocean mode (blue hue, dark background) in medium contrast (default).\n- (18) `AtomicOceanLC`: sets the ocean mode (blue hue, dark background) in soft contrast (-3%).\n- (19) `AtomicLightHC`: sets the light mode (orange hue, light background) in high contrast (+3%).\n- (20) `AtomicLightMC`: sets the light mode (orange hue, light background) in medium contrast (default).\n- (21) `AtomicLightLC`: sets the light mode (orange hue, light background) in soft contrast (-3%).\n- (22) `AtomicOldBook`: sets the light mode (orange hue, sepia background) in high contrast (+2%).\n\nUse one of them **after** the color scheme definition in your `~/.vimrc` or `~/.gvimrc`.\n\nSwitch them automatically depending on the current time. For example, if you would like to use the AtomicLightHC between 8 am and 8 pm and switch to AtomicNightHC at night, simply paste this in your `~/.vimrc` or `~/.gvimrc`:\n\n```viml\nfunction! AtomicSwitcher()\n\tif (strftime('%H') \u003e 8) \u0026\u0026 (strftime('%H') \u003c 20)\n\t\tAtomicLightMC\n\telse\n\t\tAtomicNightHC\n\tendif\nendfunction\n```\n\nAlternatively, you can cycle them (from 1 to 22) with a shortcut (for example: \u003ckbd\u003eShift\u003c/kbd\u003e+\u003ckbd\u003eF9\u003c/kbd\u003e). Paste this in your `~/.vimrc` or `~/.gvimrc`:\n\n```viml\nnnoremap \u003cS-F9\u003e :call CycleModes()\u003cCR\u003e:colorscheme atomic\u003cCR\u003e\n```\n\n#### Emphasis\n\nSome terminals don't handle italics correctly, so in case you need to disable italics set `let g:atomic_italic=0` in your `~/.vimrc`, **before** the color scheme definition.\n\nFull list of options to disable italic text, bold, underline and undercurl:\n\n```viml\nlet g:atomic_italic = 0\nlet g:atomic_bold = 0\nlet g:atomic_underline = 0\nlet g:atomic_undercurl = 0\n```\n\nIf this options are not defined, default value is 1 for all of them.\n\n#### MatchParen highlight\n\nBy default, Atomic will use an orange color to highlight the background for `MatchParen`. To use the orange color for the foreground instead, use the following option:\n\n```viml\nlet g:atomic_matchparen = 0\n```\n\nAs with emphasis cases, add this to your `~/.vimrc`, **before** the color scheme definition.\n\n#### Example configuration\n\n```viml\nif has(\"termguicolors\")\n\tlet \u0026t_8f = \"\\\u003cEsc\u003e[38;2;%lu;%lu;%lum\"\n\tlet \u0026t_8b = \"\\\u003cEsc\u003e[48;2;%lu;%lu;%lum\"\n\tset termguicolors\nendif\n\nsyntax enable\n\nlet g:atomic_italic = 0\ncolorscheme atomic\nAtomicNightMC\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerardbm%2Fvim-atomic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerardbm%2Fvim-atomic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerardbm%2Fvim-atomic/lists"}