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):
25
#271 - Mikhail Korepanov / @PanyaKor

06/13/2011 at 02:34PM

25
#272 - Petrik de Heus / @four54

08/25/2011 at 05:50PM

25
#273 - sjatkinson / @sjatkinson

08/30/2011 at 03:30AM

25
#274 - IPhone Notiz / @MyIPhoneNotes

11/15/2011 at 05:26PM

25
#275 - lukecowell / @lukecowell

12/13/2011 at 04:33AM

25
#276 - Drew Benedetti / @cnorsl

02/16/2012 at 10:57PM

25
#277 - lucapette / @lucapette

04/27/2012 at 02:39PM

25
#278 - ise0615 / @ise0615

05/04/2012 at 05:11PM

25
#279 - Chris Brown / @engineercyb

07/13/2012 at 02:33AM

25
#280 - Andrey Yankin / @YankinAndrey

07/20/2012 at 11:17AM

25
#281 - mhb / @mhbvim

11/26/2012 at 08:37AM

25
#282 - TarcĂ­sio Gruppi / @txgruppi

12/11/2012 at 04:01PM

25
#283 - Bart of Denver / @bartofdenver

08/12/2013 at 10:32PM

25
#284 - James / @Dronak

08/29/2013 at 10:02PM

25
#285 - Hachez Floran / @FloranHachez

09/04/2013 at 12:28PM

25
#286 - nona urbiz / @nospampleasemam

09/28/2013 at 07:32AM

25
#287 - RobertT / @techrt2050

10/10/2013 at 10:29PM

25
#288 - Zach Kemp / @zvksf

12/20/2013 at 08:22PM

25
#289 - Felipe Jaramillo F / @mrfelipe

04/03/2014 at 12:24AM

25
#290 - Patrick Pitoscia / @Patrick03960431

08/10/2014 at 02:02AM

25
#291 - Tj / @yrddy

08/19/2014 at 06:15AM

25
#292 - Justin Knag / @justinknag

09/16/2014 at 06:34AM

25
#293 - Herr Oppermann / @HerrOppermann

09/18/2014 at 01:45PM

25
#294 - aisapatino / @aisapatino

09/30/2015 at 10:34PM

25
#295 - Gerald Tilma / @GeraldTilma

10/21/2015 at 02:15AM

25
#296 - Nicolas Nistal / @niconistal

11/19/2015 at 04:56AM

25
#297 - Jonas Sunde V / @sunde_v

08/04/2017 at 06:58PM

26
#298 - Paul Paradise / @natacado

12/29/2010 at 05:25PM

26
#299 - Sam Saffron / @samsaffron

12/30/2010 at 07:43AM

26
#300 - Jordi Romero / @jordiromero

01/07/2011 at 09:19PM