{"id":302,"date":"2020-11-05T17:05:24","date_gmt":"2020-11-06T01:05:24","guid":{"rendered":"http:\/\/bornski.com\/maria\/blog\/?p=302"},"modified":"2022-11-21T13:54:04","modified_gmt":"2022-11-21T21:54:04","slug":"quick-vimrc-for-golang","status":"publish","type":"post","link":"https:\/\/bornski.com\/maria\/blog\/2020\/11\/05\/quick-vimrc-for-golang\/","title":{"rendered":"Quick .vimrc for golang"},"content":{"rendered":"\n<p>Like vim?  Hate tabs, but are writing some golang, which insists on tabs?  Here&#8217;s what I just updated my .vimrc to today:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set expandtab\nset tabstop=4\nset ruler\nsyntax on\nif has('autocmd')\n    filetype on\n    if !exists(\"autocommands_loaded\")\n        let autocommands_loaded = 1\n        autocmd FileType go setlocal noexpandtab\n    endif\nendif<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Like vim? Hate tabs, but are writing some golang, which insists on tabs? Here&#8217;s what I just updated my .vimrc to today:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[28],"tags":[31,30,32,33,29],"_links":{"self":[{"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/posts\/302"}],"collection":[{"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":1,"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"predecessor-version":[{"id":303,"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/posts\/302\/revisions\/303"}],"wp:attachment":[{"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bornski.com\/maria\/blog\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}