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 @jokkebk:

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

40 active golfers, 99 entries

Solutions by @jokkebk:
25
#11 - Joonas Pihlajamaa / @jokkebk

03/21/2014 at 09:45AM

26
#>15 - Joonas Pihlajamaa / @jokkebk

03/21/2014 at 09:40AM

27
#>16 - Joonas Pihlajamaa / @jokkebk

03/21/2014 at 09:33AM

28
#>19 - Joonas Pihlajamaa / @jokkebk

03/21/2014 at 09:30AM

29
#>22 - Joonas Pihlajamaa / @jokkebk

03/21/2014 at 09:29AM