{"id":4000,"date":"2014-04-06T23:32:44","date_gmt":"2014-04-07T03:32:44","guid":{"rendered":"http:\/\/www.jerslife.com\/word\/?p=4000"},"modified":"2014-04-06T23:34:18","modified_gmt":"2014-04-07T03:34:18","slug":"vim-colors","status":"publish","type":"post","link":"http:\/\/www.jerslife.com\/word\/vim-colors","title":{"rendered":"Vim Colors"},"content":{"rendered":"<p>First thing to do if I&#8217;m going to use Vim as my default text editor, is to get the colors looking good.<\/p>\n<p>First, I&#8217;ve downloaed a theme (for example distinguished.vim) and placed it in my newly created <code>~\/.vim\/colors<\/code> folder.<\/p>\n<p>Next, I created a <code>~\/.vimrc<\/code> file and entered the following contents:<br \/>\n<code><br \/>\nsyntax on<br \/>\ncolorscheme distinguished<br \/>\nset t_Co=256<br \/>\n<\/code><\/p>\n<p>Finally, if I type in <code>tput colors<\/code> into a terminal window, it tells me I have 8 colors. Even though my themes still appear to work in Vim, an error gets reported upon opening Vim.<\/p>\n<p>To fix this error, I&#8217;ve edited my <code>~\/.bashrc<\/code> file and entered the following line.<\/p>\n<p><code>export TERM=xterm-256color<\/code><\/p>\n<p>Now <code>tput colors<\/code> reports 256 colors and Vim no longer reports an error when automatically loading my <code>distinguished.vim<\/code> file.<\/p>\n<p>For those looking for a new Vim color theme,<a href=\"http:\/\/vimcolorschemetest.googlecode.com\/svn\/html\/index-html.html\" title=\"themes on google code\"> here&#8217;s a good place to look<\/a> and another <a href=\"http:\/\/www.vimninjas.com\/2012\/08\/26\/10-vim-color-schemes-you-need-to-own\/\">list of 10 good ones via VimNinjas<\/a>.<\/p>\n<p>I must admit though&#8230;  colors still seem to be a bit wacky for me, as they don&#8217;t match the theme examples listed on the web page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First thing to do if I&#8217;m going to use Vim as my default text editor, is to get the colors looking good. First, I&#8217;ve downloaed a theme (for example distinguished.vim) and placed it in my newly created ~\/.vim\/colors folder. Next, I created a ~\/.vimrc file and entered the following contents: syntax on colorscheme distinguished set [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[81,218,756],"_links":{"self":[{"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/posts\/4000"}],"collection":[{"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/comments?post=4000"}],"version-history":[{"count":3,"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/posts\/4000\/revisions"}],"predecessor-version":[{"id":4003,"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/posts\/4000\/revisions\/4003"}],"wp:attachment":[{"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/media?parent=4000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/categories?post=4000"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jerslife.com\/word\/wp-json\/wp\/v2\/tags?post=4000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}