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