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

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

43 active golfers, 109 entries

Solutions by @MonkieeBoi:
22
#5 - MonkieeBoi / @MonkieeBoi

11/22/2023 at 10:08AM

23
#>7 - MonkieeBoi / @MonkieeBoi

11/22/2023 at 10:08AM

25
#>14 - MonkieeBoi / @MonkieeBoi

11/22/2023 at 10:07AM

26
#>17 - MonkieeBoi / @MonkieeBoi

11/22/2023 at 10:05AM

27
#>19 - MonkieeBoi / @MonkieeBoi

11/22/2023 at 10:04AM

29
#>25 - MonkieeBoi / @MonkieeBoi

11/22/2023 at 10:03AM