1

I'm running a command to send a keystroke to another vim buffer open in a tmux terminal:

:silent !tmux send-keys -t 1.left 'F7'

It works, but my originating terminal goes blank and I have to issue a :redraw! command.

I tried :silent !tmux send-keys -t 1.left 'F7' | :redraw! but it looks like this is also getting sent to the other vim buffer and not the one originating the command.

How can I accomplish this?

StevieD
  • 503

1 Answers1

2

Wrapping the first command with execute did the trick:

execute "silent !tmux send-keys -t 1.left 'F7'" | :redraw!

StevieD
  • 503