hi,
It does not seems like the problem is the encoding of the file, I've attached my test file if you want to check it.
i think it is. my attached file shows you what i get when opening it with vim.
noticed the [noeol][dos] ? maybe s.o. else knows what that means ;) have you considered trying eclipse? greetings. caillou.
-- Liip AG // Rte de la Fonderie 7 // CH-1700 Fribourg Fon 026 4222511 // Key id 0x5BF5F8FA // www.liip.ch