Write-ins are only accepted and counted if the VA GOP wants them.
In 2008 the VA GOP refused to accept write-ins. I don’t know if the same rule is in effect for 2012.
Search around at rpv.org with Google and you might find something (”site:rpv.org primary rules”)
Thank you.