def simulateCopyKeystroke(self): # Ctrl-Insert should work by default in Windows version of Vim/gVim # But yanking the selection will also clear it. So the sequence is: # copy text to clipboard: Ctrl-Insert # get to normal mode 2x: Ctrl-[ Ctrl-[ # return to last selection: gv ContextUtils.typeSequence('CD INS [ [ CU g v')
def simulatePasteKeystroke( self ): # Alt-space pops up the window menu (the thing you get # by clicking in the upper-left corner). Then typing # e and then p selects edit->paste. ContextUtils.typeAltKey( " " ) ContextUtils.typeSequence( "e p" )
def simulateCopyKeystroke( self ): ContextUtils.typeSequence( "ESC W" )