gVim showing carriage return (^M) even when file mode is explicitly DOS

前端 未结 10 1480
小蘑菇
小蘑菇 2020-12-22 15:25

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

10条回答
  •  情深已故
    2020-12-22 15:52

    Actually what worked for me (on 64-bit windows, gVIM: 7.2 ) was:

    :set ffs=dos
    

    not just: ff

提交回复
热议问题