{"id":46,"date":"2014-11-19T11:40:10","date_gmt":"2014-11-19T09:40:10","guid":{"rendered":"https:\/\/serverstuff.info\/wordpress\/?p=46"},"modified":"2014-11-19T11:40:10","modified_gmt":"2014-11-19T09:40:10","slug":"vim-justify","status":"publish","type":"post","link":"https:\/\/serverstuff.info\/wordpress\/2014\/11\/19\/vim-justify\/","title":{"rendered":"vim justify"},"content":{"rendered":"<p>So, I got some text that I needed to look pretty, meaning all lines should be 96 chars wide but if more than 10 spaces would be needed to added in each line between words, it should remain the same&#8230; SO I looked at <a href=\"http:\/\/linux.die.net\/man\/1\/column\" title=\"column\">column<\/a>, <a href=\"http:\/\/www.nicemice.net\/par\/\" title=\"par\">par<\/a>, <a href=\"http:\/\/linux.die.net\/man\/1\/fmt\" title=\"fmt\">fmt<\/a>, <a href=\"https:\/\/www.gnu.org\/software\/emacs\/manual\/html_node\/emacs\/Fill-Commands.html\" title=\"emacs\">emacs<\/a> .. then settled on <a href=\"http:\/\/vim.wikia.com\/wiki\/Macros\" title=\"vim macros\">vim<\/a> !<\/p>\n<pre lang=\"bash\">\r\nmkdir ~\/.vim\r\nwget http:\/\/ftp.stust.edu.tw\/vim\/runtime\/macros\/justify.vim -O ~\/.vim\/justify.vim\r\necho \"so ~\/.vim\/justify.vim\" >> ~\/.vimrc\r\n<\/pre>\n<pre lang=\"vim\">\r\nshift v # this will start visual selection mode\r\nshift g # this will put you at the end of the file\r\n:'<,'>Justify 96 10\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>So, I got some text that I needed to look pretty, meaning all lines should be 96 chars wide but if more than 10 spaces would be needed to added in each line between words, it should remain the same&#8230; SO I looked at column, par, fmt, emacs .. then settled on vim ! mkdir &hellip; <a href=\"https:\/\/serverstuff.info\/wordpress\/2014\/11\/19\/vim-justify\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">vim justify<\/span> <span class=\"meta-nav\">&rarr;<\/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":[12],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-vim"],"_links":{"self":[{"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":1,"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/posts\/46\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverstuff.info\/wordpress\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}