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):
23
#61 - SirVer / @SirVerII

01/23/2011 at 02:14PM

23
#62 - Trevor Powell / @DoomedBunnies

12/02/2011 at 01:21AM

23
#63 - Tyler Breisacher / @tbreisacher

08/25/2012 at 09:03AM

23
#64 - πšƒπš’πšπš˜πšžπšŠπš— πšƒπšŽπš’πšœπšœπš’πšŽπš› / @TitouanT_

02/22/2019 at 02:30AM

23
#65 - UrbanNinja1010 / @UrbanNinja1010

04/07/2025 at 01:05PM

24
#66 - Douglas Stockwell / @dstockwell

01/01/2011 at 04:56AM

24
#67 - Alain Gilbert / @alain_gilbert

01/01/2011 at 05:10AM

24
#68 - AurΓ©lien Delahaye / @alkove

01/01/2011 at 05:27PM

24
#69 - pcapriotti / @pcapriotti

01/01/2011 at 06:41PM

24
#70 - Clive Evans / @swish_bob

01/01/2011 at 11:54PM

24
#71 - Karel Vervaeke / @karel1980

01/06/2011 at 11:32AM

24
#72 - Dave / @zzdave13

07/25/2011 at 08:24PM

24
#73 - David / @dpa_92

08/02/2011 at 06:55AM

24
#74 - vansan / @VinceVansan

08/28/2012 at 08:44PM

25
#75 - johnny / @johnnychm

01/01/2011 at 07:58PM

25
#76 - Peter Anselmo / @peter_anselmo

01/01/2011 at 08:49PM

25
#77 - Saikat Guha / @guhasaikat

01/03/2011 at 11:07AM

25
#78 - drio / @drio

01/15/2011 at 02:24PM

25
#79 - Mathias Bynens  / @mathias

04/08/2011 at 08:53AM

25
#80 - not so punk :] / @notsopunk

06/19/2011 at 11:08AM

25
#81 - nicolas bo / @thevegeta

11/09/2011 at 04:21PM

25
#82 - Justin Knag / @justinknag

08/31/2014 at 06:30AM

25
#83 - Brandon Blakeley / @zkelvin

11/27/2017 at 04:25AM

26
#84 - Dmitry Teslenko / @krab_mozga

01/19/2011 at 02:08PM

26
#85 - Matt / @mcr05

12/31/2014 at 01:05PM

26
#86 - grigouille / @grigouille2

06/26/2017 at 07:57PM

28
#87 - shahanavaz m / @shahanavazm

03/06/2024 at 07:56PM

29
#88 - RockerZZY / @rocker_zzy

06/06/2020 at 02:29AM

30
#89 - Ian McCowan / @valrus

05/30/2011 at 02:13AM

30
#90 - Luke Bryant / @LukeBryant55

10/18/2017 at 03:37PM