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

424 active golfers, 1580 entries

Leaderboard (lowest score wins):
22
#271 - Daumantas / @dbaltrus

05/03/2012 at 05:09AM

22
#272 - Piotr H / @PiotrHuk

09/17/2012 at 01:20PM

22
#273 - jimauthors / @jimauthors

02/10/2014 at 08:14AM

22
#274 - Walker Boh / @walker_boh

10/13/2015 at 08:26AM

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

05/19/2016 at 09:11PM

22
#276 - RockerZZY / @rocker_zzy

06/15/2020 at 04:06AM

22
#277 - Thermospore / @Thermospore

05/20/2024 at 08:32AM

22
#278 - 🥚 / @schmarles_

10/21/2024 at 10:22PM

23
#279 - Matt Mendell / @mpmendell

12/29/2010 at 09:04PM

23
#280 - Mike Plotz / @antisuji

12/30/2010 at 02:34AM

23
#281 - Shrikant Sharat / @sharat87

12/30/2010 at 08:46AM

23
#282 - Aurélien Delahaye / @alkove

12/30/2010 at 08:22PM

23
#283 - Dan / @opello

12/30/2010 at 08:45PM

23
#284 - dominique pellé / @vimgolfisto

01/01/2011 at 07:00PM

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

01/22/2011 at 07:33AM

23
#286 - Matthieu Honel / @ocus

01/28/2011 at 03:58PM

23
#287 - Ilya Strukov / @i1ey

05/01/2011 at 05:46PM

23
#288 - mightyfoo / @mightyfoo

05/25/2011 at 01:51PM

23
#289 - Dave / @zzdave13

07/15/2011 at 01:04PM

23
#290 - Jyun-Fan Tsai / @fakecolor

02/11/2012 at 01:48AM

23
#291 - OMF / @exolon

05/28/2012 at 03:59AM

23
#292 - うえっち / @uh_tomo

12/04/2012 at 04:57PM

23
#293 - Tresifina / @Tresifina

05/23/2013 at 05:07AM

23
#294 - pikaren / @REALpikaren

01/07/2014 at 04:04AM

23
#295 - eBrnd / @eBrnd

11/03/2014 at 09:49PM

23
#296 - Pete Sevander / @Sevanteri

11/13/2015 at 01:56PM

23
#297 - Plicatibu / @plicatibu

08/13/2022 at 10:09PM

24
#298 - Akira Matsuda / @a_matsuda

12/30/2010 at 01:40PM

24
#299 - Cristi Balan / @evilchelu

01/01/2011 at 06:54AM

24
#300 - Stuart Gale / @bishboria

01/02/2011 at 08:23PM