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 532bdb79fbefce0002650940

Piphilology

Piphilology comprises the creation and use of mnemonic techniques to remember a span of digits of the mathematical constant π. http://en.wikipedia.org/wiki/Piphilology

Start file
Sir, I bear a rhyme excelling
In mystic force and magic spelling
Celestial sprites elucidate
All my own striving cant relate
Or locate they who can cogitate
And so finally terminate. Finis.
End file
3.1415926535897932384626433832795

View Diff

1,6c1
< Sir, I bear a rhyme excelling
< In mystic force and magic spelling
< Celestial sprites elucidate
< All my own striving cant relate
< Or locate they who can cogitate
< And so finally terminate. Finis.
---
> 3.1415926535897932384626433832795

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 36 remaining solutions by signing in and submitting your own entry
#37 Jan Bundesmann / ixjab - Score: 38 - 05/18/16 @ 08:38
cG3.1415926535897932384626433832795<Esc>ZZ

0 comments

#38 esquifit / henroboke - Score: 39 - 03/22/14 @ 13:09
6J0qqcaw<C-R>=len(@")-1<CR><Esc>lql30@qx@qx0<C-A>lr.ZZ

0 comments

#39 Tim Chase / gumnos - Score: 42 - 03/21/14 @ 13:00
:%s/\v(\w+)\_W*/\=len(submatch(1))/g<CR>a.<Esc>ZZ

gumnos: Just because I like a good :substitute command.

zulolosi: Nice and glad tu see the return of Ninja Leader !

2 comments

#40 xarmux / xarmux - Score: 42 - 03/27/14 @ 00:20
6J0qaciw<C-R><C-O>=len(@")<CR><Esc>Wq31@a:s/[ .]//g<CR>lr.ZZ

0 comments

#41 James T. Huggett / Jmeshka - Score: 42 - 09/02/14 @ 13:08
:%s/\v(\w+)\_W*/\=len(submatch(1))/g<CR>a.<Esc>ZZ

0 comments

#42 Pedro Santos / pedrosans - Score: 43 - 03/21/14 @ 20:20
6J:%s/\v(\w+)\W*/\=len(submatch(1))/g<CR>a.<Esc>ZZ

0 comments

#43 Robert Siemieniec / rsiemieniec - Score: 44 - 03/24/14 @ 12:16
6J:s:\v *(\w+)\.*:\=len(submatch(1)):g<CR>lr.ZZ

0 comments

#44 Brian Olpin / bolpin - Score: 48 - 03/23/14 @ 06:19
6J:s/\v(\w+)/\=len(submatch(1))/g|s/\W//g<CR><CR>a.<Esc>ZZ

0 comments

#45 Strabs / artistavenue - Score: 49 - 03/21/14 @ 14:34
6J:%s/\v(\w+)/\=len(submatch(0))/g<CR>:s/\W//g<CR>a.<Esc>ZZ

0 comments

Created by: zulolosi

45 active golfers, 102 entries

Leaderboard (lowest score wins):
29
#1 - Urtica dioica / udioica

03/21/2014 at 07:42AM

29
#2 - John Braxler / braxler

03/25/2014 at 02:12PM

29
#3 - David Shields / salacio

04/22/2014 at 09:01PM

29
#4 - MP / Enemy_m

05/20/2014 at 07:07PM

29
#5 - alex scott / 4l3xsc0tt

07/02/2014 at 01:54PM

30
#6 - Daniel Pade / d_fj_p

03/30/2014 at 01:03AM

30
#7 - Kerson Hsiao / KersonHsiao

10/03/2014 at 01:40PM

31
#8 - Saki Gw / Sakigw

03/20/2017 at 07:16PM

32
#9 - Matthieu Crapet / mcr05

12/13/2014 at 08:02PM

32
#10 - pftb12345 / pftb12345

04/25/2015 at 01:43PM

32
#11 - martin tourneboeuf / martintournebo1

05/21/2017 at 11:56AM

34
#12 - Marcin Sza / coot_

03/23/2014 at 02:42PM

34
#13 - Vlad-Ștefan Harbuz / vladh

04/05/2014 at 12:36PM

34
#14 - Ram Tamtam / ramtamtamtam

07/18/2014 at 01:14PM

35
#15 - Quota / Quotad

03/24/2014 at 08:09AM

38
#16 - Petro Тrouq / zulolosi

03/21/2014 at 07:28AM

38
#17 - Marcin Cabaj / marcincabaj

03/21/2014 at 12:33PM

38
#18 - Jean / ygu0_0

03/21/2014 at 09:33PM

38
#19 - Kai Yuan / kentyuan

03/22/2014 at 09:56PM

38
#20 - Jacob / jayekub

03/22/2014 at 11:55PM

38
#21 - Andrew Loucky / merely_oolong

03/24/2014 at 10:14PM

38
#22 - David Barker / dashleybarker

03/25/2014 at 01:45PM

38
#23 - RobertT / techrt2050

03/26/2014 at 03:31AM

38
#24 - Carlos López / morrizon

03/31/2014 at 09:37AM

38
#25 - Dmitry Teslenko / krab_mozga

04/02/2014 at 06:38AM

38
#26 - Nikita Kouevda / nkouevda

04/04/2014 at 06:53AM

38
#27 - 闇を切り裂く非線形システム少女ところたん / tokoro10g

04/06/2014 at 02:38PM

38
#28 - Endir / Endir2

04/17/2014 at 04:49PM

38
#29 - 3X4n5 / 3X4n5

05/06/2014 at 01:11PM

38
#30 - Tom Cammann / tea_sea

05/12/2014 at 04:15PM

38
#31 - John Meisner / jmeisned

06/28/2014 at 02:56AM

38
#32 - James / Dronak

09/21/2014 at 02:06AM

38
#33 - Eric Kever / codeoverlode

09/29/2014 at 11:11PM

38
#34 - Mauro Persano / fzort

11/16/2014 at 11:45AM

38
#35 - Carlos A Henríquez Q / lagunex

01/18/2015 at 09:27PM

38
#36 - Jon Krause / jkrause314

12/08/2015 at 09:51PM

38
#37 - Jan Bundesmann / ixjab

05/18/2016 at 08:38AM

39
#38 - esquifit / henroboke

03/22/2014 at 01:09PM

42
#39 - Tim Chase / gumnos

03/21/2014 at 01:00PM

42
#40 - xarmux / xarmux

03/27/2014 at 12:20AM

42
#41 - James T. Huggett / Jmeshka

09/02/2014 at 01:08PM

43
#42 - Pedro Santos / pedrosans

03/21/2014 at 08:20PM

44
#43 - Robert Siemieniec / rsiemieniec

03/24/2014 at 12:16PM

48
#44 - Brian Olpin / bolpin

03/23/2014 at 06:19AM

49
#45 - Strabs / artistavenue

03/21/2014 at 02:34PM