"E212: Can't open file for writing" when saving in gvim on Windows

3

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?

Jonas

Posted 2011-12-05T19:00:58.570

Reputation: 21 007

Answers

2

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

Jonas

Posted 2011-12-05T19:00:58.570

Reputation: 21 007