{"id":37,"date":"2016-08-11T13:01:41","date_gmt":"2016-08-11T17:01:41","guid":{"rendered":"https:\/\/fs.wp.odu.edu\/sobrien\/?p=37"},"modified":"2016-08-11T15:17:01","modified_gmt":"2016-08-11T19:17:01","slug":"vim-in-os-x","status":"publish","type":"post","link":"https:\/\/fs.wp.odu.edu\/sobrien\/2016\/08\/11\/vim-in-os-x\/","title":{"rendered":"up-to-date vim in os x"},"content":{"rendered":"<p>MacPorts current vim is 7.4 and the version shipping with El Capitan is 7.3.<\/p>\n<p>So&#8230;<\/p>\n<p><code>$ sudo port install vim<\/code><\/p>\n<p>then<\/p>\n<p><code>$ cd ~<br \/>\n$ vim .bash_profile<\/code><\/p>\n<p>paste in:<br \/>\n<code># Use the up-to-date MacPorts vim<br \/>\nalias='\/opt\/local\/bin\/vim'<br \/>\n# Life is good, so is vi<br \/>\nexport EDITOR=\/opt\/local\/bin\/vim<\/code><\/p>\n<p>you&#8217;re done. Consider <a href=\"https:\/\/fs.wp.odu.edu\/sobrien\/2016\/08\/09\/keeping-macports-up-to-date\/\">portsUpdate<\/a> to keep it up-to-date daily.<\/p>\n<p><a href=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.56.11-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38\" src=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.56.11-PM.png\" alt=\"Screen Shot 2016-08-11 at 12.56.11 PM\" width=\"524\" height=\"148\" srcset=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.56.11-PM.png 524w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.56.11-PM-300x85.png 300w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.30.31-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-39\" src=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.30.31-PM.png\" alt=\"Screen Shot 2016-08-11 at 12.30.31 PM\" width=\"556\" height=\"667\" srcset=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.30.31-PM.png 1436w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.30.31-PM-250x300.png 250w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.30.31-PM-853x1024.png 853w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.29.50-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40\" src=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.29.50-PM.png\" alt=\"Screen Shot 2016-08-11 at 12.29.50 PM\" width=\"682\" height=\"475\" srcset=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.29.50-PM.png 1926w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.29.50-PM-300x209.png 300w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-11-at-12.29.50-PM-1024x712.png 1024w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MacPorts current vim is 7.4 and the version shipping with El Capitan is 7.3. So&#8230; $ sudo port install vim then $ cd ~ $ vim .bash_profile paste in: # Use the up-to-date MacPorts vim alias=&#8217;\/opt\/local\/bin\/vim&#8217; # Life is good, so is vi export EDITOR=\/opt\/local\/bin\/vim you&#8217;re done. Consider portsUpdate to keep it up-to-date daily.<\/p>\n","protected":false},"author":3412,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wds_primary_category":0},"categories":[6,4,2,3,8],"tags":[],"_links":{"self":[{"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/posts\/37"}],"collection":[{"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/users\/3412"}],"replies":[{"embeddable":true,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":4,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/posts\/37\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}