commit fae4abd2f4bd8f97167ea9f7a327d69c9f0afbfd
parent b38525f65c7279442da193a46b745fc25c72df35
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 1 May 2025 07:45:17 +0800
vim-patch:ff3d4b2: runtime(doc): document that :b cannot handle buffer names starting with "+"
closes: vim/vim#17229
https://github.com/vim/vim/commit/ff3d4b2d49c4b8b7d97cfaeffe57321a1852f7e8
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt
@@ -1249,7 +1249,9 @@ list of buffers. |unlisted-buffer|
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.
+ by that name; use the buffer number instead. Same is true if
+ the buffer name starts with a `+`, it will be interpreted as
+ the start of a |+cmd|.
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,