Changing Case in VIM

Sometimes we need to change the case of the letters in vim. Here is how you can do it with vim. Search and replace it with “\U&” or “\L&” or upper and lower letters.

changing to CAPITAL LETTERS :

:%s/^.*$/\U&/g

Changing to lower letters :

:%s/^.*$/\L&/g

Enjoy Power of VIM

2 Responses to “Changing Case in VIM”

  1. MATTHEW says:


    CheapTabletsOnline.Com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. Online Pharmacy. Buy drugs online

    Buy:Buspar.Acomplia.Nymphomax.Benicar.Female Pink Viagra.Ventolin.Zocor.SleepWell.Prozac.Amoxicillin.Lipothin.Zetia.Cozaar.Advair.Lasix.Female Cialis.Lipitor.Seroquel.Wellbutrin SR.Aricept….

  2. JESUS says:


    CheapTabletsOnline.Com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. High quality pills. Buy pills online

    Buy:Aricept.Lipothin.Zocor.Nymphomax.SleepWell.Female Pink Viagra.Acomplia.Lipitor.Buspar.Prozac.Female Cialis.Amoxicillin.Ventolin.Seroquel.Benicar.Lasix.Wellbutrin SR.Advair.Zetia.Cozaar….

Leave a Reply