{"id":13411502,"url":"https://github.com/tomasiser/vim-code-dark","last_synced_at":"2025-05-16T03:04:02.489Z","repository":{"id":17731565,"uuid":"82600564","full_name":"tomasiser/vim-code-dark","owner":"tomasiser","description":"Dark color scheme for Vim and vim-airline, inspired by Dark+ in Visual Studio Code","archived":false,"fork":false,"pushed_at":"2024-05-21T17:17:46.000Z","size":127,"stargazers_count":934,"open_issues_count":13,"forks_count":178,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-07-31T20:46:05.922Z","etag":null,"topics":["color-scheme","dark-theme","vim"],"latest_commit_sha":null,"homepage":"","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/tomasiser.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-02-20T20:41:51.000Z","updated_at":"2024-07-26T08:38:23.000Z","dependencies_parsed_at":"2024-04-12T03:40:20.352Z","dependency_job_id":"ee5a640c-d7d6-42af-b2ec-a1763654618a","html_url":"https://github.com/tomasiser/vim-code-dark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasiser%2Fvim-code-dark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasiser%2Fvim-code-dark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasiser%2Fvim-code-dark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasiser%2Fvim-code-dark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasiser","download_url":"https://codeload.github.com/tomasiser/vim-code-dark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459084,"owners_count":22074604,"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":["color-scheme","dark-theme","vim"],"created_at":"2024-07-30T20:01:14.107Z","updated_at":"2025-05-16T03:03:57.480Z","avatar_url":"https://github.com/tomasiser.png","language":"Vim Script","readme":"# vim-code-dark\n`vim-code-dark` is a dark **color scheme for [Vim](http://www.vim.org/)** heavily inspired by the look of the Dark+ scheme of [Visual Studio Code](https://code.visualstudio.com/). While many of the colors are same, there are additional colors for specific usage or reserved for future use. The scheme also defines specific GUI colors (e.g. popup menu) and fully supports [`vim-airline`](https://github.com/vim-airline/vim-airline).\n\n**:exclamation: To install and enable this colorscheme, [read installation instructions](#installation).**\n\n*This colorscheme does also support 256 and 8/16 color terminals. See [installation instructions](#installation) step 3.*\n\n## Screenshots\n\n### gVim / modern terminals\n![Ruby and NERDTree](https://cloud.githubusercontent.com/assets/10374559/23333137/b86efaa0-fb86-11e6-8c06-813f81c1f9bb.png)\n![Editing HTML and CSS](https://cloud.githubusercontent.com/assets/10374559/23344709/459972a2-fc81-11e6-9b50-c432d998caef.png)\n\n*Code samples [1](http://sandbox.mc.edu/~bennet/ruby/code/), [2](https://tmtheme-editor.herokuapp.com/), [`nerdtree`](https://github.com/scrooloose/nerdtree)*\n\n### Terminals with limited color support\n\n#### Fixed 256 colors\n![Terminal on Debian with 256 colors](https://cloud.githubusercontent.com/assets/10374559/23342967/e61e28c6-fc63-11e6-9ccf-d6189b9e1b61.png)\n\n#### Fixed 8/16 colors\n![Terminal on Debian with 16 colors](https://cloud.githubusercontent.com/assets/10374559/23341713/0e8dd778-fc4d-11e6-8430-b11f161305d7.png)\n\n## Installation\n\n### 1) Download\n\nSimply as any other Vim plugins: download manually or follow the standard procedure of your plugin manager:\n* [Vundle](https://github.com/gmarik/vundle)\n ```vim\n Plugin 'tomasiser/vim-code-dark'\n ```\n* [vim-plug](https://github.com/junegunn/vim-plug)\n```vim\nPlug 'tomasiser/vim-code-dark'\n```\n* [builtin package manager](https://vimhelp.org/repeat.txt.html#packages)\n```bash\n# Regular Vim\nmkdir -p ~/.vim/pack/themes/start\ncd ~/.vim/pack/themes/start\ngit clone https://github.com/tomasiser/vim-code-dark\n\n# Neovim\nmkdir -p ~/.local/share/nvim/site/pack/themes/start\ncd ~/.local/share/nvim/site/pack/themes/start\ngit clone https://github.com/tomasiser/vim-code-dark\n```\n\n### 2) Enable in `.vimrc`\n\nAdd the following line to your `.vimrc`:\n\n```vim\ncolorscheme codedark\n```\n\n### 3) Terminal support\n\n#### 3.1) If you use gVim / a modern terminal\n:+1: The colorscheme will work out of the box. No need to setup anything else!\n\n#### 3.2) If the colors seem to be wrong\nIf your terminal supports 256 colors (see [this script](http://www.robmeerman.co.uk/unix/256colours) if you want to test your terminal), you **may need to set `t_Co` to 256** and [possibly also reset the `t_ut` value](http://vi.stackexchange.com/questions/238/tmux-is-changing-part-of-the-background-in-vim) in your `.vimrc` before setting the colorscheme:\n```vim\nset t_Co=256\nset t_ut=\ncolorscheme codedark\n```\n\n(Additionally, if you don't want to or cannot use `t_Co`, you can `let g:codedark_term256=1`.)\n\n#### 3.3) If your terminal only supports 8/16 colors\n\n:exclamation: Before following those steps, first try step 3.2) - maybe your terminal does support 256 colors!\n\nIf your terminal does not support 256 colors, you may want to change your terminal colors:\n\n##### 3.3.1) Some Unix terminals\nClone [`base16-shell`](https://github.com/chriskempson/base16-shell/) into `~/.config/base16-shell`:\n\n```bash\ngit clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell\n```\n\nThen copy a script from this (`vim-code-dark`) repository (`base16/templates/shell/scripts/base16-codedark.sh`) into `~/.config/base16-shell/scripts`.\n\nFollowing the instructions from [`base16-shell`](https://github.com/chriskempson/base16-shell/), you should now modify your `~/.bashrc` or `~/.zshrc` (depending on your shell) and insert the following lines:\n\n```bash\nBASE16_SHELL=$HOME/.config/base16-shell/\n[ -n \"$PS1\" ] \u0026\u0026 [ -s $BASE16_SHELL/profile_helper.sh ] \u0026\u0026 eval \"$($BASE16_SHELL/profile_helper.sh)\"\n```\n\nNow start a new shell and type the following command: `base16_codedark`.\n\nYou should now be able to use Vim with your new colorscheme.\n\n##### 3.3.2) PuTTY\nPuTTY should actually support 256 colors, try following [steps on StackOverflow](http://superuser.com/questions/436910/emulate-256-colors-in-putty-terminal). If it does not work, run `base16/templates/putty/putty/base16-codedark.reg` to modify your registry, then run PuTTY and load `codedark` in the session list. This will modify your PuTTY terminal colors.\n\n## CUSTOMIZATION\n\n**:exclamation: To enable any of the following customizations, put the specific lines before setting the colorscheme**\n```vim\n\" If you don't like many colors and prefer the conservative style of the standard Visual Studio\nlet g:codedark_conservative=1\n\" If you like the new dark modern colors (Needs feedback!)\nlet g:codedark_modern=1\n\" Activates italicized comments (make sure your terminal supports italics)\nlet g:codedark_italics=1\n\" Make the background transparent\nlet g:codedark_transparent=1\n\" If you have vim-airline, you can also enable the provided theme\nlet g:airline_theme = 'codedark'\n\ncolorscheme codedark\n```\n\n## FAQ\n\n### The background color in my terminal is wrong when there is no text!\nTry resetting the `t_ut` value in your `.vimrc` as [described here](http://vi.stackexchange.com/questions/238/tmux-is-changing-part-of-the-background-in-vim):\n```vim\nset t_Co=256\nset t_ut=\ncolorscheme codedark\n```\n\n### Something is broken but I know how to fix it!\nPull requests are welcome! Feel free to send one with an explanation!\n\n### Why does file syntax not look exactly like in Visual Studio Code?\nBecause Vim uses different syntax rules. This is just a colorscheme for vim, not a syntax definition.\n\n### My favourite language has wrong / bad / awful colors!\nThere are a lot of syntax definitions with different highlight groups. Feel free to send a pull request with additional highlight groups!\n\n### What setup can I see on the first screenshots?\nScreenshots come from gVim on Windows with the following font options and [`vim-airline`](https://github.com/vim-airline/vim-airline) enabled.\n\n```vim\nset enc=utf-8\nset guifont=Powerline_Consolas:h11\nset renderoptions=type:directx,gamma:1.5,contrast:0.5,geom:1,renmode:5,taamode:1,level:0.5\n```\n\n## Color Palette\n\n![Color Palette](https://cloud.githubusercontent.com/assets/10374559/23341312/1961f416-fc45-11e6-83ba-d7180c5fdd6d.png)\n","funding_links":[],"categories":["Colorscheme","Vim Script"],"sub_categories":["Tree-sitter Supported Colorscheme","Assembly"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasiser%2Fvim-code-dark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasiser%2Fvim-code-dark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasiser%2Fvim-code-dark/lists"}