Thursday, July 6, 2023

Re: 'Keyboard input' vs 'cursor copy+paste' for "repeat" (.) action

On Windows, if my * register (system clipboard) contains some text and I type:

iHello <c-r>=*<esc>

Then, hitting . repeats the whole thing, including the pasted text. Perhaps you're pasting in a different way?

Do you have custom mappings? Some plugins take over the . (such as repeat.vim).

Salman

On Thu, Jul 6, 2023, 11:54 Eric Marceau <eajmarceau@gmail.com> wrote:

Thank you, meine.

Not sure that you understood that my

/*typed-input*/ and /*copy+paste*/    

are both during the same insert/replace operation.

Since both inputs have been "inserted" together (in my view),

why are they not being captured as a complete set for the

repeat operation?


Eric

      

On 2023-07-06 03:42, meine wrote:
On Wed, Jul 05, 2023 at 04:23:54PM -0400, Eric Marceau wrote:  
Currently using        VIM version 8.1.3741      on Ubuntu MATE (Linux 5.4.0-150-generic #167-Ubuntu)    When I /copy+paste/ text using the system cursor,        regardless of whether that text is from another non-Vim      window, or from the text file currently in the Vim window,    if the text string being inserted is a combination of  */typed-input/* and /*copy+paste*/,  the Vim's "." (repeat operator)  seems to ignore the /copy+paste/ text and will *only* repeat  that portion of the entry which was /directly-typed at the //  //keyboard/ (i.e. xyz{cut+paste_text}<return>abc )!!!    Is that behaviour controlled by a modifiable Vim parameter  which can be set to allow both inputs to be captured as  a *single operation for full repeat*?  
Cutting and copying tekst places the text in a register -- the '0  register'. The paste command places the contence of that register where pasted.    The pasting can be repeated with the dot-command, it pastes the same  text from the dot-register.    Since the dot-command only repeats the last command, it kan only repeat  the pasting. Copying another word overwrites the buffer the text is  copied into.    You could make a small macro to combine commands you want and use that.    Vim has several registers that you can use to copy text into and only  call that register to paste the text. The working is great but can be  overwhelming to learn. See `help: registers`.    //meine    

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/6fd8c8e4-d7f4-bd54-eab0-a4e668858ec3%40gmail.com.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CANuxnEejG1MmCrnosVX8YDh7JkKi%2BEGDR5fqoEmL0GQMLvhJtw%40mail.gmail.com.

No comments: