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

88 active golfers, 211 entries

Leaderboard (lowest score wins):
24
#61 - Clive Evans / @swish_bob

01/01/2011 at 11:54PM

24
#62 - Karel Vervaeke / @karel1980

01/06/2011 at 11:32AM

24
#63 - Dave / @zzdave13

07/25/2011 at 08:24PM

24
#64 - David / @dpa_92

08/02/2011 at 06:55AM

24
#65 - vansan / @VinceVansan

08/28/2012 at 08:44PM

25
#66 - johnny / @johnnychm

01/01/2011 at 07:58PM

25
#67 - Peter Anselmo / @peter_anselmo

01/01/2011 at 08:49PM

25
#68 - Saikat Guha / @guhasaikat

01/03/2011 at 11:07AM

25
#69 - drio / @drio

01/15/2011 at 02:24PM

25
#70 - Mathias Bynens  / @mathias

04/08/2011 at 08:53AM

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

06/19/2011 at 11:08AM

25
#72 - nicolas bo / @thevegeta

11/09/2011 at 04:21PM

25
#73 - Justin Knag / @justinknag

08/31/2014 at 06:30AM

25
#74 - Brandon Blakeley / @zkelvin

11/27/2017 at 04:25AM

26
#75 - Dmitry Teslenko / @krab_mozga

01/19/2011 at 02:08PM

26
#76 - Matt / @mcr05

12/31/2014 at 01:05PM

26
#77 - grigouille / @grigouille2

06/26/2017 at 07:57PM

29
#78 - RockerZZY / @rocker_zzy

06/06/2020 at 02:29AM

30
#79 - Ian McCowan / @valrus

05/30/2011 at 02:13AM

30
#80 - Luke Bryant / @LukeBryant55

10/18/2017 at 03:37PM

30
#81 - Ollin Boer Bohan / @madebyollin

09/22/2019 at 09:39PM

32
#82 - James Cash / @jamesnvc

01/04/2011 at 03:55PM

32
#83 - foo / @foo88832727

10/19/2013 at 05:03PM

32
#84 - Phil Dubach / @fuiru

08/13/2014 at 05:16AM

34
#85 - Chaitanya Desu / @ChaituNu

05/11/2014 at 04:17AM

34
#86 - Gerhard Gappmeier / @gergap

09/15/2015 at 04:00PM

58
#87 - Francisco Dibar / @frandibar

01/08/2011 at 03:50AM

75
#88 - Lee Marlow / @lmarlow

01/01/2011 at 05:14AM