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):
30
#61 - Al / @96258

12/14/2011 at 04:06PM

30
#62 - Rik Lomas / @riklomas

12/29/2011 at 11:23PM

30
#63 - Xavier Nayrac / @lkdjiin

01/08/2012 at 09:52AM

30
#64 - Pei-Lun Lee / @ypcatw

01/19/2012 at 10:56AM

30
#65 - Tesnorth / @Tesnorth

01/31/2012 at 04:29PM

30
#66 - Rod Knowlton / @codelahoma

04/29/2012 at 02:01AM

30
#67 - Marcin Sza / @coot_

12/05/2012 at 04:45PM

30
#68 - Michael / @patheticpat

12/17/2012 at 09:11PM

30
#69 - Tyler / @tylerbindon

04/07/2013 at 04:39AM

30
#70 - A. N. / @arez42

10/25/2013 at 09:22AM

30
#71 - Walker Boh / @walker_boh

12/17/2015 at 10:14AM

30
#72 - Daniel / @Daniel00288663

04/06/2017 at 12:30PM

30
#73 - Gurukandhamoorthi / @Gurukandhamoor1

08/16/2017 at 03:55PM

30
#74 - Mihai / @mihaicristiant

03/27/2019 at 09:10AM

30
#75 - GS / @GSijmens

04/04/2019 at 02:22PM

30
#76 - icicle / @icicle_freeze

07/15/2019 at 08:36AM

31
#77 - Jim Garvin / @coderifous

01/17/2011 at 09:41PM

31
#78 - ls lahrs / @lslah

01/18/2011 at 07:34AM

31
#79 -  Ikhsan Maulana / @ixandidu

01/18/2011 at 03:05PM

31
#80 - s0v / @teh_s0v

01/19/2011 at 06:16PM

31
#81 - theShockwaveRider / @tswr

01/20/2011 at 08:44AM

31
#82 - Kurinniy Alexander / @kurinniy

01/21/2011 at 12:54PM

31
#83 - Tien Le / @tienlex

01/21/2011 at 05:35PM

31
#84 - Rolf K. / @mindleftbody

06/17/2011 at 04:41PM

31
#85 - Øystein Walle / @oysteinwalle

07/07/2011 at 02:02PM

31
#86 - Ashley Feniello / @AshleyFen

01/29/2012 at 08:23AM

31
#87 - Steve Tjoa / @stevetjoa

02/06/2013 at 07:02AM

31
#88 - brett / @brettyukich

09/29/2013 at 07:57PM

31
#89 - pikaren / @REALpikaren

01/21/2014 at 05:29AM

31
#90 - Stefan Knudsen / @knud32

05/05/2015 at 06:37AM