支付宝红包杀入微信 春节或上演“红包大战”
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 5, 2020 at 16:27 | comment | added | Rich | @Matt Yeah, I suspect it will (and I hope it does!) | |
Feb 5, 2020 at 16:24 | comment | added | Matt |
Not entirely. I first discovered modelines around 2014, they solved some problems I thought I had (but I probably had set ffs in my vimrc by then too), so I continued to propagate them. And whenever I encountered line ending issues, I'd issue a set ffs command.. So, it's possible that I've just been accidentally propagating the need to adjust line endings all this time. I'll remove ffs everywhere I see it now (or at least change it to ff ) and my problem might evaporate. I think my original problem was other people's QtCreator/VS always switching to dos , ruining the git diff
|
|
Feb 5, 2020 at 15:30 | comment | added | Rich |
@Matt Glad I could help! Regarding the root issue, are you certain that when you don't set the file format you have removed all such modelines? Because a stray ffs modeline seems like the most likely candidate for something that could frequently cause an accidental line ending change (in Vim). FWIW, for me, Vim's line ending detection has been completely rock solid in all the years I've used it (working on all manner of files, including ones with mixed or even Mac line endings), and I've never heard of anyone else complaining about it, either.
|
|
Feb 5, 2020 at 13:37 | comment | added | Matt | To add to why I feel the need to set it all the time, when I don't set it I notice encodings accidentaly changing all the time, especially older files which often have a mix of line endings. Anyways, thanks again. | |
Feb 5, 2020 at 13:35 | comment | added | Matt |
I've been having this issue for 5-6+ years, and the "s" never occured to me. I just ran sed through one of my repos to change ffs to ff , and yeah, files now open perfectly. Thanks!
|
|
Feb 5, 2020 at 13:33 | vote | accept | Matt | ||
Feb 5, 2020 at 0:34 | history | edited | Rich | CC BY-SA 4.0 |
added 298 characters in body
|
Feb 4, 2020 at 23:35 | history | edited | Rich | CC BY-SA 4.0 |
added 5 characters in body
|
Feb 4, 2020 at 23:24 | history | edited | Rich | CC BY-SA 4.0 |
added 837 characters in body
|
Feb 4, 2020 at 23:14 | history | answered | Rich | CC BY-SA 4.0 |