Convert line endings Convert to Unix: :set ff=unix Convert to Windows: :set ff=dos Save and close :wq Edit file i