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

问题描述 投票:-1回答:1

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

shell vi tmux
1个回答
0
投票

是,是。

[man tmux /^BUFFERSthe web copy

tmux维护一组命名的粘贴缓冲区。每个缓冲区可以是明确或自动命名。明确命名的缓冲区被命名使用set-buffer或load-buffer命令或通过renam‐创建时使用set-buffer -n设置一个自动命名的缓冲区。自动地命名的缓冲区具有一个名称,例如“ buffer0001”,“ buffer0002”和以此类推。达到buffer-limit选项时,最早的自动名为cally的缓冲区被删除。显式命名的缓冲区不是子缓冲区设置为buffer-limit,可以使用delete-buffer命令删除。

可以使用复制模式或set-buffer和load-buffer添加缓冲区命令,然后使用paste-buffer命令粘贴到窗口中。如果使用缓冲区命令并且未指定缓冲区,最新的假定添加了自动命名缓冲区。

...

缓冲区命令如下:

...

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.

我删去了一些信息;绝对可以看看上面的网站(或手册页),以了解如何使用这些工具。

© www.soinside.com 2019 - 2024. All rights reserved.