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 53bddd87dbd3db0002c48c0f

Neither Fizz nor Buzz

Not your regular increment macro! The gaps are tricky.

Start file
0
0
Fizz
0
Buzz
Fizz
0
0
Fizz
Buzz
0
Fizz
0
0
FizzBuzz
End file
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz

View Diff

1,2c1,2
< 0
< 0
---
> 1
> 2
4c4
< 0
---
> 4
7,8c7,8
< 0
< 0
---
> 7
> 8
11c11
< 0
---
> 11
13,14c13,14
< 0
< 0
---
> 13
> 14

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 65 remaining solutions by signing in and submitting your own entry
#66 Matthieu Crapet / mcr05 - Score: 21 - 01/04/15 @ 09:20
Y:%norm!P<C-A>dd<C-X>"_ddP<CR>ZZ

0 comments

#67 Tom Richards / the_tomrichards - Score: 22 - 07/10/14 @ 20:39
:%s/0/=<Left>\<End>line('.')<CR>ZZ

0 comments

#68 Florian Duraffourg / fduraffourg - Score: 22 - 07/12/14 @ 07:49
<C-A>u:%s/0/\=line('.')<CR>ZZ

0 comments

#69 Tj / yrddy - Score: 22 - 08/13/14 @ 06:32
:%s/0/\=line('.')/g<CR>ZZ

0 comments

#70 SilentFl / Silent_Fl - Score: 22 - 01/27/15 @ 14:27
:%s/0/\=line('.')/g<CR>ZZ

0 comments

#71 Jeffrey Gu / Jeffrey_Gu - Score: 22 - 03/20/15 @ 17:24
:%s/0/\=line('.')/g<CR>ZZ

0 comments

#72 Josh Gilkerson / JoshGilk - Score: 23 - 07/11/14 @ 17:53
:g/0/s/0/\=line('.')<CR>ZZ

0 comments

#73 Walker Boh / walker_boh - Score: 23 - 10/16/15 @ 15:10
Y:%norm!P<C-A>dd<C-X>".<BS>_ddP<CR>ZZ

0 comments

#74 Paul Rodgers / oursjaune - Score: 24 - 07/10/14 @ 18:39
:%s/0/\=line('.')/<BS><CR>:wq<CR>

0 comments

#75 Carlos A Henríquez Q / lagunex - Score: 29 - 01/18/15 @ 16:04
<C-A>/0<CR>2<C-A>n4<C-A>n7<C-A>n8<C-A>n11<C-A>n13<C-A>n14<C-A>ZZ

0 comments

#76 Dirk Willrodt / DirkWillrodt - Score: 30 - 07/10/14 @ 16:43
<C-A>qaY/0<CR>Vp<C-A>q@a<C-A>@a2<C-A>2@a2<C-A>@a<C-A>@aZZ

0 comments

#77 yamasita taisuke / yaasita - Score: 31 - 07/11/14 @ 12:02
qa:norm <C-R>=line('.')<CR><C-A><CR>/0<CR>q7@aZZ

0 comments

#78 Ben Turner / phantomwhale - Score: 38 - 07/10/14 @ 04:57
<C-A>j<C-A><C-A>jjr4jjjr7jr8jjjs11<Esc>jjs13<Esc>js14<Esc>:wq<CR>

0 comments

#79 RobertT / techrt2050 - Score: 43 - 07/10/14 @ 05:42
d3Lqq<C-A>yypq13@qddqq3kSFizz<Esc>q3@qjjSBuzz<Esc>5j.ZZ

0 comments

