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

425 active golfers, 1589 entries

Leaderboard (lowest score wins):
20
#31 - Jason Then / @racc69

08/08/2011 at 04:39AM

20
#32 - Neil / @spameldoon

08/21/2011 at 10:12AM

20
#33 - quintin / @quintinjeannoel

08/29/2011 at 08:24PM

20
#34 - Simon Scarfe / @simonscarfe

08/31/2011 at 08:35PM

20
#35 - Jesús Espino / @jespinog

09/06/2011 at 09:12AM

20
#36 - dtennant / @dtennant

09/16/2011 at 05:33PM

20
#37 - p0ckets / @p0ckets

10/07/2011 at 12:02AM

20
#38 - Martin Janiczek / @janiczek

10/17/2011 at 07:30PM

20
#39 - You-Siang Lin / @yslinnctu

11/27/2011 at 05:43AM

20
#40 - palentine / @palentine

12/12/2011 at 08:01PM

20
#41 - Ali Moeeny MD PhD / @alimoeeny

12/16/2011 at 03:50PM

20
#42 - Xavier Nayrac / @lkdjiin

12/29/2011 at 02:34PM

20
#43 - Tara Bass / @tara_bass

01/01/2012 at 05:32PM

20
#44 - Pei-Lun Lee / @ypcatw

01/07/2012 at 01:22PM

20
#45 - Tesnorth / @Tesnorth

01/31/2012 at 04:26PM

20
#46 - Renat Aksitov / @Korvin79

02/05/2012 at 05:48PM

20
#47 - Zeh Rizzatti / @zehrizzatti

02/06/2012 at 03:24AM

20
#48 - John Ford / @GhettoCode

02/06/2012 at 10:34PM

20
#49 - Daniel Cohen / @danielissimo

02/08/2012 at 04:34PM

20
#50 - Kristopher Urie / @kristopherurie

02/11/2012 at 05:46AM

20
#51 - Rod Knowlton / @codelahoma

05/26/2012 at 09:17PM

20
#52 - Urtica dioica / @udioica

06/04/2012 at 02:37AM

20
#53 - mwatkward / @AftrschoolSpe

06/25/2012 at 08:25PM

20
#54 - Tim Chase / @gumnos

07/14/2012 at 04:58PM

20
#55 - Sylvain / @20vinW

07/16/2012 at 06:31AM

20
#56 - lwjef / @lwjef

08/16/2012 at 02:16AM

20
#57 - Charles Gordon / @liberalbias

08/24/2012 at 02:13AM

20
#58 - Joseph J. Piché / @jjpiche

08/25/2012 at 03:19AM

20
#59 - Conner McDaniel / @connermcd

09/18/2012 at 05:21PM

20
#60 - Vim rocks / @vimrocks

10/06/2012 at 02:20PM