https://github.com/lambdalisue/vim-reword
🧬 Vim plugin to provide case-preserving substitutuion
https://github.com/lambdalisue/vim-reword
case substitution vim
Last synced: about 2 months ago
JSON representation
🧬 Vim plugin to provide case-preserving substitutuion
- Host: GitHub
- URL: https://github.com/lambdalisue/vim-reword
- Owner: lambdalisue
- License: mit
- Created: 2020-06-17T09:47:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-06T00:39:14.000Z (over 3 years ago)
- Last Synced: 2025-04-30T13:17:22.816Z (about 2 months ago)
- Topics: case, substitution, vim
- Language: Vim script
- Homepage:
- Size: 44.9 KB
- Stars: 45
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🧬 reword.vim




[](LICENSE)
[](doc/reword.txt)Replace words in a buffer in case preserving manner, with live preview feature for Vim and Neovim.

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