When a buffer name consists of digits only, Vim cannot delete it using :bd {bufname}. Vim seems to interpret the argument as a buffer number instead of a buffer name.
This makes it impossible to delete such buffers by name.
Steps to reproduce
:e 10101
:bd 10101
The buffer named 10101 should be deleted.
9.1.954
Windows os 11
Windows terminal
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
This has been documented in :h {bufname}
:[N]b[uffer][!] [+cmd] {bufname} *{bufname}*
Edit buffer for {bufname} from the buffer list. A partial
name also works, so long as it is unique in the list of
buffers.
Note that a buffer whose name is a number cannot be referenced
by that name; use the buffer number instead.
Insert a backslash before a space in a buffer name.
See |:buffer-!| for [!].
This will also edit a buffer that is not in the buffer list,
without setting the 'buflisted' flag.
Also see |+cmd|.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Correct, that is the documented behaviour.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Thanks.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()