最佳答案
I'm using gVim on Windows. My code shows ^M
characters at the end of lines. I used :set ff=dos
to no avail. The ^M
characters remain for existing lines, but don't show up for newlines I enter. I've switched modes to mac (shows ^J
characters) and unix (also shows ^M
characters) and back to dos. Has anyone else seen this?