In normal mode, you can use gv
to re-select the previous visual selection.
If you just want to re-issue an additional ex
command over the same range, you can use *
on the command line, as long as "*
" isn't in your 'cpoptions'
setting.
:'<,'>s/foo/bar/g
:*s/baz/bat/g
:help cpo-star
:help :*
:help v_:
No comments:
Post a Comment