Skip to content

Instantly share code, notes, and snippets.

@washingweb
Created December 31, 2020 08:38
Show Gist options
  • Save washingweb/9632743f2a01135d5589c4310e84ba65 to your computer and use it in GitHub Desktop.
Save washingweb/9632743f2a01135d5589c4310e84ba65 to your computer and use it in GitHub Desktop.
Vim 换行

Display CRLF as ^M:

:e ++ff=unix

Substitute CRLF for LF:

:setlocal ff=unix :w :e

reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment