{"id":1346,"date":"2014-08-17T20:53:19","date_gmt":"2014-08-18T00:53:19","guid":{"rendered":"http:\/\/www.jgarces.info\/?p=1346"},"modified":"2014-08-18T22:54:39","modified_gmt":"2014-08-19T02:54:39","slug":"replace-with-vim","status":"publish","type":"post","link":"https:\/\/www.jgarces.info\/en\/replace-with-vim\/","title":{"rendered":"Replace With VIM"},"content":{"rendered":"<p>Many times I have seen the need to replace text with VIM. Here I leave the way to do.<\/p>\n<p>First, we open the file to edit:<\/p>\n<pre lang=\"sh\">\r\n\r\nvim file\r\n\r\n<\/pre>\n<p>We press ESC and insert colon &#8220;:&#8221;. After that, we insert the instruction:<\/p>\n<pre lang=\"sh\">\r\n\r\n:1,$ s\/search_text\/replacement_text\/g\r\n\r\n<\/pre>\n<p>The characters 1,$ indicate that should search from the first to the last line of the file. After, just replace &#8220;search_text&#8221; and &#8220;replacement_text&#8221; for that we need.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many times I have seen the need to replace text with VIM. Here I leave the way to do. First, we open the file to edit: vim file We press ESC and insert colon &#8220;:&#8221;. After that, we insert the instruction: :1,$ s\/search_text\/replacement_text\/g The characters 1,$ indicate that should search from the first to the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[47],"class_list":["post-1346","post","type-post","status-publish","format-standard","hentry","category-utilidades-en","tag-sh-en"],"_links":{"self":[{"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/posts\/1346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/comments?post=1346"}],"version-history":[{"count":1,"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/posts\/1346\/revisions"}],"predecessor-version":[{"id":1347,"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/posts\/1346\/revisions\/1347"}],"wp:attachment":[{"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/media?parent=1346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/categories?post=1346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jgarces.info\/en\/wp-json\/wp\/v2\/tags?post=1346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}