Along the lines of magic shell variables, there's also '!$', which selects the last argument of the previous command. Often I'm looking at different aspects of the same file:
$ file foo
$ ls -lh !$
$ vim !$