diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-06-11 22:50:40 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-06-11 23:43:55 -0700 |
commit | 5ac0786623f5ebd0b3a4f23fb6c23b72e6e277cb (patch) | |
tree | 82009ccce35a7b7d73ed4316d94dc2e56ddbc881 /vimrc.vim | |
parent | f47066a7c2f53796fb252dc187cdcf77834a1157 (diff) | |
download | mu-5ac0786623f5ebd0b3a4f23fb6c23b72e6e277cb.tar.gz |
new Vim convenience macro
Runs test under cursor and opens its trace.
Diffstat (limited to 'vimrc.vim')
-rw-r--r-- | vimrc.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vimrc.vim b/vimrc.vim index 0c297fef..66defa34 100644 --- a/vimrc.vim +++ b/vimrc.vim @@ -76,3 +76,6 @@ endif " see https://github.com/akkartik/mu/blob/master/subx/Readme.md#a-few-hints-for-debugging " the '-a' is because traces can sometimes contain unprintable characters that bother grep command! -nargs=0 L exec "%!grep -a label |grep -v clear-stream:loop" + +" run test cursor around cursor, then bring up its trace in a split window +noremap <Leader>t {j0:exec "!run_one_test.sh ".expand("%")." <C-R><C-W>"<CR>:vert split last_run<CR><C-w>p<C-o> |