{"id":283,"date":"2020-07-14T18:13:20","date_gmt":"2020-07-14T17:13:20","guid":{"rendered":"https:\/\/blog.thomarite.uk\/?p=283"},"modified":"2020-07-22T12:00:14","modified_gmt":"2020-07-22T11:00:14","slug":"vim-indent-multiple-lines-quickly","status":"publish","type":"post","link":"https:\/\/blog.thomarite.uk\/index.php\/2020\/07\/14\/vim-indent-multiple-lines-quickly\/","title":{"rendered":"VIM &#8211; Indent multiple lines quickly"},"content":{"rendered":"\n<p>This is the thing I have to do from time to time and I never remember how to do:<\/p>\n\n\n\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/235839\/indent-multiple-lines-quickly-in-vi\">https:\/\/stackoverflow.com\/questions\/235839\/indent-multiple-lines-quickly-in-vi<\/a><\/p>\n\n\n\n<p>And this what works for me:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Key presses for more visual people:\n1- Enter Command Mode:\nEscape\n\n2- Move around to the start of the area to indent:\nhjkl\u2191\u2193\u2190\u2192\n\n3- Start a block:\nv\n\n4- Move around to the end of the area to indent:\nhjkl\u2191\u2193\u2190\u2192\n\n5- Type the number of indentation levels you want\n0..9\n\n6- Execute the indentation on the block:\n><\/pre>\n\n\n\n<p>Let&#8217;s see if I can remember it&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the thing I have to do from time to time and I never remember how to do: https:\/\/stackoverflow.com\/questions\/235839\/indent-multiple-lines-quickly-in-vi And this what works for me: Key presses for more visual people: 1- Enter Command Mode: Escape 2- Move around to the start of the area to indent: hjkl\u2191\u2193\u2190\u2192 3- Start a block: v 4- &hellip; <a href=\"https:\/\/blog.thomarite.uk\/index.php\/2020\/07\/14\/vim-indent-multiple-lines-quickly\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;VIM &#8211; Indent multiple lines quickly&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,26],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-unix","category-vim"],"_links":{"self":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":3,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/283\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}