gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 04:18:50 25 4
gpt4 key购买 nike

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.

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

关于shell - tmux 的 vi 复制模式下的多个复制缓冲区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59950796/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com