Skip to content

Targeted conversion

Johnny M. Salas edited this page Jun 5, 2022 · 4 revisions

Converts given objects, it might require more key presses than the quick conversion but allows to control the specific target. Repeatable using .

Selected text in visual mode

In visual mode, the keybinding is {prefix}{case key}, ie: gau

Convert Vim objects

To start the operator the keybinding is {prefix}o{uppercased case key}, ie: gaou. Notice the character o between the prefix and the case key, that's what indicates it should be in pending mode after the operator is pressed.

Once the operator is started, specify the object or movement. For example gaoc$ transforms to camelCase from the cursor position to the end of line, while gaopaw converts a word to PascalCase