Example: Delete the lines of the last visual selection

:*d

Reference

For vim versions < 8.2, see

  • :h v_: in cmdline.txt
  • :h :star in repeat.txt
  • :h cpo-star

For later versions, see

  • :h :star in cmdline.txt
  • :h :star-compatible in repeat.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.