vim-abolish
vim-abolish copied to clipboard
Negative lookahead in subvert
Is it possible to do negative lookahead with the subvert command? Say I want to replace foo
with quux
but leave foobar
alone- is there a way to get this to work?
Here was my attempt:
File:
foo
foobar
Command: :%S/foo\(bar\)\@!/quux/g
Result: E486: Pattern not found...