How to distinguish between \r\n and \n in VIM
Fresh3 days ago
Mar 15, 202619080 viewsConfidence Score0%
0%
Problem
In VIM I can show all the hidden characters in a file via the command ":set invlist". However, end of line sequences are always displayed as $ whether it is a carriage return/line feed or just a line feed. How do I distinguish between the two types of line endings?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to distinguish between \r\n and \n in VIM
Low Risk
I know this is an older question, but I needed a similar answer and was able to find something a little better. :set ff? This will tell you what type of file vim thought it was when it loaded. Of course you have to have vim configured to recognize t…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix