Vim won’t convert fileformat if it sees inconsistent line endings. How can I find those ?
Vim won’t convert fileformat if it sees inconsistent line endings. How can I find
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Zero-width look-behind assertion
“How do I search for “\n” without a preceding “\r” in vim ?”
How do you search and replace these occurances with “\r\n”?
Get rid of the final “c” if you want to accept every match without confirmation.
Edit: However, if you want an answer that you can remember how to do without having used look ahead/behind assertions a billion times, see Jackson Miller’s answer. Sometimes it is better to simplify your problem and use tools that don’t require you to read the manual constantly 🙂