Convert between Unix and Windows text files

vi. To input the ^M character, press Ctrl-v , and then press Enter or return . In vim, use :set ff=unix to convert to Unix; use :set ff=dos to convert to Windows.

原文地址:https://www.cnblogs.com/books2read/p/11126234.html