How to stop VIM unlinking symbolic links?

My VIM doesn't follow normal particles and tries to dereference symbolic links. For example, when I do $ cd

for a symbolic link in any shell, I do not expect it to change the current working directory to the actual location the symbolic link points to.

Any shell behavior:

$ ls -l
mydir -> /some/super/long/and/ugly/path
$ cd ./mydir
$ pwd
<fullpath>/mydir

      

VIM behavior:

:cd ~/mydir
:pwd
/some/super/long/and/ugly/path

      

This makes it impossible to do things like :cd ../otherdir

, because not /some/super/long/and/ugly/otherdir

.

+3


source to share





All Articles