patch 9.1.0934: hard to view an existing buffer in the preview window

Problem:  hard to view an existing buffer in the preview window
Solution: add the :pbuffer command (Yinzuo Jiang)

Similar as `:pedit` and `:buffer` command. `:pbuffer` edits buffer [N]
from the buffer list in the preview window.

`:pbuffer` can also open special buffer, for example terminal buffer.

closes: #16222

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yinzuo Jiang
2024-12-16 21:22:09 +01:00
committed by Christian Brabandt
parent 3920bb4356
commit a2a2fe841e
27 changed files with 287 additions and 72 deletions

View File

@ -1,4 +1,4 @@
*version9.txt* For Vim version 9.1. Last change: 2024 Dec 06
*version9.txt* For Vim version 9.1. Last change: 2024 Dec 16
VIM REFERENCE MANUAL by Bram Moolenaar
@ -41661,7 +41661,8 @@ Highlighting: ~
Commands: ~
|[r| and |]r| to move the cursor to previous/next rare word
|:pbuffer| Edit buffer [N] from the buffer list in the preview
window
Options: ~