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
_______________________________________________ rxvt-unicode mailing list [email protected] http://lists.schmorp.de/mailman/listinfo/rxvt-unicode
