KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Sometimes when I create a file using vim some/path/newfile , vim lets me edit it, only to complain when I attempt to save my changes. E212 Can't open file for writing. This appears to happen only when the new file is located in a system directory. :w! does not override this error. How can I write the current buffer, without having to save it to a temporary location, exit, then rename it using sudo?
Tags (comma-separated)
Save Edits
Cancel