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

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

43 active golfers, 109 entries

Solutions by @marcontwit:
23
#7 - oliver mueller / @marcontwit

01/10/2014 at 08:01PM

26
#>16 - oliver mueller / @marcontwit

01/10/2014 at 07:49PM

30
#>26 - oliver mueller / @marcontwit

01/10/2014 at 07:26PM

34
#>40 - oliver mueller / @marcontwit

01/10/2014 at 06:47AM