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 5039216a1eb07a0002000026

Sierpinski's Triangle

Build the famous fractal, Sierpinski's Triangle.

Start file
 ^
/_\
End file
                               ^
                             
/_\
                             ^   ^
                            /
_\ /_\
                           
^       ^
                         
/_\     /_\
                         
^   ^   ^   ^
                       
/_\ /_\ /_\ /_\
                       
^               ^
                     
/_\             /_\
                     
^   ^           ^   ^
                   
/_\ /_\         /_\ /_\
                   
^       ^       ^       ^
                 
/_\     /_\     /_\     /_\
                 
^   ^   ^   ^   ^   ^   ^   ^
               
/_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\
               
^                               ^
             
/_\                             /_\
             
^   ^                           ^   ^
           
/_\ /_\                         /_\ /_\
           
^       ^                       ^       ^
         
/_\     /_\                     /_\     /_\
         
^   ^   ^   ^                   ^   ^   ^   ^
       
/_\ /_\ /_\ /_\                 /_\ /_\ /_\ /_\
       
^               ^               ^               ^
     
/_\             /_\             /_\             /_\
     
^   ^           ^   ^           ^   ^           ^   ^
   
/_\ /_\         /_\ /_\         /_\ /_\         /_\ /_\
   
^       ^       ^       ^       ^       ^       ^       ^
 
/_\     /_\     /_\     /_\     /_\     /_\     /_\     /_\
 
^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^
/_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\

View Diff

1,2c1,32
<  ^
< /_\
---
>                                ^
>                               /
_\
>                              ^   ^
>                             /_\ /_\
>                            ^       ^
>                           /_\     /_\
>                          ^   ^   ^   ^
>                         /_\ /_\ /_\ /_\
>                        ^               ^
>                       /_\             /_\
>                      ^   ^           ^   ^
>                     /_\ /_\         /_\ /_\
>                    ^       ^       ^       ^
>                   /_\     /_\     /_\     /_\
>                  ^   ^   ^   ^   ^   ^   ^   ^
>                 /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\
>                ^                               ^
>               /_\                             /_\
>              ^   ^                           ^   ^
>             /_\ /_\                         /_\ /_\
>            ^       ^                       ^       ^
>           /_\     /_\                     /_\     /_\
>          ^   ^   ^   ^                   ^   ^   ^   ^
>         /_\ /_\ /_\ /_\                 /_\ /_\ /_\ /_\
>        ^               ^               ^               ^
>       /_\             /_\             /_\             /_\
>      ^   ^           ^   ^           ^   ^           ^   ^
>     /_\ /_\         /_\ /_\         /_\ /_\         /_\ /_\
>    ^       ^       ^       ^       ^       ^       ^       ^
>   /_\     /_\     /_\     /_\     /_\     /_\     /_\     /_\
>  ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^   ^
> /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\ /_\

Solutions by @zulolosi:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @tbreisacher

27 active golfers, 86 entries

Solutions by @zulolosi:
25
#3 - Petro Тrouq / @zulolosi

07/03/2013 at 06:23PM