Improve regex conversion from vim to perl

I was annoyed at normal magic parens (where they have no special
meaning) being treated as capture parens. Updated translation function
to handle several cases for magic and verymagic.