3 ms·
The only thing that drives me crazy about the save/do-you-want-to-reload prompt is actually a git related issue. When you commit, git updates all committed file
by jessedhillon 13y ago
The only thing that drives me crazy about the save/do-you-want-to-reload prompt is actually a git related issue. When you commit, git updates all committed files in some way that triggers vim change detection. You go back to vim, write some code, try to save and then you get this DANGER WILL ROBINSON message.
It's horrible because you're not quite sure sometimes if there was a legitimate change made in another process that you're now about to undo. Half the time I end up copying the lines I know I added, allowing a reload, and then pasting them back in, just to be safe.
- aidos 13y agoReally? That sounds misconfigured and it certainly doesn't happen for me. Are you on windows? Maybe it's just a problem there. I'd take a look a bit deeper to see if I could figure that out if I were you as it does sound like a nuisance. Personally (regarding the original gripe in the post) I'd be horrified if my text editor was silently ignoring edits or just updating the code under me. If that was really a concern while I was working on my software I'd take a look at the workflow to see what could be done about it.
- heurist 13y agogitattributes or autoclrf could do that if not configured properly. I never have that issue when working on personal projects using vim and git.
- damncabbage 13y agoWow, that sounds nuts. What OS are you running? I've never actually seen this happen before.