oh gosh oh gosh! It is always the little things that get me. Always! In some ways I love vim, I hate it in others (would have never happened with eclipse)
It would have been obvious with better layout in emacs with any perl mode too because the indentation breaks. I suspect vim has similar behavior. So just changing to shorter, more legible line widths will help on a couple of levels-