Tuesday, April 28, 2009

Vim convert whole word to lowercase

UPDATE: following whatever is typed below the horizontal line will convert your entire file into uppercase. The better way for just a word is to use

gUw

Yep - no funny colons or commands - just get your cursor under the word and type gUw.




If you are a vim user and want to change some whole config to lower case, here is the quick shortcut:

:%s/[A-Z]/\l\0/g

That's a backslash-el, backslash-zero, by the way.

2 comments:

  1. you can just go to visual mode, select stuff and pres ~ (works both ways)

    ReplyDelete
  2. Do you need to increase your credit score?
    Do you intend to upgrade your school grade?
    Do you want to hack your cheating spouse Email, whatsapp, Facebook, instagram or any social network?
    Do you need any information concerning any database.
    Do you need to retrieve deleted files?
    Do you need to clear your criminal records or DMV?
    Do you want to remove any site or link from any blog?
    you should contact this hacker, he is reliable and good at the hack jobs..
    contact : cybergoldenhacker at gmail dot com

    ReplyDelete