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 4d1a6a8eb8cb34093200007a

Reconstruct the Sentence

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

Start file
time you're 7
in the 4
proper order 5
will be 2
by the 5
by the 5
put back 3
Vim! 10
done with 8
put back 3
This sentence 1
it in 9
End file
This sentence will be put back in the proper order by the time you're done with it in Vim!

View Diff

1,12c1
< time you're 7
< in the 4
< proper order 5
< will be 2
< by the 5
< by the 5
< put back 3
< Vim! 10
< done with 8
< put back 3
< This sentence 1
< it in 9
---
> This sentence will be put back in the proper order by the time you're done with it in Vim!

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 312 remaining solutions by signing in and submitting your own entry
#313 Chirag Tailor / @ctailor2 - Score: 164 - 01/27/14 @ 02:14
jjjjjjjjjjdd0ggpuPjjjjddkkkpuPjjjjjjddkkkkkPjjd2dkP<Down><Down><Down>ddkkpkkkjjjjjjkkjddjkkjjddkPjjjddkPjjdd:%s/ \d//g<CR>u:%s/ \d*/<Left>$<Right>/g<CR>dd<Up><Down>A<Esc>u<Up>ou<Esc>uo<Esc>uJ<Up>J<Up>uu<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>JJJJJJJJJ:wq<CR>

0 comments


Created by: @elasticdog

313 active golfers, 995 entries

Leaderboard (lowest score wins):
20
#1 - rabidpraxis / @rabidpraxis

12/30/2010 at 09:27PM

20
#2 - clint tseng / @cxlt

12/30/2010 at 09:30PM

20
#3 - Henrik Nyh / @henrik

12/31/2010 at 10:31AM

20
#4 - Behnam Esfahbod / @zwnj

12/31/2010 at 01:45PM

20
#5 - derp derp / @derp__

01/02/2011 at 02:00AM

20
#6 - Fitz / @Fitzface

01/02/2011 at 07:38PM

20
#7 - Ravil Bayramgalin / @brainopia

01/02/2011 at 09:43PM

20
#8 - Tim Dean / @Tmdean

01/05/2011 at 08:31PM

20
#9 - Wei Dai / @clvv42

01/06/2011 at 10:06AM

20
#10 - Oleg Roshupkin / @jjjahson

01/06/2011 at 10:08AM

20
#11 - Ujjwol Lamichhane / @Ujjwol

01/06/2011 at 11:43AM

20
#12 - Balkoth / @_Balkoth_

01/08/2011 at 05:02PM

20
#13 - Utkarsh Kukreti / @utkarshkukreti

01/09/2011 at 12:24AM

20
#14 - Federico Galassi / @federicogalassi

01/10/2011 at 12:43PM

20
#15 - Andrey Ivanov / @Bytamine

01/19/2011 at 07:52PM

20
#16 - Andrey A. Ugolnik / @andreyugolnik

01/19/2011 at 11:31PM

20
#17 - Nathan Farrington / @nfarring

01/28/2011 at 08:45PM

20
#18 - vg / @vimgolfer

02/23/2011 at 10:35AM

20
#19 - Frederik Mogensen / @fmogensen

03/31/2011 at 10:55AM

20
#20 - (Emile (Swarts)) / @EmileSwarts

05/30/2011 at 11:25AM

20
#21 - not so punk :] / @notsopunk

06/26/2011 at 04:16AM

20
#22 - vimgolf / @vimgolf1

07/10/2011 at 06:08AM

20
#23 - Hu Junfeng / @junfeng

07/15/2011 at 08:54AM

20
#24 - Sammasati / @sammasati0

07/15/2011 at 04:21PM

20
#25 - Ivan Evtukhovich / @evtuhovich

07/30/2011 at 06:22PM

20
#26 - Jason Then / @racc69

08/08/2011 at 04:39AM

20
#27 - Neil / @spameldoon

08/21/2011 at 10:12AM

20
#28 - quintin / @quintinjeannoel

08/29/2011 at 08:24PM

20
#29 - Simon's Calf / @simonscarfe

08/31/2011 at 08:35PM

20
#30 - Jesús Espino / @jespinog

09/06/2011 at 09:12AM