:[range]g[!]/pattern/cmd

! means do not match pattern, use :v as the same. cmd list:

  • d: delete
  • m: move
  • t: copy, or co
  • s: replace

for more info: