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):
35
#151 - Ben Friedland / @bfriedland174

05/21/2012 at 06:48AM

36
#152 - ondrejsimek / @ondrejsimek

11/20/2011 at 04:52PM

36
#153 - Ravi S Sinha / @ambidextrousTx

08/31/2012 at 04:29AM

36
#154 - Piotr Śniegowski / @PiotrSniegowski

06/06/2013 at 01:32PM

37
#155 - powertomato / @powertomato

07/15/2013 at 01:54PM

43
#156 - Petr Palata / @petrpalata

01/28/2011 at 12:13AM

44
#157 - niquola / @niquola

01/19/2011 at 08:01PM

45
#158 - Jay Phillips / @jicksta

01/29/2011 at 11:49PM

45
#159 - Thermospore / @Thermospore

05/23/2024 at 07:40AM

48
#160 - Sergei O. Udalov / @r_wilco

01/19/2011 at 09:16AM

51
#161 - Kristoffer Roupé / @kitofr

07/29/2011 at 12:37PM

51
#162 - Oliver Christ / @0liverChrist

02/28/2015 at 11:22PM

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

01/19/2011 at 02:01PM

91
#164 - Mike Perham / @mperham

01/30/2011 at 11:00PM

111
#165 - Reza Lotun / @rlotun

01/30/2011 at 06:48PM

170
#166 - shulc / @shulc

01/20/2011 at 11:33AM