You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
src | 2 years ago | |
.gitignore | 2 years ago | |
COPYING | 2 years ago | |
Cargo.lock | 2 years ago | |
Cargo.toml | 2 years ago | |
README.md | 2 years ago | |
screenshot.png | 2 years ago |
README.md
vsub
A visual regex substitution tool
Commands
w
Write (save) the edited buffer to the opened file
s/<fpat>/<spat>/
Substitutes all occurrences of fpat
with spat
. $c
= access capture group c
, $0
= whole match
s/<pat>/
Removes all occurrences of pat
(substitutes with nothing)
p/<pat>/
Highlights all occurrences of pat
(previews what s
would remove)