Hi,

Max Nikulin wrote:
> I would consider some convenient key mapping that should be executed before
> pasting line number instead of disabling bracketed paste completely. There
> is a chance to paste something weird with hidden text from a web page or
> from a HTML mail message.

I am not sure whether i want to tolerate any extra manual effort.
The risks are known and many were suffered at least once during the last
decades. (Keys "u" and "Ctrl+r" are my friends.)

My main use case is in software development, which in my case is widely
error-driven. It frequently happens that the C compiler issues justified
complaints like:

  ./read_run.c:2780:15: error: ‘dsk_path’ undeclared (first use in this 
function)

Then i double click the "2780", paste it into the xterm where vim has
"read_run.c" open, and press key 'G'. This brings me to my code sin.
(":" and "=" are excluded from the double-click set in my XTerm
configuration.)


----------------------------------------------------------------------
Said that, now for your proposal:

The key "APPS" (left neighbor of right Control key) is unused on my
keyboard. xev reports:

  KeyPress event, serial 37, synthetic NO, window 0x14400001,
      root 0xa4, subw 0x0, time 2417727269, (67,102), root:(128,235),
      state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
      XLookupString gives 0 bytes:
      XmbLookupString gives 0 bytes:
      XFilterEvent returns: False

If it would spare me the 'G' in above situation then it would be a
viable alternative.
I.e.: Copy, APPS key, Paste would bring me directly to the line.

But i never programmed in Vimscript. So i would need a tangible example
and learn to understand it before i apply it.

(And then i need to learn the new finger habit, to press APPS before
paste, rather than 'G' afterwards.
I aquired the old habit in the early 1990s, when i was forced to "vi"
after my Apollo Domain workstation was replaced by a SUN SparcStation.
I still miss Apollo DM's text editor. But at least i got my screen
background "slate.gif" from the SUN and was prepared for meeting Linux
a few years later. The "brown" Apollo DM windows are origin of my xterm
background color "wheat". "Blue" DM windows burnt out people's eyes.
... oh nostalgy, again.)


Have a nice day :)

Thomas

Reply via email to