vim / vim

The official Vim repository
https://www.vim.org
Vim License
36.42k stars 5.44k forks source link

Built-in Substitution Live Preview Option or Plugin #14868

Open pbnj-dragon opened 4 months ago

pbnj-dragon commented 4 months ago

Is your feature request about something that is currently impossible or hard to do? Please describe the problem.

When performing more complex substitutions in Vim (e.g. , :s, :%s , :'<,'>s), it is difficult to preview the outcome before executing the command.

Being able to preview substitutions live before executing the command can help identify issues & typos (e.g. & vs \&) in regex patterns early and allow users to fix them before executing the command.

Describe the solution you'd like

A built-in Vim option or a built-in Vim plugin to enable substitution live previews.

Describe alternatives you've considered

Additional context

N/A

nv-quan commented 4 months ago

This is discussed 2 years ago here. Although I would love to have this built in.