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

0 comments


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

0 comments


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

0 comments


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

0 comments


#124 Brandon Blakeley / zkelvin - Score: 33 - 11/27/17 @ 03:00
A Konfuzius<Esc>qqYp$diw0Pa <Esc>$xq3@qZZ

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


#143 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


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

0 comments


#145 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


#146 Анатолий Безгубов / 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


#147 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


#148 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


#149 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

149 active golfers, 346 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

29
#26 - Turkey Man / lvturkeyman

11/29/2017 at 07:11AM

29
#27 - DHM / DHM29978992

05/27/2018 at 03:08AM

30
#28 - t_lini / t_lini

01/17/2011 at 10:11PM

30
#29 - Pete Johns / johnsyweb

01/17/2011 at 10:16PM

30
#30 - Paul King / nrocy

01/17/2011 at 10:19PM