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 4d34af20e747f561b3000081

Rotating Philosophers Problem

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

Start file
Socrates Voltaire Descartes Plato
End file
Socrates Voltaire Descartes Plato Konfuzius
Konfuzius Socrates Voltaire Descartes Plato
Plato Konfuzius Socrates Voltaire Descartes
Descartes Plato Konfuzius Socrates Voltaire
Voltaire Descartes Plato Konfuzius Socrates

View Diff

1c1,5
< Socrates Voltaire Descartes Plato
---
> Socrates Voltaire Descartes Plato Konfuzius
> Konfuzius Socrates Voltaire Descartes Plato
> Plato Konfuzius Socrates Voltaire Descartes
> Descartes Plato Konfuzius Socrates Voltaire
> Voltaire Descartes Plato Konfuzius Socrates

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 115 remaining solutions by signing in and submitting your own entry
#116 Arto Vuori / dhpe - Score: 33 - 09/01/12 @ 17:23
A Konfuzius<Esc>qqYp$diw0Pa <Esc>$xq3@qZZ

0 comments

#117 James / Dronak - Score: 33 - 09/05/13 @ 17:37
A Konfuzius <Esc>qqYp4wD^Pq3@q$<C-V>4kxZZ

0 comments

#118 Shaun Robinson / env - Score: 33 - 02/11/14 @ 04:09
A Konfuzius<Esc>qqYPj4wD0Pa <Esc>$xq3@qZZ

0 comments

#119 Gregor MacDougall / GrMacDougall - Score: 33 - 05/07/14 @ 01:39
A Konfuzius<Esc>qayyp$BD^Pa <Esc>$xq3@aZZ

0 comments

#120 Manuel Korfmann / mkorfmann - Score: 34 - 01/18/11 @ 10:53
A Konfuzius<Esc>qqYp4f xD0Pa <Esc>q3@q:wq<CR>

0 comments

#121 Misha (Mike) Granin / Granin - Score: 34 - 01/19/11 @ 04:26
A Konfuzius<Esc>qqYp4f xD0Pa <Esc>q3@q:wq<CR>

0 comments

#122 Solomon White / rubysolo - Score: 34 - 02/09/11 @ 17:01
A Konfuzius<Esc>qaYp4whD^Pa <Esc>^hxq3@aZZ

0 comments

#123 Dan Masquelier / danmasq - Score: 34 - 07/01/11 @ 21:03
A Konfuzius<Esc>qvYPdwA <Esc>pxq3@vLddHPZZ

0 comments

