Replace words in a buffer in case preserving manner, with live preview feature for Vim and Neovim.
Use Reword
command to replace the first word in a current line like:
:Reword/HelloWorld/FooBarHoge
And use /g
flags to replace all words in a current line like:
:Reword/HelloWorld/FooBarHoge/g
Prepend %
to replace all words in a buffer like:
:%Reword/HelloWorld/FooBarHoge/g
Note that the following substitutions will be applied as well with :Reword
command
Name | From | To | Disable flag |
---|---|---|---|
lowerCamelCase |
helloWorld |
fooBarHoge |
l |
snake_case |
hello_world |
foo_bar_hoge |
s |
kebab-case |
hello-world |
foo-bar-hoge |
k |
lower |
helloworld |
foobarhoge |
i |
UPPER |
HELLOWORLD |
FOOBARHOGE |
i |
Use above disable flags to disable each cases.