Changing Case in Vim · Aug 28, 06:17 PM by Dylan Doxey
Every once in a while I'm preparing some text for something or other and I think, "I sure would like to change all of this text to lower case."
... 50 504 gateway_timeout 51 505 http_version_not_supported 52 506 variant_also_negotiates 53 507 insufficient_storage 54 509 bandwidth_limit_exceeded 55 510 not_extended :'<,'>!tr A-Z a-z
This vim command is composed of three parts:
- '<,'> -- this is the region of highlighted text.
- ! -- what follows is a shell command
- tr A-Z a-z -- translate class [A-Z] to [a-z] (same as Perl tr/[A-Z]/[a-z]/).
I'm sure to be back for this snippet soon.

Commenting is closed for this article.
