{"id":154,"date":"2014-04-20T18:06:16","date_gmt":"2014-04-20T18:06:16","guid":{"rendered":"http:\/\/int03.co.uk\/blog\/?p=154"},"modified":"2015-01-04T11:12:15","modified_gmt":"2015-01-04T11:12:15","slug":"nano-tabs-and-line-numbers","status":"publish","type":"post","link":"https:\/\/int03.co.uk\/blog\/2014\/04\/20\/nano-tabs-and-line-numbers\/","title":{"rendered":"Nano Tabs and Line Numbers"},"content":{"rendered":"<p>To make the nano text editor nicer to use for development, you can change the tab size to 4 spaces, set it to convert tabs to spaces, make it always display line and character numbers and enable multiple file buffers.\u00a0Since I always forget how, here are the settings that go in the ~\/.nanorc file:<\/p>\n<pre>set tabsize 4\r\nset tabstospaces\r\nset const\r\nset multibuffer<\/pre>\n<p>The multiple file buffer feature is really useful, as you can load multiple files with CTRL+R and quickly switch between them with ESC follow by &gt; or &lt;.<\/p>\n<p>Sometimes you need hard tabs (in a Makefile for example). To achieve this, the\u00a0-I flag can be used to ignore the .nanorc file for Makefiles:<\/p>\n<pre>nano -I Makefile<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To make the nano text editor nicer to use for development, you can change the tab size to 4 spaces, set it to convert tabs to spaces, make it always display line and character numbers and enable multiple file buffers.\u00a0Since I always forget how, here are the settings that go in the ~\/.nanorc file: set &hellip; <a href=\"https:\/\/int03.co.uk\/blog\/2014\/04\/20\/nano-tabs-and-line-numbers\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Nano Tabs and Line Numbers<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/posts\/154"}],"collection":[{"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":3,"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/posts\/154\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/int03.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}