💻 Software
How to force vim to end all lines with a single linefeed character (LF)
Fresh7 days ago
Mar 15, 20265300 viewsConfidence Score0%
0%
Problem
As the title says, I need to force vim (in my case gVim) end all lines with a single linefeed character (LF). How can I do this? I'm trying to follow the standards for PHP coding, specifically http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html#coding-standard.php-file-form…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to force vim to end all lines with a single linefeed character (LF)
Low Risk
The short answer is to open the file in Vim and then type " " then write the file. From that point on, Vim should treat the file as Unix fileformat and only use newline characters instead of carriage-return+newline. The long answer is that this some…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix