Assume I have two folders and a .txt
file in a directory such that
/folder1/file.txt
/folder2
Being currently in folder1
I create a symlink with ln -s file.txt ../folder2/
. If a now cd
into folder2
and open the symbolic link in vim with vim file.txt
the editor opens with an empty file prompting "test.txt" [Permission Denied]
in the status bar. Additionally the file only open in "readonly" mode. Is there a way to create a working symlink. I am on Mac OS X.
Update:
ls -lR
on the original file results in -rw-r--r--
and for the symlink I obtain lrwxr-xr-x
.