The normal command for substitution, i.e.:
:%s/pattern_to_search/replace_pattern/g
does not have a :s_flag for preserving cursor position.
Currently this can be accomplished with:
:%s/pattern_to_search/replace_pattern/g | normal! g``
Would be possible to implement a flag to accomplish the same but without the additional
| normal! g
?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()