• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Converting DOS line endings to UNIX line endings in VimEdit

Created 2011-10-3, updated 2017-5-18

Open the file and check for brokenness:

:set ff?

Fix brokenness:

:set ff=unix
  • vim
  • wiki
Site
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • Keybase
Colophon

Crafted lovingly by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Vim).