I have a large project, and I have to work in and switch between a few directories often. My solution was to symlink all the files that I want to get to quickly into a sandbox directory.
I just used the command:
mklink sandbox/myfile.py somerealdirectory/myfile.py
I want to simply be able to use vim's
without having to worry about the directory structure.
If I open sandbox/myfile.py in vim, make some edits, and save, the changes propigate as expected.
However, when I try to write a second time, vim complains that the file is readonly, and now it no longer will write to the correct file. It looks like the symlink was destroyed during the writing process.
I've seen some other issues about this, but no satisfactory answers.