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):
22
#211 - Aaron Bull Schaefer / @elasticdog

12/29/2010 at 08:05PM

22
#212 - Douglas Stockwell / @dstockwell

12/30/2010 at 12:14AM

22
#213 - Mikel Ward / @mikelward

12/30/2010 at 09:11PM

22
#214 - kmymtksh / @kmymtksh

12/31/2010 at 07:04PM

22
#215 - Roman Mašek / @romario333

01/04/2011 at 08:44PM

22
#216 - duckdalbe / @duckdalbe

01/14/2011 at 12:46PM

22
#217 - Bradly Feeley / @bradly

01/23/2011 at 11:58PM

22
#218 - Jam / @jam00_bcn

06/25/2011 at 02:14PM

22
#219 - Mislav Marohnić / @mislav

12/05/2011 at 05:51PM

22
#220 - William Dunand / @wdunand

12/08/2011 at 07:00AM

22
#221 - akira_simpson / @akira_simpson

02/01/2012 at 08:30AM

22
#222 - Daumantas / @dbaltrus

05/03/2012 at 05:09AM

22
#223 - Piotr H / @PiotrHuk

09/17/2012 at 01:20PM

22
#224 - jimauthors / @jimauthors

02/10/2014 at 08:14AM

22
#225 - Walker Boh / @walker_boh

10/13/2015 at 08:26AM

22
#226 - mattp (part of the 💉💉💉 club) / @mattpep

05/19/2016 at 09:11PM

22
#227 - RockerZZY / @rocker_zzy

06/15/2020 at 04:06AM

23
#228 - Matt Mendell / @mpmendell

12/29/2010 at 09:04PM

23
#229 - Mike Plotz / @antisuji

12/30/2010 at 02:34AM

23
#230 - Shrikant Sharat / @sharat87

12/30/2010 at 08:46AM

23
#231 - Aurélien Delahaye / @alkove

12/30/2010 at 08:22PM

23
#232 - Dan / @opello

12/30/2010 at 08:45PM

23
#233 - dominique pellé / @vimgolfisto

01/01/2011 at 07:00PM

23
#234 - Dezső Zoltán / @zakiazigazi

01/22/2011 at 07:33AM

23
#235 - Matthieu Honel / @ocus

01/28/2011 at 03:58PM

23
#236 - Ilya Strukov / @i1ey

05/01/2011 at 05:46PM

23
#237 - mightyfoo / @mightyfoo

05/25/2011 at 01:51PM

23
#238 - Dave / @zzdave13

07/15/2011 at 01:04PM

23
#239 - Jyun-Fan Tsai / @fakecolor

02/11/2012 at 01:48AM

23
#240 - OMF / @exolon

05/28/2012 at 03:59AM