To convert:
THE CAT SAT ON THE MAT
to
The Cat Sat On The Mat
in vim, add the following to .vimrc:
map #1 :s/\([A-Z]\)\([A-Z][A-Z]*\)/\L/g
It maps a suitable regular-expression based search and replace to the F1 function key.
This tip generously supported by: evans.c@emstechnologies.ca
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.