{"id":9663,"date":"2017-06-07T09:16:32","date_gmt":"2017-06-07T08:16:32","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=9663"},"modified":"2017-06-07T09:16:32","modified_gmt":"2017-06-07T08:16:32","slug":"how-to-use-vi","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/9663-how-to-use-vi.html","title":{"rendered":"How to use Vi: a minimalist guide"},"content":{"rendered":"<p>Occasionally you may find Vi is the only editor available. To use it to edit somefile.txt type:<\/p>\n<p>vi somefile.txt<\/p>\n<p>Now type:<\/p>\n<p>i<\/p>\n<p>This puts you into insert mode and you can type. Type something.<\/p>\n<p>When you are done, type the Esc key to go back to command mode. Type:<\/p>\n<p>ZZ<\/p>\n<p>(must be upper case) to save the file and quit.<\/p>\n<p>If you don\u2019t want to save, type:<\/p>\n<p>:q!<\/p>\n<p>to quit without saving.<\/p>\n<p>At this point I am tempted to add all sorts of other tips, like \/ to search, but then this would not be a minimalist guide!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occasionally you may find Vi is the only editor available. To use it to edit somefile.txt type: vi somefile.txt Now type: i This puts you into insert mode and you can type. Type something. When you are done, type the Esc key to go back to command mode. Type: ZZ (must be upper case) to &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/9663-how-to-use-vi.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to use Vi: a minimalist guide<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,88],"tags":[945],"class_list":["post-9663","post","type-post","status-publish","format-standard","hentry","category-professional","category-tips","tag-vi"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/9663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=9663"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/9663\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=9663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=9663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=9663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}