Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.75 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.75 KB

🧬 reword.vim

vim neovim reviewdog

Support Vim 8.1 or above Support Neovim 0.4 or above MIT License Doc

Replace words in a buffer in case preserving manner, with live preview feature for Vim and Neovim.

Reword preview

Usage

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.