#80 Pamela Ocampo / pmocampo - Score: 52 - 07/11/14 @ 01:02
:14<CR>cw14<Esc>/0<CR>r1<Esc>nr2<Esc>nr4<Esc>nr7<Esc>nr8<Esc>nr1a`<BS>1<Esc>ncw13<Esc>:w<CR>:wq<CR>

0 comments

#81 João Carvalho / joaoCarvas - Score: 56 - 07/11/14 @ 10:08
O1<Esc>qayyjp<C-A>q13@avap:normal J<CR>:%s/ 0//<CR>:%s/[0-9]\+ //<CR>;:x<CR>

0 comments

#82 mko_io / mko_io - Score: 79 - 07/11/14 @ 00:07
xi1jj<BS><BS><Esc>jx2i2<C-O><Esc>4<BS><Esc>4<Esc>:4<CR>xi4<C-O>:7<CR>7xjj<BS><BS><BS><Esc>lx:8<CR>s8<C-C><C-C>:11<CR>s11<C-C><C-C>:13<CR>s13<C-C><C-C>:14<CR>x14i14<C-C><C-C>ZZ

0 comments

Created by: udioica

82 active golfers, 173 entries

Leaderboard (lowest score wins):
13
#1 - Urtica dioica / udioica

06/25/2015 at 06:43PM

13
#2 - John Braxler / braxler

10/14/2015 at 04:15PM

13
#3 - Jon Krause / jkrause314

01/29/2016 at 08:18AM

13
#4 - emblox / emblox

02/29/2016 at 06:07AM

13
#5 - Saki Gw / Sakigw

02/06/2017 at 07:33PM

15
#6 - Tim Chase / gumnos

07/10/2014 at 11:46PM

15
#7 - Petro Тrouq / zulolosi

07/11/2014 at 05:22AM

15
#8 - Pavlo Klets / p01nt

07/15/2014 at 03:37PM

15
#9 - Waylon Cude / waylon531

07/18/2014 at 03:43PM

15
#10 - Birkir Ólafsson / Birkirlafsson

07/21/2014 at 05:38PM

15
#11 - PLS / jaegd

08/16/2014 at 09:59PM

15
#12 - Michael Comerford / MComerford1

09/22/2014 at 02:18AM

15
#13 - Daniel / Daniel00288663

04/05/2017 at 08:53AM

16
#14 - Carlos López / morrizon

07/11/2014 at 02:24PM

16
#15 - Lifepillar / lifepillar

07/05/2015 at 04:48PM

20
#16 - Adit Cahya Ramadhan / aditcr8

07/10/2014 at 01:26AM

20
#17 - Caek / Caek_

07/10/2014 at 06:08AM

20
#18 - Edgar Hipp / EdgarHipp

07/10/2014 at 08:28AM

20
#19 - Alexandre Ignjatovic / bankair

07/10/2014 at 08:40AM

20
#20 - Ram Tamtam / ramtamtamtam

07/10/2014 at 09:56AM

20
#21 - Saher El-Neklawy / saherneklawy

07/10/2014 at 10:14AM

20
#22 - b / bprkrprkr

07/11/2014 at 02:03AM

20
#23 - Kerson Hsiao / KersonHsiao

07/11/2014 at 04:42AM

20
#24 - playalong / playwithit42

07/11/2014 at 05:53AM

20
#25 - Garrett Heaver / garrettheaver

07/11/2014 at 11:08AM

20
#26 - Dmitry Teslenko / krab_mozga

07/11/2014 at 12:41PM

20
#27 - Bart / oneofmanybarts

07/11/2014 at 02:25PM

20
#28 - magizbox / rain_1024

07/12/2014 at 11:55PM

20
#29 - Vim Golfer / thevimgolfer

07/13/2014 at 10:21AM

20
#30 - buz / buzbone

07/13/2014 at 05:36PM

20
#31 - Marco Biasini / biasmv

07/13/2014 at 07:00PM

20
#32 - Grigoriy Alexeev / GrigoriyAlexeev

07/13/2014 at 07:04PM

20
#33 - RiccardoSven Risuleo / riccardosven

07/17/2014 at 01:03PM

20
#34 - Ben Zittlau / benzittlau

07/18/2014 at 06:39PM

20
#35 - Donald Fenniak / DFenniak

07/18/2014 at 07:05PM

20
#36 - Yann Moisan / YannMoisan

07/18/2014 at 08:18PM

20
#37 - Pete Johns / johnsyweb

07/20/2014 at 02:26AM

20
#38 - Dominik Szerszeń / DominikSze

07/22/2014 at 01:28PM

20
#39 - Forrest Zeisler / fzeisler

07/23/2014 at 05:05AM

20
#40 - Zapata / Incredible_JFP

07/28/2014 at 08:12PM

20
#41 - Slartibartfast / S_Bartfast

08/01/2014 at 11:09AM

20
#42 - David Wilkins / davewilkins_oc

08/02/2014 at 02:42AM

20
#43 - Pepe / GomTvIneluki

08/15/2014 at 10:40PM

20
#44 - Massimo Gengarelli / gengaro

08/17/2014 at 03:22PM

20
#45 - Dmitriy / _dpy_

08/21/2014 at 12:04PM

20
#46 - James / Dronak

08/21/2014 at 05:47PM

20
#47 - Martin Thoresen / MartinHaTh

08/25/2014 at 11:29AM

20
#48 - Justin Knag / justinknag

08/30/2014 at 10:48AM

20
#49 - Qhuatre / Qhuatre

09/02/2014 at 08:49PM

20
#50 - Dario Avitabile / tutticapaci

09/08/2014 at 03:51PM

20
#51 - Jeff / just_geophree

09/13/2014 at 07:54PM

20
#52 - Sabiki94@ブルスクの人 / _jptomoya

10/18/2014 at 09:12AM

20
#53 - eBrnd / eBrnd

11/02/2014 at 08:39PM

20
#54 - mark0829 / mark0829

02/06/2015 at 06:29AM

20
#55 - Oliver Christ / 0liverChrist

02/08/2015 at 09:24PM

20
#56 - Konr Larson / larsonkonr

03/20/2015 at 05:26PM

20
#57 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / subbucoding

04/01/2015 at 12:23AM

20
#58 - pftb12345 / pftb12345

04/09/2015 at 06:07AM

20
#59 - Grisha Pushkov / readoonly

05/25/2015 at 11:28AM

20
#60 - Jack Z / itszhou

06/28/2015 at 08:50PM

20
#61 - ltn614 / ltn614

09/22/2015 at 05:50PM

20
#62 - Stanislav / prstad

08/23/2016 at 11:06AM

21
#63 - w1zeman1p / wizemanip

07/10/2014 at 06:03AM

21
#64 - Bakhti Aripov / bakhti

07/10/2014 at 06:54PM

21
#65 - Matthias Wolf / matz__e

07/11/2014 at 01:47PM

21
#66 - Matthieu Crapet / mcr05

01/04/2015 at 09:20AM

22
#67 - Tom Richards / the_tomrichards

07/10/2014 at 08:39PM

22
#68 - Florian Duraffourg / fduraffourg

07/12/2014 at 07:49AM

22
#69 - Tj / yrddy

08/13/2014 at 06:32AM

22
#70 - SilentFl / Silent_Fl

01/27/2015 at 02:27PM

22
#71 - Jeffrey Gu / Jeffrey_Gu

03/20/2015 at 05:24PM

23
#72 - Josh Gilkerson / JoshGilk

07/11/2014 at 05:53PM

23
#73 - Walker Boh / walker_boh

10/16/2015 at 03:10PM

24
#74 - Paul Rodgers / oursjaune

07/10/2014 at 06:39PM

29
#75 - Carlos A Henríquez Q / lagunex

01/18/2015 at 04:04PM

30
#76 - Dirk Willrodt / DirkWillrodt

07/10/2014 at 04:43PM

31
#77 - yamasita taisuke / yaasita

07/11/2014 at 12:02PM

38
#78 - Ben Turner / phantomwhale

07/10/2014 at 04:57AM

43
#79 - RobertT / techrt2050

07/10/2014 at 05:42AM

52
#80 - Pamela Ocampo / pmocampo

07/11/2014 at 01:02AM

56
#81 - João Carvalho / joaoCarvas

07/11/2014 at 10:08AM

79
#82 - mko_io / mko_io

07/11/2014 at 12:07AM