A month on the command line, Day 5: Where does Windows Vim keep its files?
It was a bit of a mystery. Once I closed Vim, I couldn't figure out where it was saving my files in Windows XP. It wouldn't be a problem if I could remember the name of each and every file I created, but since I can't remember my own name half the time, it is a big deal, especially since this isn't a command-line system on which I can just type ls at the prompt. And it gets worse: For some reason my "search file" icon doesn't work either -- never has. (Thanks, again, Windows!)
Vim help was no help, but I did a "save as" in Vim, and it clued me in:
By default, Vim saves it files in the User directory, which is in the Documents and Settings folder under the C: drive.
So the path is C:/Documents and Settings/user/filename
Another mystery solved.





Leave a comment