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):
19
#1 - Anton Savelyev / @PoiXP

01/03/2025 at 10:11PM

19
#2 - Peppa Pig / @PeppaPigSg

01/24/2025 at 01:25AM

19
#3 - Peagol / @oscar1marte

02/09/2025 at 09:52PM

19
#4 - f0tze schlampe / @Nuttnsauger5000

02/19/2025 at 11:41PM

20
#5 - rabidpraxis / @rabidpraxis

12/30/2010 at 09:27PM

20
#6 - clint tseng / @cxlt

12/30/2010 at 09:30PM

20
#7 - Henrik Nyh / @henrik

12/31/2010 at 10:31AM

20
#8 - Behnam Esfahbod / @zwnj

12/31/2010 at 01:45PM

20
#9 - derp derp / @derp__

01/02/2011 at 02:00AM

20
#10 - Fitz / @Fitzface

01/02/2011 at 07:38PM

20
#11 - Ravil Bayramgalin / @brainopia

01/02/2011 at 09:43PM

20
#12 - Tim Dean / @Tmdean

01/05/2011 at 08:31PM

20
#13 - Wei Dai / @clvv42

01/06/2011 at 10:06AM

20
#14 - Oleg Roshupkin / @jjjahson

01/06/2011 at 10:08AM

20
#15 - Ujjwol Lamichhane / @Ujjwol

01/06/2011 at 11:43AM

20
#16 - Balkoth / @_Balkoth_

01/08/2011 at 05:02PM

20
#17 - Utkarsh Kukreti / @utkarshkukreti

01/09/2011 at 12:24AM

20
#18 - Federico Galassi / @federicogalassi

01/10/2011 at 12:43PM

20
#19 - Andrey Ivanov / @Bytamine

01/19/2011 at 07:52PM

20
#20 - Andrey A. Ugolnik / @andreyugolnik

01/19/2011 at 11:31PM

20
#21 - Nathan Farrington / @nfarring

01/28/2011 at 08:45PM

20
#22 - vg / @vimgolfer

02/23/2011 at 10:35AM

20
#23 - Frederik Mogensen / @fmogensen

03/31/2011 at 10:55AM

20
#24 - Emile Swarts / @EmileSwarts

05/30/2011 at 11:25AM

20
#25 - not so punk :] / @notsopunk

06/26/2011 at 04:16AM

20
#26 - vimgolf / @vimgolf1

07/10/2011 at 06:08AM

20
#27 - Junfeng / @junfeng

07/15/2011 at 08:54AM

20
#28 - Sammasati / @sammasati0

07/15/2011 at 04:21PM

20
#29 - Ivan Evtukhovich / @evtuhovich

07/30/2011 at 06:22PM

20
#30 - Jason Then / @racc69

08/08/2011 at 04:39AM