From b70c4881d92536199e4ae361ee0a1a20bb153ea8 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 1 Mar 2010 18:17:50 +0900 Subject: [PATCH] colorfull --- unittest.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unittest.vim b/unittest.vim index 9bdfbf0..0b2104f 100644 --- a/unittest.vim +++ b/unittest.vim @@ -3,13 +3,14 @@ so zencoding.vim unlet! testgroups let testgroups = eval(join(filter(split(substitute(join(readfile(expand('')), "\n"), '.*\nfinish\n', '', ''), '\n', 1), "v:val !~ '^\"'"))) for testgroup in testgroups - echohl Visual | echon "[" testgroup.category."]\n" | echohl None + echohl MatchParen | echon "[" testgroup.category."]\n" | echohl None let tests = testgroup.tests let start = reltime() for n in range(len(tests)) let testtitle = tests[n].name let testtitle = len(testtitle) < 57 ? (testtitle.repeat(' ', 57-len(testtitle))) : strpart(testtitle, 0, 57) - echon "testing #".printf("%03d", n+1)": ".testtitle." ... " + echohl ModeMsg | echon "testing #".printf("%03d", n+1) + echohl None | echon ": ".testtitle." ... " unlet! res | let res = ZenExpand(tests[n].query, '', 0) if res == tests[n].result echohl Title | echon "ok\n" | echohl None