-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Msys vim's executable() can't find programs despite them being add in the PATH #14823
Comments
Fzf can be found in Vim in Git Bash so that I wonder what the difference to MSYS2 vim is. |
Or does this imply that |
There's a some conversion to include |
Git Bash (GB) doesn't need to be installed. I was just noting that Git Bash's vim is able to pick up fzf because GB's vim, which seems to be a discrepancy as MSYS's vim and GB's vim are both compiled under MSYS.
GB's $PATH will inherit from Window's %PATH%. MSYS's $PATH will not. When I installed scoop on Windows, scoop added the scoop\shims directory to the Windows %PATH%, causing it to automatically appear in the Git Bash $PATH. However, I have added the This worked to make MSYS's bash aware of fzf, but not MSYS's vim.
E15: Invalid expression: "%PATH%"
|
You might have better chances with |
When I add the export ~/.bashrc, MSYS picks it up fine as evidenced by I will try the other PATH recommendations and report back later. |
It looks like tilde-expansion was not performed in the broken case; compare |
Yes, in terms of robustness: |
Thanks. /c/users/username, $HOME, and $USERPROFILE worked as opposed to the ~. |
So I guess this is not a Vim issue but rather a bash/msys particularity. Let's close it then. |
Steps to reproduce
scoop install fzf
) on Windows (not in an msys environment).~/scoop/shims
to the PATH variable in ~/.bashrc (in the ucrt terminal). Source the ~/.bashrc file in bash.which fzf
should return/c/Users/KhanY_z23jg7i/scoop/shims/fzf
.:echo executable('fzf')
. Observer that vim can't find fzf despite it being added to the path.:echo executable('fzf')
still can't find fzf.Expected behaviour
Vim in msys should be able to find executables present in the PATH environment variable or in the vim runtimepath.
This is strange because Git Bash's vim can find fzf from the PATH variable (without it being added to the runtimepath).
Git Bash's (https://git-scm.com/download/win) vim version: 9.1.264
Msys's vim version: 9.1.380
Version of Vim
9.1.380
Environment
OS: Windows
Environment: msys
TERM: xterm
Shell: bash
Logs and stack traces
No response
The text was updated successfully, but these errors were encountered: