I've always done by it setting a mark.
In command-mode, press m [letter]. For example, m a sets a mark at the current line using a as the mark indentifier.
To get back to the mark press ' [letter]. For example, ' a takes you back to the mark set in step 1.
To see all of the marks that currently set, type :marks.
On a slightly unrelated note, I just discovered another nifty thing about marks.
Let's say you jump to mark b by doing 'b. Vim automatically sets the mark ' (that's a single-quote) to be whichever line you were on before jumping to mark b.
That means you can do 'b to jump to that mark, then do '' (2 single-quotes) to jump back to whever you were before.
I discovered this accidentally using the :marks command, which shows a list of all marks.