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

166 active golfers, 410 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

29
#28 - Ray Dennis / @raysden

05/20/2021 at 09:31PM

29
#29 - Jean George / @JeanGeo20504212

05/27/2022 at 07:49PM

29
#30 - Qing Liu / @poeminlash

08/07/2022 at 01:39AM