{"id":14636,"date":"2026-09-16T01:00:00","date_gmt":"2026-09-16T05:00:00","guid":{"rendered":"https:\/\/www.both.org\/?p=14636"},"modified":"2026-09-12T19:47:24","modified_gmt":"2026-09-12T23:47:24","slug":"my-5-favorite-vim-color-schemes-for-coding","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=14636","title":{"rendered":"My 5 favorite Vim color schemes for coding"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"14636\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p class=\"wp-block-paragraph\">I do a lot of my work in a terminal window. When I need to edit a shell script or write a short program, I just do it there in my terminal. My favorite visual editor for these kinds of short programs is Vim, the <em>improved<\/em> version of the classic Unix <strong>vi<\/strong> editor. I find I can quickly make the edits that I need using Vim, then get right back to work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But just because Vim is a terminal-mode editor doesn\u2019t mean you\u2019re stuck with boring black and white text. Vim supports a wide assortment of color schemes, with highlighting support for programming and scripting languages. Highlighting helps me to spot syntax errors in my code before they become bugs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I wanted to explore the color schemes in Vim, so I created a montage showing all of the color schemes included in Vim 9.2, the current version of Vim. Each shows the same C program (a simple \u201cguess the number\u201d program) that demonstrates highlighting for comments, <em>include<\/em> statements, <em>main<\/em> program, <em>while<\/em> loop, and <em>if<\/em> statements.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2916\" height=\"1780\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/vim92colors.png\" alt=\"Montage image of 28 Vim color schemes\" class=\"wp-image-14630\"\/><figcaption class=\"wp-element-caption\">All 28 Vim color schemes<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Many of these themes are quite nice. When working in a terminal window, I prefer to keep some variation of my terminal colors: light text on a dark background. Highlighting shouldn\u2019t be too \u201cglaring\u201d but it should be noticeable. These 5 terminal-mode color schemes look best to me:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Retrobox<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I have been using this theme for some time. It\u2019s easy on the eyes, and provides just enough highlighting to see the important parts of my program. I especially like how the comment line uses a \u201cmuted\u201d color so it\u2019s still visible but clearly not a code line.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"354\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/vim92retrobox.png\" alt=\"Vim color scheme with light yellow text on a dark background\" class=\"wp-image-14635\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Darkblue<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There\u2019s something about this color scheme that reminds me of working on old DOS systems. Similar to the Blue color scheme, this theme uses a blue background with white text, but the background color is a much darker that I find easier to read. I also like the light blue comment color, and the not-too-bright code highlighting.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"354\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/vim92darkblue.png\" alt=\"Vim color scheme with white text on a blue background\" class=\"wp-image-14631\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Quiet<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019re looking for a color scheme that provides minimal highlighting, then Quiet is the theme for you. It uses the terminal\u2019s colors, but provides subtle highlighting for comments and a few other things. Fans of the classic Unix <strong>vi<\/strong> will want to try this theme.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"354\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/vim92quiet.png\" alt=\"Vim color scheme with white text on a black background\" class=\"wp-image-14634\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Habamax<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I like the Habamax color scheme because the highlighting isn\u2019t too strong in my terminal, but it\u2019s just enough to help me spot coding errors along the way. Note that highlighting for numbers, code, keywords, and strings are all distinct. This is a good all-around theme if you prefer a muted palette.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"354\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/vim92habamax.png\" alt=\"Vim color scheme with light and muted colors on a black background\" class=\"wp-image-14632\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Novum<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Novum color scheme is just a good all-around theme. Keywords are highlighted in a bright white color, and strings are a light green. It\u2019s almost like the Quiet theme, but with a few muted colors. Maybe not the best color scheme if you\u2019re doing a lot of coding, especially without extra highlighting for keywords or numbers, but it\u2019s great for making quick edits.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"354\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2026\/09\/vim92novum.png\" alt=\"Vim color scheme with light text on a dark background\" class=\"wp-image-14633\"\/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">To apply a color scheme to Vim, edit your <em>vimrc<\/em> file, such as <em>~\/.vimrc<\/em> or <em>~\/.vim\/vimrc<\/em> and add a <strong>colorscheme<\/strong> line that names the theme you like best. For example, to make Habamax the default color theme whenever you start Vim, add this line to your <em>vimrc<\/em> file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>colorscheme habamax<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Vim includes a wide assortment of color schemes. Find the one you like best.<\/p>\n","protected":false},"author":33,"featured_media":7678,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[150,219],"tags":[152,220],"class_list":["post-14636","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-vim","tag-programming","tag-vim"],"modified_by":"Jim Hall","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14636"}],"version-history":[{"count":3,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14636\/revisions"}],"predecessor-version":[{"id":14647,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14636\/revisions\/14647"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/7678"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}