I've a had a quick look at highlighting the more difficult heredoc formats and, unfortunately, I can't come up with a satisfactory solution. Should we compromise as the perl.vim author has done, or should I read syntax.txt again? :-) Regards, Doug PS. Nikolai, have you had any luck?