[vim/vim] :s_flag for preserve cursor position (Issue #19588)

1 view
Skip to first unread message

simozz

unread,
9:06 AM (13 hours ago) 9:06 AM
to vim/vim, Subscribed
gveezz created an issue (vim/vim#19588)

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.Message ID: <vim/vim/issues/19588@github.com>

Reply all
Reply to author
Forward
0 new messages