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

152 active golfers, 358 entries

Leaderboard (lowest score wins):
33
#121 - Thomas Wickham / @mackwic

11/03/2011 at 08:11PM

33
#122 - Kevin / @exclipy

12/01/2011 at 11:16AM

33
#123 - Arto Vuori / @dhpe

09/01/2012 at 05:23PM

33
#124 - James / @Dronak

09/05/2013 at 05:37PM

33
#125 - Shaun Robinson / @env

02/11/2014 at 04:09AM

33
#126 - Gregor MacDougall / @GrMacDougall

05/07/2014 at 01:39AM

33
#127 - Brandon Blakeley / @zkelvin

11/27/2017 at 03:00AM

34
#128 - Manuel Korfmann / @mkorfmann

01/18/2011 at 10:53AM

34
#129 - Misha (Mike) Granin / @Granin

01/19/2011 at 04:26AM

34
#130 - Solomon White / @rubysolo

02/09/2011 at 05:01PM

34
#131 - Dan Masquelier / @danmasq

07/01/2011 at 09:03PM

34
#132 - p0ckets / @p0ckets

10/10/2011 at 10:23PM

34
#133 - Michael Levin / @kinnetica

12/06/2011 at 08:52PM

34
#134 - Feanor Celebrimbor / @tumbaletaurea

06/05/2012 at 05:16AM

34
#135 - ɐʇnɥsɐpoʇ / @todashuta

03/25/2015 at 01:23PM

35
#136 - Torben Rasmussen / @rasmustorben

08/16/2011 at 04:13PM

35
#137 - Christopher Brew / @Seph1rothVII

01/11/2012 at 08:14PM

35
#138 - Ben Friedland / @bfriedland174

05/21/2012 at 06:48AM

36
#139 - ondrejsimek / @ondrejsimek

11/20/2011 at 04:52PM

36
#140 - Ravi S Sinha / @ambidextrousTx

08/31/2012 at 04:29AM

36
#141 - Piotr Śniegowski / @PiotrSniegowski

06/06/2013 at 01:32PM

37
#142 - powertomato / @powertomato

07/15/2013 at 01:54PM

43
#143 - Petr Palata / @petrpalata

01/28/2011 at 12:13AM

44
#144 - niquola / @niquola

01/19/2011 at 08:01PM

45
#145 - Jay Phillips / @jicksta

01/29/2011 at 11:49PM

48
#146 - Sergei O. Udalov / @r_wilco

01/19/2011 at 09:16AM

51
#147 - Kristoffer Roupé / @kitofr

07/29/2011 at 12:37PM

51
#148 - Oliver Christ / @0liverChrist

02/28/2015 at 11:22PM

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

01/19/2011 at 02:01PM

91
#150 - Mike Perham / @mperham

01/30/2011 at 11:00PM