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):
30
#91 - Ollin Boer Bohan / @madebyollin

09/22/2019 at 09:39PM

30
#92 - Oisin Ward / @OisinWard_vg

07/05/2023 at 05:18PM

31
#93 - Anton de Regt / @antonderegt

10/25/2024 at 12:10PM

32
#94 - James Cash / @jamesnvc

01/04/2011 at 03:55PM

32
#95 - foo / @foo88832727

10/19/2013 at 05:03PM

32
#96 - Phil Dubach / @fuiru

08/13/2014 at 05:16AM

33
#97 - James / @Dronak

12/15/2022 at 07:24PM

34
#98 - Chaitanya Desu / @ChaituNu

05/11/2014 at 04:17AM

34
#99 - Gerhard Gappmeier / @gergap

09/15/2015 at 04:00PM

58
#100 - Francisco Dibar / @frandibar

01/08/2011 at 03:50AM

75
#101 - Lee Marlow / @lmarlow

01/01/2011 at 05:14AM