Vim: Use range of last visual selection (:*)
Example: Delete the lines of the last visual selection
:*d
Reference
For vim versions < 8.2, see
:h v_:incmdline.txt:h :starinrepeat.txt:h cpo-star
For later versions, see
:h :starincmdline.txt:h :star-compatibleinrepeat.txt:h cpo-star
Note. Between vim 8.1 and 8.2, the help files were updated so that
:h :star now points to the help topic for the default behavior
where * is not in 'cpoptions'. Prior to 8.2, :h :star
pointed to the non-default behavior described in repeat.txt.
Now, that topic is found with :h :star-compatible.