I am sorry that my English was not good enough to clearly describe the task in the title.
Here is a more descriptive attempt. Let us say I have the following text
(As a side note, this is a partial excerpt from a
latex document. This command is useful for defining acronyms and generating glossary later on.)
The question is the following: Let us say, I have copied the line immediately below with
I wish to change the second line to the following with a single edit operation.
i.e. I wish to perform a substitution for the case-sensitive and case-insensitive version in one go. I believe this is possible with some knowledgeable vim-fu, since it involves only a single semantic transformation (and the case conversion can be seen as a side-effect/add-on operation that remain fixed in sequence.)
Any ideas on how to achieve this? I am not opposed to the use of plugins to aid this, but standalone & elegant pure vim-only solutions (with some very-magic regex) will also be highly appreciated.