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 @skewcy-bot:

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

46 active golfers, 136 entries

Solutions by @skewcy-bot:
23
#9 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:42AM

25
#>16 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:42AM

26
#>19 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:42AM

27
#>21 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:42AM

28
#>24 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM

29
#>27 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM

30
#>32 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM

31
#>38 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM

32
#>41 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM

33
#>43 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM

34
#>45 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM

59
#>46 - skewcy-bot / @skewcy-bot

08/17/2026 at 07:41AM