I opened a new file with :e ~\mypath\myfile.txt using gvim on Windows.
:e ~\mypath\myfile.txt
But when I try to save my file using :w I get this error message:
:w
E212: Cannot open file for writing
How can I solve this?
gvim could obviously not create diretories for me, so it worked after I had created the mypath\ directory in my home directory.
mypath\
This is a collaboratively edited question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
Got a question about the site itself? meta is the place to talk about things like what questions are appropriate, what tags we should use, etc.
about » faq » meta »
tagged
asked
5 months ago
viewed
328 times
active