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

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

44 active golfers, 123 entries

Solutions by @GavinKoeng:
22
#7 - Gavin / @GavinKoeng

05/12/2026 at 10:56PM

23
#>8 - Gavin / @GavinKoeng

05/12/2026 at 10:56PM

25
#>15 - Gavin / @GavinKoeng

05/12/2026 at 10:55PM

26
#>18 - Gavin / @GavinKoeng

05/12/2026 at 10:54PM

27
#>20 - Gavin / @GavinKoeng

05/12/2026 at 10:54PM

28
#>23 - Gavin / @GavinKoeng

05/12/2026 at 10:54PM

29
#>26 - Gavin / @GavinKoeng

05/12/2026 at 10:53PM

30
#>30 - Gavin / @GavinKoeng

05/12/2026 at 10:53PM

31
#>36 - Gavin / @GavinKoeng

05/12/2026 at 10:53PM

34
#>43 - Gavin / @GavinKoeng

05/12/2026 at 10:52PM

36
#>43 - Gavin / @GavinKoeng

05/12/2026 at 10:48PM

36
#>43 - Gavin / @GavinKoeng

05/12/2026 at 10:49PM

36
#>43 - Gavin / @GavinKoeng

05/12/2026 at 10:51PM

57
#>43 - Gavin / @GavinKoeng

05/12/2026 at 10:46PM