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

101 active golfers, 287 entries

Leaderboard (lowest score wins):
20
#31 - David Shaw / @shawthings

01/02/2011 at 09:31AM

20
#32 - derp derp / @derp__

01/03/2011 at 05:29AM

20
#33 - Kyle Willmon / @kylewillmon

01/03/2011 at 06:08AM

20
#34 - Glenn / @spamcow_moo

01/04/2011 at 12:31AM

20
#35 - aimee / @sermoa

01/08/2011 at 05:06PM

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

01/30/2011 at 09:50AM

20
#37 - Justin Love / @wondible

07/18/2011 at 02:16PM

20
#38 - Junfeng / @junfeng

07/25/2011 at 12:01PM

20
#39 - vimja / @vimja666

11/02/2011 at 11:46PM

20
#40 - William Dunand / @wdunand

11/22/2011 at 05:54AM

20
#41 - Xavier Nayrac / @lkdjiin

12/31/2011 at 04:37PM

20
#42 - Nolen Royalty / @NolenRoyalty

04/21/2012 at 01:32AM

20
#43 - Jon Krause / @jkrause314

10/20/2015 at 03:43AM

20
#44 - roudens / @roudens2

02/07/2021 at 06:15AM

21
#45 - alexscott / @4l3xsc0tt

01/05/2011 at 01:45AM

22
#46 - xaizek / @xaizek

07/21/2011 at 05:54PM

22
#47 - じょんあば / @john_ababa

05/26/2012 at 05:42AM

22
#48 - garry quested / @GQuested

09/26/2019 at 01:07PM

23
#49 - Matthew Draper / @_matthewd

01/01/2011 at 05:19AM

23
#50 - Brad / @bjjwillis

01/02/2011 at 12:23AM

23
#51 - Austin Taylor / @austintaylor

01/02/2011 at 04:46AM

23
#52 - dominique pellé / @vimgolfisto

01/02/2011 at 10:56AM

23
#53 - Stuart Gale / @bishboria

01/02/2011 at 06:30PM

23
#54 - Paul King / @nrocy

01/02/2011 at 07:16PM

23
#55 - Ben Lenarts / @benlenarts

01/02/2011 at 11:57PM

23
#56 - Corey Purcell / @coreypurcell

01/03/2011 at 05:00PM

23
#57 -  Ikhsan Maulana / @ixandidu

01/06/2011 at 01:38PM

23
#58 - Tim Chase / @gumnos

01/13/2011 at 01:20PM

23
#59 - Przemysław Pawełczyk / @przemoc86

01/15/2011 at 11:32PM

23
#60 - Oleg Roshupkin / @jjjahson

01/20/2011 at 09:45AM