Removing ^M Line Endings in Vim
When you open a Windows file in Vim (or Neovim), you’ll often see ^M characters at the end of lines. These are carriage returns (\r) from Windows line endings (CRLF), which don’t display properly on Unix-like systems that expect LF-only line endings. Quick Fix The fastest way to remove these characters is with a substitution…