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 345 remaining solutions by signing in and submitting your own entry
#346 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

346 active golfers, 1141 entries

Leaderboard (lowest score wins):
20
#31 - dtennant / @dtennant

09/16/2011 at 05:33PM

20
#32 - p0ckets / @p0ckets

10/07/2011 at 12:02AM

20
#33 - Martin Janiczek / @janiczek

10/17/2011 at 07:30PM

20
#34 - You-Siang Lin / @yslinnctu

11/27/2011 at 05:43AM

20
#35 - palentine / @palentine

12/12/2011 at 08:01PM

20
#36 - Ali Moeeny MD PhD / @alimoeeny

12/16/2011 at 03:50PM

20
#37 - Xavier Nayrac / @lkdjiin

12/29/2011 at 02:34PM

20
#38 - Tara Bass / @tara_bass

01/01/2012 at 05:32PM

20
#39 - Pei-Lun Lee / @ypcatw

01/07/2012 at 01:22PM

20
#40 - Tesnorth / @Tesnorth

01/31/2012 at 04:26PM

20
#41 - Renat Aksitov / @Korvin79

02/05/2012 at 05:48PM

20
#42 - Zeh Rizzatti / @zehrizzatti

02/06/2012 at 03:24AM

20
#43 - John Ford / @GhettoCode

02/06/2012 at 10:34PM

20
#44 - Daniel Cohen / @danielissimo

02/08/2012 at 04:34PM

20
#45 - Kristopher Urie / @kristopherurie

02/11/2012 at 05:46AM

20
#46 - Rod Knowlton / @codelahoma

05/26/2012 at 09:17PM

20
#47 - Urtica dioica / @udioica

06/04/2012 at 02:37AM

20
#48 - mwatkward / @AftrschoolSpe

06/25/2012 at 08:25PM

20
#49 - Tim Chase / @gumnos

07/14/2012 at 04:58PM

20
#50 - teocx / @teocx

07/16/2012 at 06:31AM

20
#51 - 刘玮 / @lwjef

08/16/2012 at 02:16AM

20
#52 - Charles Gordon / @liberalbias

08/24/2012 at 02:13AM

20
#53 - Joseph J. Piché / @jjpiche

08/25/2012 at 03:19AM

20
#54 - Conner McDaniel / @connermcd

09/18/2012 at 05:21PM

20
#55 - Vim rocks / @vimrocks

10/06/2012 at 02:20PM

20
#56 - James / @defactojames

10/18/2012 at 01:30AM

20
#57 - Mikko Loponen / @lopossumi

11/08/2012 at 05:20PM

20
#58 - Tamás Kárándi / @tkarandi

11/14/2012 at 11:34PM

20
#59 - Hubba / @HubbaBubbaFett

11/22/2012 at 09:21PM

20
#60 - a24f0600 / @a24f0600

12/14/2012 at 11:05AM