Like kamper said, you don't need to install Xcode to get all the developer stuff that comes with Linux. It's in OS X anyway. Xcode is just an IDE, and it's a nice one too. If you're happy to use vim, then don't worry about Xcode.
A number of distros work on macs. There's Gentoo, Ubuntu...