skip to main | skip to sidebar

Graper Blog

Search This Blog

Tuesday, March 6, 2012

Converting everything in a file to lowercase with GVIM

To do it as a "replace":

:%s/[A-Z]/\L&/g

The obverse (to convert all to uppercase):

:%s/[A-Z]/\U&/g

Or, simply type:

ggVGu
Posted by David Graper at 12:14 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2022 (1)
    • ►  September (1)
  • ►  2015 (1)
    • ►  November (1)
  • ►  2014 (1)
    • ►  March (1)
  • ►  2013 (9)
    • ►  May (1)
    • ►  March (3)
    • ►  February (2)
    • ►  January (3)
  • ▼  2012 (11)
    • ►  November (1)
    • ►  October (5)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  April (1)
    • ▼  March (1)
      • Converting everything in a file to lowercase with ...
  • ►  2011 (11)
    • ►  November (1)
    • ►  September (1)
    • ►  August (2)
    • ►  July (1)
    • ►  June (2)
    • ►  March (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2010 (13)
    • ►  November (1)
    • ►  September (1)
    • ►  July (3)
    • ►  June (1)
    • ►  May (1)
    • ►  March (2)
    • ►  February (4)
  • ►  2009 (12)
    • ►  September (5)
    • ►  March (2)
    • ►  February (4)
    • ►  January (1)
  • ►  2008 (7)
    • ►  December (1)
    • ►  August (1)
    • ►  April (1)
    • ►  March (4)

Software Developer

David Graper
Albany, NY, United States
I'm the person who looks like someone you used to know.
View my complete profile