Short answer:
You may be able to use mount binding as a substitute for symlinks. See man mount
.
Long answer:
I had a similar problem, as I have a short symlink to a mounted partition,
/e -> /media/iam/ext4test
I also have a symlink ~/.vimrc -> /e/configs/.vimrc
.
I was running into trouble trying to pop into Netrw in the containing directory (I was landing in ~
, but I couldn't see a robust way to avoid that, keeping in mind the desire to use Bookmarks, etc).
My solution was, after considering possibly changing the mount point, is that you can add mount points. So after unlink e
, I used mount --bind /media/iam/ext4test /e
.
Now, if I am in /e/configs/.vimrc
and use :edit .
(or :e.
etc), it will pop me into Netrw in the containing directory.
Edit:
The command mount --bind
makes transient changes. For a permanent bind mount, I add the following to /etc/fstab
,
# <file system> <mount point> <type> <options> <dump> <pass>
/media/iam/ext4test /e none bind 0 0