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

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

40 active golfers, 99 entries

Solutions by @pedrosans:
25
#10 - Pedro Santos / @pedrosans

02/20/2014 at 08:08PM

26
#>14 - Pedro Santos / @pedrosans

02/20/2014 at 08:06PM

29
#>22 - Pedro Santos / @pedrosans

02/20/2014 at 08:01PM

29
#>22 - Pedro Santos / @pedrosans

02/20/2014 at 08:02PM

32
#>34 - Pedro Santos / @pedrosans

02/19/2014 at 05:49PM

40
#>39 - Pedro Santos / @pedrosans

02/20/2014 at 07:47PM