Skip to content

🧬 Vim plugin to provide case-preserving substitutuion

License

Notifications You must be signed in to change notification settings

lambdalisue/vim-reword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧬 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.

About

🧬 Vim plugin to provide case-preserving substitutuion

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project