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 4d1eaf7225ba287b2a00018b

Generate Fibonacci Numbers

Use your super vim powers to generate Fibonacci Numbers.

Start file
0
End file
0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040
1346269
2178309
3524578
5702887
9227465
14930352
24157817
39088169

View Diff

1a2,39
> 1
> 1
> 2
> 3
> 5
> 8
> 13
> 21
> 34
> 55
> 89
> 144
> 233
> 377
> 610
> 987
> 1597
> 2584
> 4181
> 6765
> 10946
> 17711
> 28657
> 46368
> 75025
> 121393
> 196418
> 317811
> 514229
> 832040
> 1346269
> 2178309
> 3524578
> 5702887
> 9227465
> 14930352
> 24157817
> 39088169

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 98 remaining solutions by signing in and submitting your own entry
#99 Lee Marlow / @lmarlow - Score: 75 - 01/01/11 @ 05:14
Yp<C-A>qqo<Esc>:call setline('.',getline(line('.')-1)+getline(line('.')-2))<CR>q36@qZZ

0 comments


Created by: @Ujjwol

99 active golfers, 279 entries

Leaderboard (lowest score wins):
19
#1 - Federico Galassi / @federicogalassi

01/26/2011 at 03:28AM

19
#2 - Wei Dai / @clvv42

01/28/2011 at 07:00AM

19
#3 - vg / @vimgolfer

02/27/2011 at 09:59PM

19
#4 - You-Siang Lin / @yslinnctu

12/02/2011 at 01:01PM

19
#5 - Renat Aksitov / @Korvin79

02/18/2012 at 08:13AM

19
#6 - Urtica dioica / @udioica

06/27/2012 at 11:22PM

19
#7 - Kerson Hsiao / @KersonHsiao

08/13/2012 at 12:34PM

19
#8 - Conner McDaniel / @connermcd

09/25/2012 at 12:30AM

19
#9 - Vim rocks / @vimrocks

10/09/2012 at 10:44AM

19
#10 - Victor Ramirez / @virako

10/16/2012 at 01:09AM

19
#11 - Вячеслав Аникин / @anikinsl

10/17/2012 at 11:21AM

19
#12 - Petro Тrouq / @zulolosi

02/15/2013 at 07:19PM

19
#13 - Marco Hinz / @_mhinz_

05/26/2013 at 11:11PM

19
#14 - John Braxler / @braxler

08/12/2014 at 06:24PM

19
#15 - pftb12345 / @pftb12345

04/23/2015 at 01:31PM

19
#16 - Turkey Man / @lvturkeyman

08/20/2018 at 08:44AM

19
#17 - Saki Gw / @Sakigw

09/19/2019 at 12:37PM

19
#18 - Riley Bryant / @RileyBryant

07/28/2021 at 09:43PM

19
#19 - lydxn / @lydxn1

07/29/2021 at 06:06AM

19
#20 - wpr__ / @wpr____

07/30/2021 at 11:21PM

19
#21 - russellzhaomao / @russellzhaomao

05/31/2022 at 03:05AM

19
#22 - Topvimgolf Score / @topvimgolfscore

07/29/2023 at 11:28PM

19
#23 - Peppa Pig / @PeppaPi95550250

06/02/2024 at 09:48AM

19
#24 - nickGPT / @nickandbro

08/28/2024 at 11:28PM

20
#25 - Ujjwol Lamichhane / @Ujjwol

01/01/2011 at 05:40AM

20
#26 - Josh Weinberg / @jcweinberg

01/01/2011 at 06:44AM

20
#27 - Ilya Ermolin / @ermolinis

01/01/2011 at 12:03PM

20
#28 - Fer Enaf / @0x00C0FFEE

01/01/2011 at 08:21PM

20
#29 - clint tseng / @cxlt

01/02/2011 at 02:43AM

20
#30 - Pete Johns / @johnsyweb

01/02/2011 at 06:01AM