vim - gVim showing carriage return (^M) even when file mode is explicitly DOS -
I'm using gVim on Windows my code shows the ^ M characters at the end of the lines I have no use to use : set ff = dos ^ M characters remain for existing rows, but I do not show for those new lines I am what I enter. I've switched back to Mac (show ^ j characters) and Unix (this also shows ^ M characters) and DOS back. Has anyone seen this?
This happens when you have a mixture of the end of the line line and unix, if you have There are 100 lines, 99 are \ r \ n and one is \ n, then you will see 99 ^ m characters. Decide that to find a line and to change it. Or run dos2unix on the file. You can change the interval of the Windows line like this:
:% s / \ r \ (\ n \) / \ 1 / g
Comments
Post a Comment