you can buy a long rifle or a shotgun if you have proof of residency in any State. You CANNOT buy a handgun if you are NOT a resident of the Commonwealth of VA.
http://www.washingtontimes.com/news/2013/sep/17/miller-new-york-times-gets-it-wrong-about-navy-yar/