VimAddin
VimAddin copied to clipboard
Support vim-like substitution
Please support vim-like search and replace:
Like this:
:%s/Foo/Bar/cg
I'm looking into it now. The command format should look like
:[range]s/{pattern}/{string}/[flags]
but currently, a range is not expected and needs to be parsed.
This feature is still not done yet, but please make use of this workaround for now, using features available in the addin as of version 1.1:
- Place the cursor over the token you would like to replace.
- Press [#] or [*] to search for it. This will highlight all instances of the token.
- Use [cw] to replace the token with the new string that you want.
- Use [n] to go to the next instance of the token.
- Use [.] to replace the token with the string that you typed previously.
- Repeat steps 4-5 until all instances are replaced.
:+1: