Vi on Linux: show ^M line endings for DOS-format files
Fresh3 days ago
Mar 15, 202642528 viewsConfidence Score0%
0%
Problem
On Solaris, if you open a file in vi that has Windows line endings, this shows up as ^M at the end of every line. On Linux, vi is cleverer and understands the Windows file format, and does not display ^M. Is there a setting to make Linux vi behave the same as Solaris in this respect? A common probl…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Vi on Linux: show ^M line endings for DOS-format files
Low Risk
Try when starting vi (or set as default in vimrc) which should display all CR characters as . vi auto-guesses which format to use based on whether or not it encounters lines ending in just LF or both CR/LF.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix