tmux 的 vi 复制模式下的多个复制缓冲区

Multiple copy buffers in tmux's vi copy mode

Vi 通过键入 "[a-z] 命名缓冲区,然后输入 yank/delete/etc 命令。 tmux 的 vi 复制模式是否有命名缓冲区?我想将各种字符串复制到不同的 tmux 缓冲区中并能够单独粘贴它们

是的,确实如此。

man tmux /^BUFFERSthe web copy:

tmux maintains a set of named paste buffers. Each buffer may be either explicitly or automatically named. Explicitly named buffers are named when created with the set-buffer or load-buffer commands, or by renam‐ ing an automatically named buffer with set-buffer -n. Automatically named buffers are given a name such as ‘buffer0001’, ‘buffer0002’ and so on. When the buffer-limit option is reached, the oldest automati‐ cally named buffer is deleted. Explicitly named buffers are not sub‐ ject to buffer-limit and may be deleted with delete-buffer command.

Buffers may be added using copy-mode or the set-buffer and load-buffer commands, and pasted into a window using the paste-buffer command. If a buffer command is used and no buffer is specified, the most recently added automatically named buffer is assumed.

...

The buffer commands are as follows:

...

load-buffer [-b buffer-name] path
               (alias: loadb)
         Load the contents of the specified paste buffer from path.

paste-buffer [-dpr] [-b buffer-name] [-s separator] [-t target-pane]
               (alias: pasteb)
         Insert the contents of a paste buffer into the specified pane.
         If not specified, paste into the current one.  With -d, also
         delete the paste buffer.  When output, any linefeed (LF) char‐
         acters in the paste buffer are replaced with a separator, by
         default carriage return (CR).  A custom separator may be speci‐
         fied using the -s flag.  The -r flag means to do no replacement
         (equivalent to a separator of LF).  If -p is specified, paste
         bracket control codes are inserted around the buffer if the
         application has requested bracketed paste mode.

我截断了一些信息(包括其他缓冲命令);一定要看看上面的网站(或手册页),了解如何使用这些工具。