I want to view my complex substitution is correct before moving to the
next one in:

:%s,old,replacement, flags

It is problem because my regex are mutliline spanning paragraphs, and easy to
make a mistake in the replacement . So I have top stop and restart again to view
each subst is correct.

Emacs interactive search replace, has "," to view replacement before moving on:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Query-Replace.html

Is this feature possible in vim?
--
Mosh

vim 8.2 :subst flags we have are:
[c]     Confirm each substitution.  Vim highlights the matching string (with
        |hl-IncSearch|).  You can type:                         *:s_c*
            'y'     to substitute this match
            'l'     to substitute this match and then quit ("last")
            'n'     to skip this match
            <Esc>   to quit substituting
            'a'     to substitute this and all remaining matches
            'q'     to quit substituting
            CTRL-E  to scroll the screen up
            CTRL-Y  to scroll the screen down

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAF0uU3qPR9nK%3Dg9GAYj0QR1GLT1RXUW0vDde%3Dak9gwthc%3DFJqg%40mail.gmail.com.

Raspunde prin e-mail lui