From 20a02948c75c068d331481f3e4d91be5dc062e42 Mon Sep 17 00:00:00 2001 From: Chris Toomey Date: Fri, 14 Nov 2014 14:03:09 -0500 Subject: [PATCH] Add mapping for AttachToPane --- plugin/vim-tmux-runner.vim | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/plugin/vim-tmux-runner.vim b/plugin/vim-tmux-runner.vim index 93a7cb2..f3e503c 100644 --- a/plugin/vim-tmux-runner.vim +++ b/plugin/vim-tmux-runner.vim @@ -1,6 +1,3 @@ -" TODO: maximize command -" TODO: open pane in other window, then copy in (avoid flickering during init) - function! s:InitVariable(var, value) if !exists(a:var) let escaped_value = substitute(a:value, "'", "''", "g") @@ -414,18 +411,19 @@ endfunction function! s:DefineKeymaps() if g:VtrUseVtrMaps - nmap rr :VtrResizeRunner - nmap ror :VtrReorientRunner - nmap sc :VtrSendCommandToRunner - nmap sl :VtrSendLineToRunner - vmap sv :VtrSendSelectedToRunner - nmap or :VtrOpenRunner - nmap kr :VtrKillRunner - nmap fr :VtrFocusRunner - nmap dr :VtrDetachRunner - nmap cr :VtrClearRunner - nmap fc :VtrFlushCommand - nmap zr :VtrZoomRunnerPane + nnoremap va :VtrAttachToPane + nnoremap rr :VtrResizeRunner + nnoremap ror :VtrReorientRunner + nnoremap sc :VtrSendCommandToRunner + nnoremap sl :VtrSendLineToRunner + nnoremap sv :VtrSendSelectedToRunner + nnoremap or :VtrOpenRunner + nnoremap kr :VtrKillRunner + nnoremap fr :VtrFocusRunner + nnoremap dr :VtrDetachRunner + nnoremap cr :VtrClearRunner + nnoremap fc :VtrFlushCommand + nnoremap zr :VtrZoomRunnerPane endif endfunction