From bb29f05595bf2433646a5e7766e2c2e43fff9bbe Mon Sep 17 00:00:00 2001 From: Abhi <53955280+abhi-k9@users.noreply.github.com> Date: Tue, 3 May 2022 22:35:25 -0400 Subject: [PATCH] Mention both `=*p` and `"*p` forms for pasting from registers Co-authored-by: Victor Goff --- ch08_registers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch08_registers.md b/ch08_registers.md index 1dc55ed..cae7353 100644 --- a/ch08_registers.md +++ b/ch08_registers.md @@ -198,7 +198,7 @@ If you are on an external program (like Chrome browser) and you copy a block of You may wonder if `"*` and `"+` do the same thing, why does Vim have two different registers? Some machines use X11 window system. This system has 3 types of selections: primary, secondary, and clipboard. If your machine uses X11, Vim uses X11's *primary* selection with the `quotestar` (`"*`) register and X11's *clipboard* selection with the `quoteplus` (`"+`) register. This is only applicable if you have `+xterm_clipboard` option available in your Vim build. If your Vim doesn't have `xterm_clipboard`, it's not a big deal. It just means that both `quotestar` and `quoteplus` are interchangeable (mine doesn't either). -I find doing `"*p` or `"+p` to be cumbersome. To make Vim to paste copied text from the external program with just `p`, you can add this in your vimrc: +I find doing `=*p` or `=+p` (or `"*p` or `"+p`) to be cumbersome. To make Vim to paste copied text from the external program with just `p`, you can add this in your vimrc: ``` set clipboard=unnamed