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

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

40 active golfers, 99 entries

Solutions by @engineator:
25
#12 - TheEngineator / @engineator

12/09/2018 at 07:05PM

26
#>15 - TheEngineator / @engineator

12/09/2018 at 07:04PM

27
#>17 - TheEngineator / @engineator

12/09/2018 at 07:03PM

28
#>20 - TheEngineator / @engineator

12/09/2018 at 07:00PM

29
#>23 - TheEngineator / @engineator

12/09/2018 at 06:58PM

30
#>27 - TheEngineator / @engineator

12/09/2018 at 06:56PM

31
#>33 - TheEngineator / @engineator

12/09/2018 at 06:54PM

34
#>39 - TheEngineator / @engineator

12/09/2018 at 06:53PM

47
#>39 - TheEngineator / @engineator

12/09/2018 at 06:46PM

73
#>40 - TheEngineator / @engineator

12/09/2018 at 06:43PM

143
#>40 - TheEngineator / @engineator

12/08/2018 at 07:43PM