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 5c9f6f52e73f87000c1548f8

Triangular Numbers

Generate the first 50 triangular numbers.

Start file
0
End file
0 1 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 171 190 210 231 253 276 300 325 351 378 406 435 465 496 528 561 595 630 666 703 741 780 820 861 903 946 990 1035 1081 1128 1176 1225

View Diff

1c1
< 0
---
> 0 1 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 171 190 210 231 253 276 300 325 351 378 406 435 465 496 528 561 595 630 666 703 741 780 820 861 903 946 990 1035 1081 1128 1176 1225

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 14 remaining solutions by signing in and submitting your own entry
#15 Andrius Bentkus / @andriusbentkus - Score: 72 - 04/04/19 @ 15:26
:execute "normal! ".join(map(range(1,49),'"yiwA <C-V><Esc>p".v:val."<C-V><C-A>"'),'')<CR>ZZ

0 comments


Created by: @dstein64

15 active golfers, 36 entries

Leaderboard (lowest score wins):
18
#1 - Jon Krause / @jkrause314

03/30/2019 at 04:05PM

18
#2 - Titouan Teyssier / @TitouanT_

03/30/2019 at 04:27PM

18
#3 - πŸ…·πŸ…°πŸ†πŸ†πŸ†ˆ / @HarryAAbrahams1

03/31/2019 at 01:34AM

18
#4 - k24w24 / @k24w24

03/31/2019 at 07:01AM

18
#5 - Smylers / @Smylers2

03/31/2019 at 03:34PM

18
#6 - Marc PΓ€pper / @mpaepper

04/01/2019 at 01:08PM

18
#7 - John Braxler / @braxler

04/01/2019 at 03:00PM

18
#8 - David A. Lyon / @dauglyon

04/01/2019 at 09:26PM

18
#9 - Mihai / @mihaicristiant

04/12/2019 at 08:20AM

18
#10 - alekfed / @alek_fed

04/15/2019 at 07:50AM

22
#11 - zh0ng / @zh00ng

04/03/2019 at 09:08AM

22
#12 - Arijus / @argshook

04/03/2019 at 11:58AM

31
#13 - Daniel Steinberg / @dstein64

03/30/2019 at 01:31PM

31
#14 - Roger Stoltz / @rogsto1

04/23/2019 at 08:43PM

72
#15 - Andrius Bentkus / @andriusbentkus

04/04/2019 at 03:26PM