cat -> horse
Cat -> Horse

I know this is underspecified (e.g. unclear what cAt should become). However, is there a canonical solution for this?

1 Answer 1


The vim-abolish plug-in implements a :Subvert command that performs substitutions taking case in consideration. (It can also preserve plurals, including exceptions in plural forms.)

See the README file with examples, specifically on case:

Oh, but the case variants!



Abolish.vim has your back. One command to do all six, and you can repeat it with & too!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.