-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Dear Christian,
I am using your script for sending commands to a running python-REPL. I use the following definitions for sending either the current selection, paragraph or line to tmux.
au FileType python vnoremap "+y:call SendToTmux('%paste')< cr >
au FileType python nnoremap V}"+y:call SendToTmux('%paste')< cr >
au FileType python nnoremap yy:call SendToTmux(@")< cr >j
I have been tinkering for ages now, what I should add to the SendToTmux('%paste') such that this line is in fact evaluated, too. Currently, I always have to switch to the tmux-session in order to press < cr >. The SendToTmux(@") is catching the EOL, so this works like a bliss.
I would be grateful for your help. Thanks for writing this immensely useful script.
Thomas