What exactly are the uses of '-' in bash? I know they can be used for

  1. cd - # to take you to the old 'present working directory'
  2. some stream generating command | vim - # somehow vim gets the text.

My question is what exactly is - in bash? In what other contexts can I use it?

Edit
Report