From 0c571bc5ca9fd3de76b81e44afcb8fc10f2fdff5 Mon Sep 17 00:00:00 2001 From: Chris Toomey Date: Sun, 27 Jul 2014 19:26:13 -0400 Subject: [PATCH] Enter copy-mode on zoom --- plugin/vim-tmux-runner.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/vim-tmux-runner.vim b/plugin/vim-tmux-runner.vim index debd2e6..328f2b3 100644 --- a/plugin/vim-tmux-runner.vim +++ b/plugin/vim-tmux-runner.vim @@ -129,8 +129,10 @@ endfunction function! s:ZoomRunnerPane() call s:EnsureRunnerPane() - let targeted_cmd = s:TargetedTmuxCommand("resize-pane -Z", s:runner_pane) - call s:SendTmuxCommand(targeted_cmd) + let copy_mode_cmd = s:TargetedTmuxCommand("copy-mode", s:runner_pane) + let resize_cmd = s:TargetedTmuxCommand("resize-pane -Z", s:runner_pane) + call s:SendTmuxCommand(copy_mode_cmd) + call s:SendTmuxCommand(resize_cmd) endfunction function! s:SendTmuxCommand(command)