Drupal 7 views - Contextual filter content: Nid content id from url
Let assume that you are using "Content: Nid" exposed filter.

Edit settings of your exposed filter and expand "More" section. If you choose "Exclude" check-box then it will show all nodes except current one.

Please see screenshot - how it used to be.