[vim/vim] Cannot delete buffer whose name is numeric only (e.g. :e 10101, :bd 10101) (Issue #19262)

2 views
Skip to first unread message

Eric Wong

unread,
Jan 27, 2026, 7:07:23 AM (24 hours ago) Jan 27
to vim/vim, Subscribed
wsdjeg created an issue (vim/vim#19262)

Steps to reproduce

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

  1. Start Vim
  2. Create or edit a buffer with a numeric-only name:
:e 10101
  1. Try to delete the buffer by name:
:bd 10101

Expected behaviour

The buffer named 10101 should be deleted.

Version of Vim

9.1.954

Environment

Windows os 11

Windows terminal

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19262@github.com>

Eric Wong

unread,
Jan 27, 2026, 7:11:31 AM (24 hours ago) Jan 27
to vim/vim, Subscribed
wsdjeg left a comment (vim/vim#19262)

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.Message ID: <vim/vim/issues/19262/3804864195@github.com>

Christian Brabandt

unread,
Jan 27, 2026, 7:14:54 AM (24 hours ago) Jan 27
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19262)

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.Message ID: <vim/vim/issues/19262/3804880339@github.com>

Christian Brabandt

unread,
Jan 27, 2026, 7:14:59 AM (24 hours ago) Jan 27
to vim/vim, Subscribed

Closed #19262 as not planned.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/19262/issue_event/22316035489@github.com>

Eric Wong

unread,
Jan 27, 2026, 7:16:46 AM (23 hours ago) Jan 27
to vim/vim, Subscribed
wsdjeg left a comment (vim/vim#19262)

Thanks.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19262/3804890241@github.com>

Reply all
Reply to author
Forward
0 new messages