2006/11/28, Brian Anderson <[EMAIL PROTECTED]>:
Hello,
I have a text with many quotations, that I want to change the case.
Currently the text of the quote is in all caps. I want to change it to
capitalize only the first letter of each word. The text I want to change
can be either a single word, multiple words on a single line, or
multiple words on multiple line, as follows:
WORD
MULTIPLE WORDS ALL ON THE SAME LINE
MANY WORDS
ON MANY
LINES
Thanks.
Brian
You can try
:%s/\<\([A-Z]\)\([A-Z]*\)\>/\1\L\2/g
use
:help :s
and
:help sub-replace-special
for more informations.
Sincerely.
Yu Jianrong