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 382 remaining solutions by signing in and submitting your own entry
#383 Maurice Schmicking / @m_schmicking - Score: 175 - 04/03/23 @ 22:16
10jddggO<Esc>pkddA<BS><Esc>4jkjddgg$pi<BS><Esc>$s6j<Esc>xx6jddgg$ojdd<Esc><Esc><Esc><Esc>ddjjjjjjjddgg$pi<BS><Esc>A<BS><Esc>3jkddgg$pi<BS><Esc>$x<Esc>2jddggpuuddkkpu<C-R>i<Down><BS><Esc>$<BS>xxi <BS><Right> <Esc>2jddggpi<BS><Esc>$xwi<BS><Esc>$x<Esc>3jddggpi<BS><Esc>A<BS><Esc>Gddggpi<BS><Esc>jddi<BS><BS><Esc>A<BS><BS><BS><Esc>ll<Esc>ZZ

0 comments


Created by: @elasticdog

383 active golfers, 1363 entries

Leaderboard (lowest score wins):
21
#151 - Steve Morrow / @yawmark

12/30/2010 at 09:05PM

21
#152 - Pierre / @Pihour

12/31/2010 at 10:53PM

21
#153 - Fer Enaf / @0x00C0FFEE

01/05/2011 at 11:04AM

21
#154 - Matt Tarbit / @mtarbit

01/09/2011 at 12:59AM

21
#155 - Toto l'haricot / @nico_le_terribl

01/09/2011 at 01:24PM

21
#156 - h_east (トロッコ6個) / @h_east

01/11/2011 at 04:04PM

21
#157 - Pete Johns / @johnsyweb

01/15/2011 at 02:51AM

21
#158 - Ben Griffiths / @beng

01/15/2011 at 08:41PM

21
#159 - Rob Ciaccio / @RobertoCalavera

01/21/2011 at 11:20AM

21
#160 - Thomas Schönwälder / @Masei1988

01/22/2011 at 10:33PM

21
#161 - Arthur Chiu / @arthur_chiu

02/06/2011 at 03:23AM

21
#162 - Moltar / @askmoltar

02/07/2011 at 12:59PM

21
#163 - Ruy Diaz / @diazruy

03/15/2011 at 04:03PM

21
#164 - Terje Larsen / @terlars

05/09/2011 at 02:19PM

21
#165 - Justin Love / @wondible

06/10/2011 at 12:17AM

21
#166 - drooooooooooo / @droooooooooooo

08/08/2011 at 02:34AM

21
#167 - Brian Cooke / @bricooke

08/31/2011 at 01:23PM

21
#168 - nicolas bo / @thevegeta

11/09/2011 at 12:42PM

21
#169 - Ivo Dancet / @caifara

12/03/2011 at 05:05PM

21
#170 - Rambominator / @Rambominator

12/13/2011 at 08:27AM

21
#171 - suhair hassan / @suhairhassan

12/28/2011 at 05:34AM

21
#172 - snuffling / @snuffling

02/13/2012 at 02:10AM

21
#173 - Vasil Sakarov / @vsakarov

02/17/2012 at 06:22PM

21
#174 - じょんあば / @john_ababa

02/22/2012 at 01:29PM

21
#175 - oliver mueller / @marcontwit

02/26/2012 at 06:33AM

21
#176 - Pawel Obrok / @mrYapee

03/13/2012 at 03:04PM

21
#177 - drupalovereasy / @drupalovereasy

04/15/2012 at 03:14AM

21
#178 - david ta / @tadavid

04/16/2012 at 12:56AM

21
#179 - mnx / @mnxx

05/09/2012 at 03:25PM

21
#180 - Kerson Hsiao / @KersonHsiao

07/23/2012 at 12:22PM