Skip to content

Commit

Permalink
add comments to vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Nov 25, 2016
1 parent 5ab838a commit 7eca1b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,11 @@ function! RunTestFile(...)
let command_suffix = ""
endif

" Run the tests for the previously-marked file.
" Are we in a test file?
let in_test_file = match(expand("%"), '\(.feature\|_spec.rb\|test_.*\.py\|_test.py\)$') != -1

" Run the tests for the previously-marked file (or the current file if
" it's a test).
if in_test_file
call SetTestFile(command_suffix)
elseif !exists("t:grb_test_file")
Expand Down

0 comments on commit 7eca1b7

Please sign in to comment.