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):
30
#61 - Jesús Espino / @jespinog

09/05/2011 at 05:38PM

30
#62 - こばばー / @symmet

09/17/2011 at 07:48PM

30
#63 - Trevor Powell / @DoomedBunnies

11/28/2011 at 07:30AM

30
#64 - Ben Somers / @somanyrobots

11/30/2011 at 02:01AM

30
#65 - Mislav Marohnić / @mislav

12/06/2011 at 06:27PM

30
#66 - Al / @96258

12/14/2011 at 04:06PM

30
#67 - Rik Lomas / @riklomas

12/29/2011 at 11:23PM

30
#68 - Xavier Nayrac / @lkdjiin

01/08/2012 at 09:52AM

30
#69 - Pei-Lun Lee / @ypcatw

01/19/2012 at 10:56AM

30
#70 - Tesnorth / @Tesnorth

01/31/2012 at 04:29PM

30
#71 - Rod Knowlton / @codelahoma

04/29/2012 at 02:01AM

30
#72 - Marcin Szamotulski / @me_coot

12/05/2012 at 04:45PM

30
#73 - Michael / @patheticpat

12/17/2012 at 09:11PM

30
#74 - Tyler / @tylerbindon

04/07/2013 at 04:39AM

30
#75 - A. N. / @arez42

10/25/2013 at 09:22AM

30
#76 - Walker Boh / @walker_boh

12/17/2015 at 10:14AM

30
#77 - Daniel / @Daniel00288663

04/06/2017 at 12:30PM

30
#78 - Gurukandhamoorthi / @Gurukandhamoor1

08/16/2017 at 03:55PM

30
#79 - Mihai / @mihaicristiant

03/27/2019 at 09:10AM

30
#80 - GS / @GSijmens

04/04/2019 at 02:22PM

30
#81 - icicle / @icicle_freeze

07/15/2019 at 08:36AM

30
#82 - Lory / @Lory46845742

01/17/2020 at 02:45PM

30
#83 - GenericHardwareGamer / @GnrikHrdwrGamer

07/27/2020 at 09:07AM

30
#84 - Tuure / @tuure_p

05/17/2021 at 08:20PM

31
#85 - Jim Garvin / @coderifous

01/17/2011 at 09:41PM

31
#86 - ls lahrs / @lslah

01/18/2011 at 07:34AM

31
#87 -  Ikhsan Maulana / @ixandidu

01/18/2011 at 03:05PM

31
#88 - s0v / @teh_s0v

01/19/2011 at 06:16PM

31
#89 - theShockwaveRider / @tswr

01/20/2011 at 08:44AM

31
#90 - Kurinniy Alexander / @kurinniy

01/21/2011 at 12:54PM