{"id":1730,"date":"2014-01-16T13:39:34","date_gmt":"2014-01-16T13:39:34","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=1730"},"modified":"2014-01-16T13:39:34","modified_gmt":"2014-01-16T13:39:34","slug":"vi-vim-visual-improved","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=1730","title":{"rendered":"Vi \/ Vim &#8220;VIsual IMproved&#8221;"},"content":{"rendered":"<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n:%s\/foo\/bar\/g        Find each occurrence of 'foo' (in all lines), and replace it with 'bar'. \r\n\r\n:s\/foo\/bar\/g         Find each occurrence of 'foo' (in the current line only), and replace it with 'bar'. \r\n\r\n:%s\/foo\/bar\/gc       Change each 'foo' to 'bar', but ask for confirmation first. \r\n\r\n:%s\/\\&lt;foo\\&gt;\/bar\/gc   Change only whole words exactly matching 'foo' to 'bar'; ask for confirmation. \r\n\r\n:%s\/foo\/bar\/gci      Change each 'foo' (case insensitive) to 'bar'; ask for confirmation. \r\n                     This may be wanted after using :set noignorecase to make searches case sensitive (the default). \r\n\r\n:%s\/foo\/bar\/gcI      Change each 'foo' (case sensitive) to 'bar'; ask for confirmation. \r\n                     This may be wanted after using :set ignorecase to make searches case insensitive. \r\n<\/pre>\n<p><a href=\"http:\/\/vim.wikia.com\/wiki\/Search_and_replace\">Search and replace<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>:%s\/foo\/bar\/g Find each occurrence of &#8216;foo&#8217; (in all lines), and replace it with &#8216;bar&#8217;. :s\/foo\/bar\/g Find each occurrence of &#8216;foo&#8217; (in the current line only), and replace it with &#8216;bar&#8217;. :%s\/foo\/bar\/gc Change each &#8216;foo&#8217; to &#8216;bar&#8217;, but ask for confirmation first. :%s\/\\&lt;foo\\&gt;\/bar\/gc Change only whole words exactly matching &#8216;foo&#8217; to &#8216;bar&#8217;; ask for confirmation. :%s\/foo\/bar\/gci [&hellip;]<\/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":[],"class_list":["post-1730","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/1730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1730"}],"version-history":[{"count":1,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/1730\/revisions"}],"predecessor-version":[{"id":1731,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/1730\/revisions\/1731"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}