{"id":353,"date":"2014-01-23T09:35:29","date_gmt":"2014-01-23T01:35:29","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=353"},"modified":"2016-01-02T17:42:21","modified_gmt":"2016-01-02T09:42:21","slug":"how-to-switch-to-lower-or-upper-case-in-vi-or-vim","status":"publish","type":"post","link":"https:\/\/www.sysadmindayph.com\/blog\/how-to-switch-to-lower-or-upper-case-in-vi-or-vim\/","title":{"rendered":"How To Switch to Lower or Upper Case in Vi or Vim"},"content":{"rendered":"<p>for uppercase: gggUG<br \/>\nfor lowercase: ggguG<\/p>\n<p>PS: the first 2 g&#8217;s are for moving to the beginning of the document.<br \/>\nPS2: works in vim, don&#8217;t know about plain vi<\/p>\n<p>Can also do this using the search function in command mode<\/p>\n<p><strong>&lt;esc&gt; :%s\/.*\/\\L&amp;\/<\/strong><\/p>\n<p>and in uppercase :<\/p>\n<p><strong>&lt;esc&gt; :%s\/.*\/\\U&amp;\/<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>for uppercase: gggUG for lowercase: ggguG PS: the first 2 g&#8217;s are for moving to the beginning of the document. PS2: works in vim, don&#8217;t know about plain vi Can also do this using 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":[16],"tags":[395,397,396],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-commands","tag-vi","tag-vi-editor","tag-vim"],"_links":{"self":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":1,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":354,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/353\/revisions\/354"}],"wp:attachment":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}