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

82 active golfers, 192 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

20
#16 - Ujjwol Lamichhane / @Ujjwol

01/01/2011 at 05:40AM

20
#17 - Josh Weinberg / @jcweinberg

01/01/2011 at 06:44AM

20
#18 - Ilya Ermolin / @ermolinis

01/01/2011 at 12:03PM

20
#19 - Fer Enaf / @0x00C0FFEE

01/01/2011 at 08:21PM

20
#20 - clint tseng / @cxlt

01/02/2011 at 02:43AM

20
#21 - Pete Johns / @johnsyweb

01/02/2011 at 06:01AM

20
#22 - David Shaw / @shawthings

01/02/2011 at 09:31AM

20
#23 - derp derp / @derp__

01/03/2011 at 05:29AM

20
#24 - Kyle Willmon / @kylewillmon

01/03/2011 at 06:08AM

20
#25 - Glenn / @spamcow_moo

01/04/2011 at 12:31AM

20
#26 - aimee / @sermoa

01/08/2011 at 05:06PM

20
#27 - h_east (トロッコ6個) / @h_east

01/30/2011 at 09:50AM

20
#28 - Justin Love / @wondible

07/18/2011 at 02:16PM

20
#29 - Hu Junfeng / @junfeng

07/25/2011 at 12:01PM

20
#30 - vimja / @vimja666

11/02/2011 at 11:46PM