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
#61 - James / @defactojames

10/18/2012 at 01:30AM

20
#62 - Mikko Loponen / @lopossumi

11/08/2012 at 05:20PM

20
#63 - Tamás Kárándi / @tkarandi

11/14/2012 at 11:34PM

20
#64 - Hubba / @HubbaBubbaFett

11/22/2012 at 09:21PM

20
#65 - a24f0600 / @a24f0600

12/14/2012 at 11:05AM

20
#66 - JonLz / @LzJon

12/26/2012 at 05:10PM

20
#67 - Averell Dalton / @webtwoosucks

01/02/2013 at 10:53PM

20
#68 - Alec Goebel / @zego5360

01/07/2013 at 01:07AM

20
#69 - Jimmy Mabey / @mabeyj

01/20/2013 at 03:03AM

20
#70 - Niels Madan / @nielsmadan

01/23/2013 at 11:05AM

20
#71 - Taro Yamada / @t_yamada8karad

01/23/2013 at 01:48PM

20
#72 - Yann Moisan / @YannMoisan

02/01/2013 at 04:33PM

20
#73 - xavier kt / @xav_kt

02/03/2013 at 08:59PM

20
#74 - Ryan Scarbery / @ryan_scarbery

02/05/2013 at 06:19PM

20
#75 - Adam Bell / @adamgbell

02/17/2013 at 11:48PM

20
#76 - Andrew Hlavats / @farthestworld

03/01/2013 at 06:51AM

20
#77 - igoodrich / @igoodrich

03/05/2013 at 07:40AM

20
#78 - Matt Adelman / @Xavierstein

03/20/2013 at 06:26PM

20
#79 - Trevor Powell / @DoomedBunnies

03/25/2013 at 06:05AM

20
#80 - Brent Carmer / @brent_carmer

04/09/2013 at 01:34AM

20
#81 - Kate / @Arohanui

05/03/2013 at 01:38AM

20
#82 - Petro Тrouq / @zulolosi

05/03/2013 at 06:04AM

20
#83 - Marco Hinz / @_mhinz_

05/22/2013 at 10:15AM

20
#84 - shark dick / @DickShark

05/26/2013 at 01:03PM

20
#85 - Adam Pohorecki / @apohorecki

06/12/2013 at 11:07AM

20
#86 - Woojung Kim 김우중 / @_kimwz

07/12/2013 at 07:58AM

20
#87 - Bradd Szonye / @bszonye

07/13/2013 at 09:30AM

20
#88 - Ingo / @ist3fani

07/30/2013 at 02:32PM

20
#89 - Stephen Drodge / @sjdrodge

09/19/2013 at 02:35AM

20
#90 - A. N. / @arez42

10/24/2013 at 10:36AM