about summary refs log tree commit diff stats
path: root/vimrc.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-09-15 16:30:46 -0700
committerKartik Agaram <vc@akkartik.com>2019-09-15 16:31:31 -0700
commita5fa978579a2d9a08d89463e55b77ab3513ccfca (patch)
treef5a8928adfaaebf1a147a99530990ac1a88bb2fc /vimrc.vim
parentf39eaf81fa6cbc831b8021736c7f71b7d9587de7 (diff)
downloadmu-a5fa978579a2d9a08d89463e55b77ab3513ccfca.tar.gz
5662
Fix several breakages.
Diffstat (limited to 'vimrc.vim')
-rw-r--r--vimrc.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vimrc.vim b/vimrc.vim
index ed3e1843..22d3f99a 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -83,7 +83,7 @@ if empty($TMUX)
   "   can't put initial cursor movement inside function because we rely on <C-r><C-w> to grab word at cursor
   "   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 {j0:keeppatterns /[^ #]<CR>:call RunTestMoveCursor("<C-r><C-w>")<CR>
+  noremap <Leader>t {:keeppatterns /^[^ #]<CR>:call RunTestMoveCursor("<C-r><C-w>")<CR>
   function RunTestMoveCursor(arg)
     exec "!./run_one_test ".expand("%")." ".a:arg
     exec "normal \<C-o>"
@@ -91,7 +91,7 @@ if empty($TMUX)
 else
   " we have tmux; 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 {j0:keeppatterns /[^ #]<CR>:silent! call RunTestInFirstPane("<C-r><C-w>")<CR><C-o>
+  noremap <Leader>t {:keeppatterns /^[^ #]<CR>:silent! call RunTestInFirstPane("<C-r><C-w>")<CR><C-o>
   function RunTestInFirstPane(arg)
     call RunInFirstPane("./run_one_test ".expand("%")." ".a:arg)
   endfunction