#124 p0ckets / p0ckets - Score: 34 - 10/10/11 @ 22:23
A Konfuzius<Esc>qqYpd4e$p`[i <Esc>0xq3@qZZ

0 comments

#125 Michael Levin / kinnetica - Score: 34 - 12/06/11 @ 20:52
A Konfuzius<Esc>qqYp4wdwa<BS><Esc>^Pa <Esc>q3@qZZ

0 comments

#126 Feanor Celebrimbor / tumbaletaurea - Score: 34 - 06/05/12 @ 05:16
A Konfuzius<Esc>qtyyp$bde0Pa <Esc>$xq3@tZZ

0 comments

#127 ɐʇnɥsɐpoʇ / todashuta - Score: 34 - 03/25/15 @ 13:23
A Konfuzius<Esc>qqyyp$daw0I <Esc>P0xq3@qZZ

0 comments

#128 Torben Rasmussen / rasmustorben - Score: 35 - 08/16/11 @ 16:13
A Konfuzius<Esc>qqyyp4whd$0Pa <Esc>0xq3@qZZ

0 comments

#129 Christopher Brew / Seph1rothVII - Score: 35 - 01/11/12 @ 20:14
$a Konfuzius<Esc>qqyyp4wdw^Pa <Esc>$xq3@qZZ

0 comments

#130 Ben Friedland / bfriedland174 - Score: 35 - 05/21/12 @ 06:48
A Konfuzius<Esc><Esc>qqyyp$daw0Pa <Esc>0xq3@qZZ

0 comments

#131 ondrejsimek / ondrejsimek - Score: 36 - 11/20/11 @ 16:52
A Konfuzius <Esc>0y$4P0qq4wywPr<CR>q4@qddZZ

0 comments

#132 Ravi S Sinha / ambidextrousTx - Score: 36 - 08/31/12 @ 04:29
A Konfuzius<Esc>qayyp$daw0Pa <Esc>0xq3@a:wq<CR>

0 comments

#133 Piotr Śniegowski / PiotrSniegowski - Score: 36 - 06/06/13 @ 13:32
A Konfuzius<Esc>qayyp4wi<BS><Esc> dw0Pa <Esc>q3@aZZ

0 comments

#134 powertomato / powertomato - Score: 37 - 07/15/13 @ 13:54
A Konfuzius<Esc>Y8p8J0qq4dw5wi<BS><CR><Esc>q3@qddZZ

0 comments

#135 Petr Palata / petrpalata - Score: 43 - 01/28/11 @ 00:13
A Konfuzius<Esc>Y4p4dwqqA <Esc>px<CR>q3dw@q2dw@qdw@qZZ

0 comments

#136 niquola / niquola - Score: 44 - 01/19/11 @ 20:01
A Konfuzius<Esc>yypqq$F D0Pa <Esc>0xyypq@q@q@qdd:wq<CR>

0 comments

#137 Jay Phillips / jicksta - Score: 45 - 01/29/11 @ 23:49
A Konfuzius<Esc>Y4pqq4wdw0Pa <Esc>$x0qj2@qj3@qj4@q:x<CR>

0 comments

#138 Sergei O. Udalov / r_wilco - Score: 48 - 01/19/11 @ 09:16
$a Konfuzius<Esc>yypqs$vb<Left>x^Pa <Esc>^<Left>xyypq@s@s@sdd<Esc>:wq<CR>

0 comments

#139 Kristoffer Roupé / kitofr - Score: 51 - 07/29/11 @ 12:37
A Konfuzius<Esc>v0yo<Esc>Pa <Esc>pyy3PdtKjdtPjdtDjdtVtV<C-Q>kkk$dZZ

0 comments

#140 Oliver Christ / 0liverChrist - Score: 51 - 02/28/15 @ 23:22
A Konfuzius<Esc>Y4pd4wA <Esc>p+d3wA <Esc>p+d2wA <Esc>p+dwA <Esc>p<C-V>3kdZZ

0 comments

#141 Анатолий Безгубов / bezgubov - Score: 59 - 01/19/11 @ 14:01
AKo<BS><BS><Esc>A A<BS>Kofuzius<Left><Left><Left><Left><Left><Left>n<Right><Right><Right><Right><Right><Right><Right><Esc>qqyypd4w$a pxq<BS><BS><BS><Esc>pxq3@qZZ

0 comments

#142 Mike Perham / mperham - Score: 91 - 01/30/11 @ 23:00
A Konfuzius<Esc>yy4p4wdw<Esc>0Pa <Esc><Down>03dw$a <Esc>p<Esc><Down>02dw$Pup<Esc>b<Left><Left><Left><Left><Left><Left><Left><Left><Left>i <Esc><Down>0dw<Esc>$a <Esc>p<Esc><Up><Up><Up><Up><Up><Down>x<Down><Right>x<Down><Right>x<Down><Right>x:wq<CR>

0 comments

#143 Reza Lotun / rlotun - Score: 111 - 01/30/11 @ 18:48
$a Konfuzius<Esc>Vyp:s/\(\w\+\) \(\w\+\) \(\w\+\) \(\w\+\) \(\w\+\)/\5 \1\<BS> \2 \3 \4/<CR><Esc>Vyp:<Up><CR>Vyp:<Up><CR>Vyp:<Up><CR><Esc>:w<CR>"<Esc><Esc>:q<CR>

0 comments

#144 shulc / shulc - Score: 170 - 01/20/11 @ 11:33
A Konfuzius<Esc>yy<Esc>pwwwwdw<Esc>I<Esc>p<Esc>u<Esc>P <Esc>hli <Esc>A<Esc>xlhhhhhlyy<Esc>pwwwwdw<Esc>I<Esc>P <Esc>hli <Esc>Ax<Esc>xx<Esc>yy<Esc>pwwwwdw<Esc>IP<Esc>u<Esc>Pi <Esc>uli <Esc>lllllllllllllllllllllllllllllllllllllllx<Esc>yy<Esc>pwwwwdw<Esc>I<Esc>P <Esc>i <Esc>A<Esc>xx<Esc>u<Esc>:wq<CR>

0 comments

Created by: HaskellElephant

144 active golfers, 337 entries

Leaderboard (lowest score wins):
29
#1 - Federico Galassi / federicogalassi

01/18/2011 at 12:00AM

29
#2 - Tim Chase / gumnos

01/18/2011 at 01:10AM

29
#3 - Oleg Roshupkin / jjjahson

01/18/2011 at 08:09AM

29
#4 - Wei Dai / clvv42

01/19/2011 at 05:55AM

29
#5 - Andrey A. Ugolnik / andreyugolnik

01/19/2011 at 04:19PM

29
#6 - aaaa3331 / aaaa3331

01/20/2011 at 01:13AM

29
#7 - derp derp / derp__

01/20/2011 at 10:38AM

29
#8 - Ujjwol Lamichhane / Ujjwol

02/03/2011 at 03:04AM

29
#9 - Mikael Gustavsson / slvmnd

04/16/2011 at 01:06AM

29
#10 - wusher / wusher

06/02/2011 at 07:46PM

29
#11 - Marco Ippolito / maroloccio

06/04/2011 at 10:43PM

29
#12 - Johan Sveholm / rymdtjuren

06/29/2011 at 06:01AM

29
#13 - Dave / zzdave13

07/22/2011 at 04:37PM

29
#14 - Hu Junfeng / junfeng

08/01/2011 at 12:36PM

29
#15 - vimja / vimja666

10/29/2011 at 09:26AM

29
#16 - You-Siang Lin / yslinnctu

12/01/2011 at 12:55AM

29
#17 - Renat Aksitov / Korvin79

02/15/2012 at 09:37AM

29
#18 - John Anderson / opejn

03/18/2012 at 09:44PM

29
#19 - Urtica dioica / udioica

06/10/2012 at 09:46PM

29
#20 - Kerson Hsiao / KersonHsiao

07/08/2012 at 06:54PM

29
#21 - Victor Ramirez / virako

01/25/2013 at 03:33AM

29
#22 - Marco Hinz / _mhinz_

05/26/2013 at 11:27AM

29
#23 - Petro Тrouq / zulolosi

08/31/2013 at 05:23AM

29
#24 - John Braxler / braxler

05/19/2014 at 07:52PM

29
#25 - Jon Krause / jkrause314

03/10/2016 at 10:01PM

30
#26 - t_lini / t_lini

01/17/2011 at 10:11PM

30
#27 - Pete Johns / johnsyweb

01/17/2011 at 10:16PM

30
#28 - Paul King / nrocy

01/17/2011 at 10:19PM

30
#29 - Clive Evans / swish_bob

01/17/2011 at 11:17PM

30
#30 - Stephen Morrow / yawmark

01/18/2011 at 12:19AM

30
#31 - Balkoth / _Balkoth_

01/18/2011 at 12:01PM

30
#32 - lemming / darthlemming

01/18/2011 at 04:27PM

30
#33 - h_east (トロッコ6個) / h_east

01/18/2011 at 04:29PM

30
#34 - xhtmlforum / xhtmlforum

01/19/2011 at 07:03PM

30
#35 - Keith Swallow / keithcelt

01/20/2011 at 04:08AM

30
#36 - paul_carey / paul_carey

01/20/2011 at 06:46PM

30
#37 - thorir danielsson / thorird

01/23/2011 at 04:10PM

30
#38 - Michał Taszycki / mehowte

01/25/2011 at 03:12PM

30
#39 - Rob Ciaccio / RobertoCalavera

01/25/2011 at 07:33PM

30
#40 - Alexander Zolotov / alex_zolotov

01/26/2011 at 10:27AM

30
#41 - vg / vimgolfer

01/27/2011 at 07:39AM

30
#42 - Artem Dudarev / dudarev

01/30/2011 at 03:28PM

30
#43 - Karel Vervaeke / karel1980

02/01/2011 at 04:41PM

30
#44 - Dezső Zoltán / zakiazigazi

02/24/2011 at 03:02PM

30
#45 - xaizek / xaizek

02/26/2011 at 12:16PM

30
#46 - Sergey Doroshenko / dorserg

03/04/2011 at 06:26PM

30
#47 - Olof Hellquist / quistoh

03/05/2011 at 11:32PM

30
#48 - Paweu1kZ nbNeyIhH / yUQlwsFpRSzxJFh

03/07/2011 at 01:12AM

30
#49 - Scott Nielsen / smniel

03/18/2011 at 07:11AM

30
#50 - Thom Hughes / thom_hughes_1

03/27/2011 at 11:37PM

30
#51 - Dragan Cvetinovic / kawkafi

04/15/2011 at 07:36PM

30
#52 - Bojan Petrovic / _bojan

04/19/2011 at 01:10AM

30
#53 - Justin Love / wondible

09/04/2011 at 02:37PM

30
#54 - Jesús Espino / jespinog

09/05/2011 at 05:38PM

30
#55 - こばばー / symmet

09/17/2011 at 07:48PM

30
#56 - Trevor Powell / DoomedBunnies

11/28/2011 at 07:30AM

30
#57 - Ben Somers / somanyrobots

11/30/2011 at 02:01AM

30
#58 - Mislav Marohnić / mislav

12/06/2011 at 06:27PM

30
#59 - Al / 96258

12/14/2011 at 04:06PM

30
#60 - Rik Lomas / riklomas

12/29/2011 at 11:23PM

30
#61 - Xavier Nayrac / lkdjiin

01/08/2012 at 09:52AM

30
#62 - Pei-Lun Lee / ypcatw

01/19/2012 at 10:56AM

30
#63 - Tesnorth / Tesnorth

01/31/2012 at 04:29PM

30
#64 - Rod Knowlton / codelahoma

04/29/2012 at 02:01AM

30
#65 - Marcin Sza / coot_

12/05/2012 at 04:45PM

30
#66 - Michael / patheticpat

12/17/2012 at 09:11PM

30
#67 - Tyler / tylerbindon

04/07/2013 at 04:39AM

30
#68 - A. N. / arez42

10/25/2013 at 09:22AM

30
#69 - Walker Boh / walker_boh

12/17/2015 at 10:14AM

30
#70 - Daniel / Daniel00288663

04/06/2017 at 12:30PM

31
#71 - Jim Garvin / coderifous

01/17/2011 at 09:41PM

31
#72 - ls lahrs / lslah

01/18/2011 at 07:34AM

31
#73 -  Ikhsan Maulana / ixandidu

01/18/2011 at 03:05PM

31
#74 - s0v / teh_s0v

01/19/2011 at 06:16PM

31
#75 - theShockwaveRider / tswr

01/20/2011 at 08:44AM

31
#76 - Kurinniy Alexander / kurinniy

01/21/2011 at 12:54PM

31
#77 - Tien Le / tienlex

01/21/2011 at 05:35PM

31
#78 - RolfK / mindleftbody

06/17/2011 at 04:41PM

31
#79 - Øystein Walle / oysteinwalle

07/07/2011 at 02:02PM

31
#80 - Ashley Feniello / AshleyFen

01/29/2012 at 08:23AM

31
#81 - Steve Tjoa / stevetjoa

02/06/2013 at 07:02AM

31
#82 - brett / brettyukich

09/29/2013 at 07:57PM

31
#83 - pikaren / REALpikaren

01/21/2014 at 05:29AM

31
#84 - Stefan Knudsen / knud32

05/05/2015 at 06:37AM

32
#85 - Soliman Sylvain / sylvain_soliman

01/17/2011 at 10:23PM

32
#86 - Kevin Hamer / khamer

01/17/2011 at 11:02PM

32
#87 - Francisco Dibar / frandibar

01/18/2011 at 12:47AM

32
#88 - Thomas Schönwälder / Masei1988

01/18/2011 at 12:27PM

32
#89 - Magnus Hörberg / magnush_

01/18/2011 at 04:54PM

32
#90 - Guillaume Seren / guillaumeseren

01/18/2011 at 08:48PM

32
#91 - Brian Buckley / bbuckley

01/18/2011 at 10:31PM

32
#92 - Anatoliy C. / 1602

01/19/2011 at 09:56AM

32
#93 - Dmitry Teslenko / krab_mozga

01/19/2011 at 01:32PM

32
#94 - Matthieu Honel / ocus

01/27/2011 at 10:34PM

32
#95 - Jouko Karvonen / joukokar

02/03/2011 at 04:24AM

32
#96 - Avinash Baliga / avinashbaliga

03/26/2011 at 04:21AM

32
#97 - William Dunand / wdunand

11/08/2011 at 06:57AM

32
#98 - Ibrahim Tencer / ibrahimtencer

02/12/2012 at 09:29PM

32
#99 - 無ん垢の叫び / john_ababa

02/26/2012 at 12:22PM

32
#100 - cj / cj01101

10/18/2013 at 10:19PM

32
#101 - Alessandro Lisander / wuiimu

01/05/2014 at 01:17AM

32
#102 - Joonas Pihlajamaa / jokkebk

02/21/2014 at 11:44AM

32
#103 - Felipe Jaramillo F / mrfelipe

05/03/2014 at 04:58PM

32
#104 - Wade / vvandy

12/17/2014 at 06:52PM

33
#105 - Asmund Liseth / Asmund_L

01/17/2011 at 09:29PM

33
#106 - Toto l'haricot / nico_le_terribl

01/17/2011 at 09:54PM

33
#107 - Bradly Feeley / bradly

01/21/2011 at 12:34AM

33
#108 - aimee / sermoa

01/21/2011 at 03:12PM

33
#109 - timhoa / timhoa

01/30/2011 at 09:57AM

33
#110 - Pavlo Klets / p01nt

02/04/2011 at 02:15PM

33
#111 - Beau Dacious / nocash

03/16/2011 at 04:03PM

33
#112 - Vitaly Kushner / vkushner

03/16/2011 at 04:17PM

33
#113 - Matt Donahoe / mdonahoe

10/25/2011 at 06:22AM

33
#114 - Thomas Wickham / mackwic

11/03/2011 at 08:11PM

33
#115 - Kevin / exclipy

12/01/2011 at 11:16AM

33
#116 - Arto Vuori / dhpe

09/01/2012 at 05:23PM

33
#117 - James / Dronak

09/05/2013 at 05:37PM

33
#118 - Shaun Robinson / env

02/11/2014 at 04:09AM

33
#119 - Gregor MacDougall / GrMacDougall

05/07/2014 at 01:39AM

34
#120 - Manuel Korfmann / mkorfmann

01/18/2011 at 10:53AM

34
#121 - Misha (Mike) Granin / Granin

01/19/2011 at 04:26AM

34
#122 - Solomon White / rubysolo

02/09/2011 at 05:01PM

34
#123 - Dan Masquelier / danmasq

07/01/2011 at 09:03PM

34
#124 - p0ckets / p0ckets

10/10/2011 at 10:23PM

34
#125 - Michael Levin / kinnetica

12/06/2011 at 08:52PM

34
#126 - Feanor Celebrimbor / tumbaletaurea

06/05/2012 at 05:16AM

34
#127 - ɐʇnɥsɐpoʇ / todashuta

03/25/2015 at 01:23PM

35
#128 - Torben Rasmussen / rasmustorben

08/16/2011 at 04:13PM

35
#129 - Christopher Brew / Seph1rothVII

01/11/2012 at 08:14PM

35
#130 - Ben Friedland / bfriedland174

05/21/2012 at 06:48AM

36
#131 - ondrejsimek / ondrejsimek

11/20/2011 at 04:52PM

36
#132 - Ravi S Sinha / ambidextrousTx

08/31/2012 at 04:29AM

36
#133 - Piotr Śniegowski / PiotrSniegowski

06/06/2013 at 01:32PM

37
#134 - powertomato / powertomato

07/15/2013 at 01:54PM

43
#135 - Petr Palata / petrpalata

01/28/2011 at 12:13AM

44
#136 - niquola / niquola

01/19/2011 at 08:01PM

45
#137 - Jay Phillips / jicksta

01/29/2011 at 11:49PM

48
#138 - Sergei O. Udalov / r_wilco

01/19/2011 at 09:16AM

51
#139 - Kristoffer Roupé / kitofr

07/29/2011 at 12:37PM

51
#140 - Oliver Christ / 0liverChrist

02/28/2015 at 11:22PM

59
#141 - Анатолий Безгубов / bezgubov

01/19/2011 at 02:01PM

91
#142 - Mike Perham / mperham

01/30/2011 at 11:00PM

111
#143 - Reza Lotun / rlotun

01/30/2011 at 06:48PM

170
#144 - shulc / shulc

01/20/2011 at 11:33AM