Toggle the case of the character under cursor in vim

Viewed 316

When adding a prefix to a camel case variable, I usually need to Capitalize the (now second) word of the identifier. For example, when logGroup becomes localLogGroup, log becomes Log.

I am looking for a way to toggle the case of the current character (the one highlighted by the cursor) in vim.

The point is toggling the case without selecting the character - same way as x deletes it. I simply want to toggle its case.

Any idea how to achieve this?

1 Answers
Related