I use gvim on Windows. How can I open a new file?

I have tried with :e ~\mypath\myfile.txt but I get this error message:

E303: Unable to open swap file for "C:\Users\Jonas\mypath\myfile.txt", recovery impossible

How to open a new file using gvim on Windows?

link|improve this question

feedback

1 Answer

This seem to be a bug. From Vim E303: Unable to open swap file for "[No Name]", recovery impossible, I should add this to _gvimrc:

set directory=.,$TEMP

And it worked for me.

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.