diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-10-01 21:28:23 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-10-01 21:43:04 -0700 |
commit | 8e607b128c85dc7f6e17fd40e0a10a6d5bdb12ac (patch) | |
tree | 18dc10ef80e232fcf7b3e4fad53074a8f93a9a20 /vimrc.vim | |
parent | d75b71297426ee2d63d5630d1ef9469de48aca84 (diff) | |
download | mu-8e607b128c85dc7f6e17fd40e0a10a6d5bdb12ac.tar.gz |
6924
Diffstat (limited to 'vimrc.vim')
-rw-r--r-- | vimrc.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vimrc.vim b/vimrc.vim index c6b7b415..88951e78 100644 --- a/vimrc.vim +++ b/vimrc.vim @@ -84,7 +84,7 @@ if empty($TMUX) || (system("tmux display-message -p '#{client_control_mode}'") = " can't put final cursor movement out of function because that disables the wait for <CR> prompt; function must be final operation of map " can't avoid the function because that disables the wait for <CR> prompt noremap <Leader>t {:keeppatterns /^[^ #]<CR>:call RunTestMoveCursor("<C-r><C-w>")<CR> - function RunTestMoveCursor(arg) + function! RunTestMoveCursor(arg) exec "!./run_one_test ".expand("%")." '".a:arg."'" exec "normal \<C-o>" endfunction @@ -92,10 +92,10 @@ else " we have tmux and are not in control mode; we don't need to show any output in the Vim pane so life is simpler " assume the left-most window is for the shell noremap <Leader>t {:keeppatterns /^[^ #]<CR>:silent! call RunTestInFirstPane("<C-r><C-w>")<CR><C-o> - function RunTestInFirstPane(arg) + function! RunTestInFirstPane(arg) call RunInFirstPane("./run_one_test ".expand("%")." ".a:arg) endfunction - function RunInFirstPane(arg) + function! RunInFirstPane(arg) exec "!tmux select-pane -t :0.0" exec "!tmux send-keys '".a:arg."' C-m" exec "!tmux last-pane" |