On Tuesday 08 August 2006 18:53, James E Keenan wrote:
> chromatic wrote:
> > I have a vim macro to toggle the counter between 'no_plan' and a number.
>
> Could you share that with us?  (Adding to new macros to .vimrc is where
> I'm *really* Lazy.)

        map ,ton  <ESC>:%s/More tests =>/More 'no_plan'; # tests =>/<CR>
        map ,toff <ESC>:%s/More 'no_plan'; # /More /<CR>$b

My standard just-created test file has the line:

        use Test::More 'no_plan'; # tests => 1;

Then I use ,toff and ,ton as necessary.  ,toff also puts my cursor in the 
right place to change the test number, by the way.

-- c

Reply via email to