markonm / traces.vim

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

Preview split #24

Closed lunacookies closed 4 years ago

lunacookies commented 5 years ago

Is it possible to make a split display upon starting a substitution showing matches and replacements, akin to set inccomand=split in NeoVim? Thanks.

markonm commented 5 years ago

It is not possible currently.

ght commented 5 years ago

Thank you for making me find out about inccommand!

Does this plugin have any features/advantages over that, apart from not being Nvim-only? If so, please briefly mention those in the part in the README that mentions that the two are not compatible.

markonm commented 5 years ago

@ght I added a feature comparison to README.

ght commented 5 years ago

Nice, that is just what I had in mind! (linking 46c02cde67 which adds the comparison, just so the discussed changes can easily be found in the future)

markonm commented 4 years ago

Is it possible to make a split display upon starting a substitution showing matches and replacements, akin to set inccomand=split in NeoVim? Thanks.

It's possible from now on. In case you are still interested, to emulate set inccomand=split behavior add the following to your vimrc.

let g:traces_preview_window="botright 7new"