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 28 remaining solutions by signing in and submitting your own entry
#29 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

29 active golfers, 104 entries

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

03/30/2019 at 04:05PM

18
#2 - πšƒπš’πšπš˜πšžπšŠπš— πšƒπšŽπš’πšœπšœπš’πšŽπš› / @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

18
#11 - κΉ€ν˜„μˆ˜ / @flyhigh43

04/28/2019 at 04:16AM

18
#12 - Grant / @grant_7788

04/30/2019 at 02:20PM

18
#13 - Martin Delille / @martinodelilo

08/22/2019 at 09:51AM

18
#14 - MiΕ‚osz Łakomy / @foobar01123

02/17/2020 at 06:09AM

18
#15 - pikjes / @pikjes2

03/25/2021 at 03:25PM

18
#16 - Dan / @dstein64

04/01/2021 at 03:58AM

18
#17 - Alex / @AlexanderHeatl2

08/29/2022 at 05:20PM

18
#18 - Aly Thobani / @alythobani

05/31/2024 at 05:20PM

18
#19 - Peppa Pig / @PeppaPigSg

07/01/2024 at 01:27AM

18
#20 - nickGPT / @nickandbro

08/24/2024 at 10:48PM

21
#21 - Jean George / @JeanGeo20504212

09/27/2021 at 04:30PM

21
#22 - Luoyb / @Luoyb

10/30/2023 at 06:49AM

22
#23 - zh0ng / @zh00ng

04/03/2019 at 09:08AM

22
#24 - Arijus / @argshook

04/03/2019 at 11:58AM

22
#25 - Ivo BlΓΆchliger / @aigledesalpes

08/19/2019 at 07:59AM

23
#26 - Izaak van Dongen / @goedel_gang

04/28/2019 at 01:51AM

31
#27 - Roger Stoltz / @rogsto1

04/23/2019 at 08:43PM

43
#28 - RockerZZY / @rocker_zzy

07/03/2020 at 12:31AM

72
#29 - Andrius Bentkus / @andriusbentkus

04/04/2019 at 03:26PM