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):
33
#121 - Asmund / @herrasbe

01/17/2011 at 09:29PM

33
#122 - Toto l'haricot / @nico_le_terribl

01/17/2011 at 09:54PM

33
#123 - Bradly Feeley / @bradly

01/21/2011 at 12:34AM

33
#124 - aimee / @sermoa

01/21/2011 at 03:12PM

33
#125 - timhoa / @timhoa

01/30/2011 at 09:57AM

33
#126 - Pavlo Klets / @p01nt

02/04/2011 at 02:15PM

33
#127 - Beau Dacious / @nocash

03/16/2011 at 04:03PM

33
#128 - Vitaly Kushner / @vkushner

03/16/2011 at 04:17PM

33
#129 - Matt Donahoe / @mdonahoe

10/25/2011 at 06:22AM

33
#130 - Thomas Wickham / @mackwic

11/03/2011 at 08:11PM

33
#131 - Kevin / @exclipy

12/01/2011 at 11:16AM

33
#132 - Arto Vuori / @dhpe

09/01/2012 at 05:23PM

33
#133 - James / @Dronak

09/05/2013 at 05:37PM

33
#134 - Shaun Robinson / @env

02/11/2014 at 04:09AM

33
#135 - Gregor MacDougall / @GrMacDougall

05/07/2014 at 01:39AM

33
#136 - Brandon Blakeley / @zkelvin

11/27/2017 at 03:00AM

33
#137 - RockerZZY / @rocker_zzy

07/06/2020 at 05:46AM

33
#138 - Janzen / @__Coos

09/23/2022 at 06:08AM

34
#139 - Manuel Korfmann / @mkorfmann

01/18/2011 at 10:53AM

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

01/19/2011 at 04:26AM

34
#141 - Solomon White / @rubysolo

02/09/2011 at 05:01PM

34
#142 - Dan Masquelier / @danmasq

07/01/2011 at 09:03PM

34
#143 - p0ckets / @p0ckets

10/10/2011 at 10:23PM

34
#144 - Michael Levin / @kinnetica

12/06/2011 at 08:52PM

34
#145 - Feanor Celebrimbor / @tumbaletaurea

06/05/2012 at 05:16AM

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

03/25/2015 at 01:23PM

34
#147 - shahanavaz m / @shahanavazm

02/20/2022 at 05:05AM

34
#148 - Jay Solana / @JaySolana3

02/07/2023 at 08:53AM

35
#149 - Torben Rasmussen / @rasmustorben

08/16/2011 at 04:13PM

35
#150 - Christopher Brew / @Seph1rothVII

01/11/2012 at 08:14PM