{"id":705,"date":"2011-06-12T19:20:00","date_gmt":"2011-06-12T19:20:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=705"},"modified":"2022-11-05T10:53:43","modified_gmt":"2022-11-05T10:53:43","slug":"vi-find-and-replace-example","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=705","title":{"rendered":"Vi Find and Replace Example"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Here is an example of find and replace with VI, this will replace every instance of the &#8220;findthistext&#8221; string in the file with &#8220;replacewithtext&#8221;. Neat saves lots of typing!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>:%s\/findthistext\/replacewithtext\/g<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is an example of find and replace with VI, this will replace every instance of the &#8220;findthistext&#8221; string in the file with &#8220;replacewithtext&#8221;. Neat saves lots of typing!<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-705","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=705"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/705\/revisions"}],"predecessor-version":[{"id":1572,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/705\/revisions\/1572"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}