Friday, July 7, 2023

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

Thank you, Gary, for all that info.  It will be very helpful.

When I get the ":map" report, I get the following:

The report from ":map!" gives:


So my interpretation is that there is not deviation from the base.

Also, to clarify, when I paste from "clipboard" (copy of mouse-highlighted),
when the operation is replace (R), it only inserts instead of replacing.  The
replace function only works for data entered directly at the keyboard.

Is there any way to change that setting, so that "mouse-pasted text"
will replace the text starting at the insert/replace point in the file?


Text before doing "R" replace:


Text after starting "R" operation by typing word (pulvinar):


"mouse-copied" text "rhoncus" pasted at next position in
replace operation:
NOTE:  "mouse-copied" text  is only inserted, not replacing!!!

Continuing keyboard "R" entry by typing "magna", overwriting
libero as expected:

So ... gvim is treating the input source differently.
Maybe the drop-down menu for handling visual needs to be
context sensitive, based on the current action being performed,
whether that is "i" (insert) or "R" (replace).

The intuitive expectation is that the "mouse-copied" text
replace the file text in the same manner as keyboard entry.

Also, when I go to perform the "." (repeat" operation, it is again
not performing as expected.  It does not paste the entire
"single-input" sequence, only the last portion of the keyboard
entry "magna", not even keeping the first portion "pulvinar".
So, the "paste" operation is definitely resetting the entire
"R" (replace) operation buffer, which does not register that as
"keyboard" entry (my intuitive expectation), leaving only that
final word, at the start of the 7th line (orange cursor line).

Am I wrong about my expectations for behaviour encompassing
both keyboard and mouse-pasted as a "whole" for repeat
operations?


Eric

P.S.  Raw text for example:

Etiam volutpat ligula eu lorem iaculis venenatis. Pellentesque rhoncus viverra arcu ut rhoncus. Curabitur in nibh mauris. Pellentesque volutpat convallis erat eu interdum. Mauris placerat libero at ante porta, nec hendrerit urna vehicula. Quisque nec leo sem. Curabitur pulvinar nisl eu magna tempor pellentesque. Cras vitae tempus purus, euismod eleifend massa.



On 2023-07-06 18:11, Gary Johnson wrote:
On 2023-07-06, Eric Marceau wrote:  
Thank you, Salman.    My customizations are limited to the appearance and layout.  I have not  installed any related to action-key mappings.  I don't know how to obtain a  report of all such mappings (default + custom).  If anything was mapped  differently, it was not disclosed as part of the appearance plug-ins.  
  Pure Vim has no default mappings.  (If your Vim is configured to  source $VIMRUNTIME/defaults.vim at startup, you will have two  mappings defined by that file.)  Those keys and key-combinations  you type to make things happen are the names of the commands.    To see a list all such commands, see        :help index    To get a list of any mappings in effect, type        :map    to see normal-mode mappings and        :map!    to see insert-mode mappings.  Actually, mappings in more modes than  just normal and insert are shown by those commands, but I don't know  which command lists which other modes.  You can read about this in        :help map-overview      :help map-listing      :help mapmode-i    For everything about maps, see        :help 5.4      :help 40.1      :help map.txt    HTH,  Gary    

No comments:

Post a Comment