by tshaddox · 5y ago · 0 comments
With a touch first, saving the file always works.
1: https://www.cyberciti.biz/faq/vim-vi-text-editor-save-file-w...
Sadly it does not save me from going and editing a system file as non-root and then trying to save... :(
And for me anyway, this is a benefit. When I used windows (and the same holds for google docs) I always had "New Folder"s everywhere that I'd created for whatever reason and then changed my mind or got distracted. Same with new documents. In vim, I do like to say, and it I change my mind and don't save it, I never see it again. If I touch'd it first, inevitably I'd have empty files everywhere.
You are correct.