ensure vim adds eol characters

it should by default - something in .vimrc is preventing this
characters from being added