If you see the $
symbol at the end of each line (and no matter what you do, you can't put the cursor on that symbol) that means that vim is showing you where the newline characters are in the file.
This is controlled by the list
option:
:set list
:set nolist
Further, the listchars
option tells vim what symbols to use for these newline and other special characters.