It seems to be a vanilla-vim issue as the same behaviour also appears when I'm in vim -u NONE
.
Basically if you open a file, for example vim src/vector.h
, and then split it with :bel vsp %:p:h/vector.cpp
, the new split buffer will show the name with its full path. Only if I run :cd %:p:h/../
will the buffer display relative path.
How do I fix this behaviour so that it shows relative path correctly? Since I can't just use autocmd to do the :cd
thing on bufopen, as not all files' directory are on the same level, so the command might need to be like :cd %:p:h/../../
.
:vsp[lit]
? I’m not aware of an Ex command:vip
vector.h
, seriously? This is just asking for confusion with the standard library'svector
.