{"id":1286,"date":"2013-10-11T12:15:21","date_gmt":"2013-10-11T11:15:21","guid":{"rendered":"http:\/\/www.blopig.com\/blog\/?p=1286"},"modified":"2013-10-14T13:01:51","modified_gmt":"2013-10-14T12:01:51","slug":"life-in-colour-vim","status":"publish","type":"post","link":"https:\/\/www.blopig.com\/blog\/2013\/10\/life-in-colour-vim\/","title":{"rendered":"Life in Colour &#8211; Vim"},"content":{"rendered":"<p>Among programmers, there are occasional debates on what editor is best &#8212; some love Eclipse, some are die-hard Emacs supporters, or some have no preference, and use the default text editor(s) with their OS. Whatever your choice, you can never underestimate how useful Vim can be, e.g. if you SSH into another machine. And so, here is a vim config that I&#8217;ve been using (thanks to <a href=\"http:\/\/www.dtc.ox.ac.uk\/people\/12\/frot\/\">Ben Frot<\/a>), which makes your vim environment very colourful and easy to read. Code available <a href=\"http:\/\/www.stats.ox.ac.uk\/~leem\/vim_config\/\">here<\/a>.<\/p>\n<p>Plus, you can do awesome things in vim:<\/p>\n<div id=\"attachment_1289\" style=\"width: 635px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2013\/10\/screenshot.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" aria-describedby=\"caption-attachment-1289\" loading=\"lazy\" class=\"size-large wp-image-1289\" alt=\"Edit multiple files in Vim. Can get a little crazy but, hey, why not?\" src=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2013\/10\/screenshot.png?resize=625%2C390&#038;ssl=1\" width=\"625\" height=\"390\" srcset=\"https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2013\/10\/screenshot.png?resize=1024%2C640&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2013\/10\/screenshot.png?resize=300%2C187&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2013\/10\/screenshot.png?resize=624%2C390&amp;ssl=1 624w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2013\/10\/screenshot.png?w=1920&amp;ssl=1 1920w, https:\/\/i0.wp.com\/www.blopig.com\/blog\/wp-content\/uploads\/2013\/10\/screenshot.png?w=1250&amp;ssl=1 1250w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><p id=\"caption-attachment-1289\" class=\"wp-caption-text\">Edit multiple files in Vim. Can get a little crazy but, hey, why not?<\/p><\/div>\n<p>So, to do some of the crazier things (e.g. what I&#8217;ve shown in this blog post), try this:<\/p>\n<pre class=\"lang:default decode:true crayon-selected\"># Open a file of choice\r\n:e blah1.md\r\n\r\n# First split to two screens; change between screens by Ctrl + ww\r\n:split \r\n\r\n# Now open a second file\r\n:e blah2.md\r\n\r\n# Repeat for more screens &amp; lines.<\/pre>\n<p>Happy vim-ing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Among programmers, there are occasional debates on what editor is best &#8212; some love Eclipse, some are die-hard Emacs supporters, or some have no preference, and use the default text editor(s) with their OS. Whatever your choice, you can never underestimate how useful Vim can be, e.g. if you SSH into another machine. And so, [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","wikipediapreview_detectlinks":true,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ngg_post_thumbnail":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[],"ppma_author":[511],"class_list":["post-1286","post","type-post","status-publish","format-standard","hentry","category-code"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"authors":[{"term_id":511,"user_id":22,"is_guest":0,"slug":"jinwoo","display_name":"Jinwoo Leem","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/65d338dc0b03d3026aa9a98f5e43889ca6c9ac9d0f45fe65ea5931207597ce2d?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/1286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/comments?post=1286"}],"version-history":[{"count":6,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/1286\/revisions"}],"predecessor-version":[{"id":1297,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/posts\/1286\/revisions\/1297"}],"wp:attachment":[{"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/media?parent=1286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/categories?post=1286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/tags?post=1286"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.blopig.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=1286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}