markonm / traces.vim

Range, pattern and substitute preview for Vim
MIT License
742 stars 13 forks source link

Support for vim-abolish's substitution #41

Closed fnune closed 3 years ago

fnune commented 3 years ago

https://github.com/tpope/vim-abolish#substitution

With vim-abolish, instead of this:

:%s/facility/building/g
:%s/Facility/Building/g
:%s/FACILITY/BUILDING/g
:%s/facilities/buildings/g
:%s/Facilities/Buildings/g
:%s/FACILITIES/BUILDINGS/g

You can do this:

:%Subvert/facilit{y,ies}/building{,s}/g

I think if traces.vim supported previews for this, it would be amazing!

markonm commented 3 years ago

It is already supported. Add the following to your vimrc to enable the preview:

let g:traces_abolish_integration = 1
fnune commented 3 years ago

Oh! It's literally the last commit! So cool. Thank you!