Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 52bc9404cbab90000200001c

O Christmas Tree

Design a macro that makes trees grow (or ASCII triangles, if that's too hard).

Start file
^

End file
^

 ^
^^^

  ^
 ^^^
^^^^^

   ^
  ^^^
 ^^^^^
^^^^^^^

    ^
   ^^^
  ^^^^^
 ^^^^^^^
^^^^^^^^^

View Diff

2a3,20
>  ^
> ^^^
> 
>   ^
>  ^^^
> ^^^^^
> 
>    ^
>   ^^^
>  ^^^^^
> ^^^^^^^
> 
>     ^
>    ^^^
>   ^^^^^
>  ^^^^^^^
> ^^^^^^^^^
> 

Solutions by @braxler:

Unlock 3 remaining solutions by signing in and submitting your own entry
Created by: @udioica

40 active golfers, 99 entries

Solutions by @braxler:
22
#4 - John Braxler / @braxler

03/21/2014 at 08:35PM

25
#>7 - John Braxler / @braxler

01/06/2014 at 05:33PM

29
#>22 - John Braxler / @braxler

01/06/2014 at 05:29PM