From 8e607b128c85dc7f6e17fd40e0a10a6d5bdb12ac Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 1 Oct 2020 21:28:23 -0700 Subject: 6924 --- vimrc.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vimrc.vim') 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 prompt; function must be final operation of map " can't avoid the function because that disables the wait for prompt noremap t {:keeppatterns /^[^ #]:call RunTestMoveCursor("") - function RunTestMoveCursor(arg) + function! RunTestMoveCursor(arg) exec "!./run_one_test ".expand("%")." '".a:arg."'" exec "normal \" 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 t {:keeppatterns /^[^ #]:silent! call RunTestInFirstPane("") - 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" -- cgit 1.4.1-2-gfad0