#!/bin/sh -e
#
# tmux-redraw-vim - vim instances in current tmux window to redraw themselves

tmux list-panes -F '#{pane_id} #{pane_current_command}' \
  | awk '$2 ~ /vim/ { print $1 }' \
  | xargs -rI% tmux send-keys -t% C-l
