I opened a new file with :e ~\mypath\myfile.txt using gvim on Windows.

But when I try to save my file using :w I get this error message:

E212: Cannot open file for writing

How can I solve this?

link|improve this question

feedback

1 Answer

gvim could obviously not create diretories for me, so it worked after I had created the mypath\ directory in my home directory.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.