• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4053
  • Last Modified:

convert characters to lower case

In vim, how do I convert a line of characters to lower case?  I know how to do it with the tilde but I wondered if there is a faster way that I can map to a function key in the vimrc file.  For example, I have a line like:

char A_DuMb_vARiaBlE;

and I would like to put the cursor on the line and hit a function key so the line reads:

char a_dumb_variable;
0
dwcronin
Asked:
dwcronin
1 Solution
 
dwcroninAuthor Commented:
I'm going to sleep now.  I'll be back in about 8 hours.  I'm not ignoring you, I'm asleep :)
0
 
ozoCommented:
:s/\(.*\)/\L\1/
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now