New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v:progname and fnamemodify(v:progpath, ':t') differ #14427
Comments
According to
"The full path" usually means resolving symlinks, so this is working as intended. |
Thank you, indeed a chain of symlinks resolves to
The command with which Vim was invoked was not |
I guess that is a consequence of resolving the symlinks |
I wonder why
than at least |
There is also the
|
This one makes the shell expand the complete path. The problem is, If you use e.g.
Here Vim knows as what command is has been called and can behave differently. I think, at least this would make a difference. |
For the user, how about adding some caveat around
that starting an instance of vim similar to the one the user is looking at is rather achieved by |
|
Well, neither solution works in general, but symlinked vim executables are perhaps more common than running it by |
One could propose these workarounds with their respective shortcomings |
Steps to reproduce
Expected behaviour
output is
/usr/bin/gvim
, expected is/usr/bin/vim
.v:progname
showsvim
.Version of Vim
9.1.151
Environment
Opensuse 15.5, $TERM=xterm-256color, shell = zsh
Logs and stack traces
No response
The text was updated successfully, but these errors were encountered: