conditional key passthrough
Alexander Tsepkov
atsepkov at gmail.com
Mon Oct 12 09:33:48 CEST 2015
I'm trying to use the same copy/paste keys for both, the terminal and vim.
Effectively I want the terminal to be able to detect which one is more
appropriate given the situation (vim window on foreground) rather than me
trying to remember which combo to use. The terminal has advantage that I
can use it with any app. However, vim's internal copy-paste offers more
flexibility (ability to ignore line numbers, ability to auto-switch to
normal/insert mode as needed), so I would like to use vim's copy/paste
(which I already mapped) when vim is active.
I can have vim set the title of urxvt, and since urxvt already uses
xclipboard perl script to manipulate copy/paste, maybe even have the script
auto-detect that the current app is vim and cancel, passing through the key
sequence to vim. Is this doable? If not, can I do something else, like send
'"*y' (yank to system clipboard) sequence to vim upon copy shortcut if the
active app is vim and '"*p' (paste from system clipboard) on paste shortcut?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/rxvt-unicode/attachments/20151012/4ec5fd33/attachment.html>
More information about the rxvt-unicode
mailing list