Closed habamax closed 3 years ago
The issue is in this line:
If I try to do this command on wsl vim:
:file [minpac progress]
I get buffer named: a
.
On the other hand:
:file \[minpac progress\]
works.
Aha!
I have a file named a
in my home directory, and for some reason when you do :file [minpac progress]
it names minpac progress buffer as a
. I have removed this file and issues is gone.
But what if I need this a
file? :)
On the other hand:
:file \[minpac progress\]
works.
But not on windows.
:h wildcards
wildcard wildcards
Wildcards in {file} are expanded, but as with file completion, 'wildignore'
and 'suffixes' apply. Which wildcards are supported depends on the system.
These are the common ones:
? matches one character
* matches anything, including nothing
** matches anything, including nothing, recurses into directories
[abc] match 'a', 'b' or 'c'
So the issue is that buffer name [minpac progress]
is a wildcard that would match files: m
, i
, n
, p
, a
, c
, r
, o
, g
, e
, s
.
[minpac progress]
to smth else, like minpac progress
, or __minpac_progress__
or smth else.[minpac status]
.Another option would be to replace exec
with backtick expansion (:h `=
):
" exec "silent file" l:bufname
silent file `=l:bufname`
Works for me both on wls debian and windows
Thank you for investigating the issue.
For some reason I started getting "a" window instead of
[minpac progress]
:and then if I press
s
I get following error:vim version: 8.2.1965
This doesn't happen in windows vim of the same version.