Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法让 vim 中的 \n 或 \r 字符可见?(我希望能够查看我正在查看的 csv 文件是否仅在行尾使用 \n 或 \r 和 \n 。
:setl fileformat?
dos表示 CR-LF(始终如一;如果只有某些行同时包含两者,它将被列为unix,并且您会^M在这些行的末尾看到字符),unix表示 LF;mac仅表示 CR 换行符。
dos
unix
^M
mac