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
#151 - Suhaib Murshid / @suhaibm

08/31/2024 at 08:07AM

20
#152 - countime / @countime

11/27/2024 at 02:00PM

20
#153 - bounce114 / @bounce114

12/01/2024 at 11:58AM

20
#154 - Oleksii Sanin / @AlexSanin

12/07/2024 at 12:38PM

20
#155 - interminable007 / @interminable007

01/03/2025 at 03:12PM

20
#156 - Colin Benner / @yzhs

01/12/2025 at 08:41AM

20
#157 - Pa7shohG / @Pa7shohG

01/25/2025 at 04:06PM

20
#158 - Sergii Pidgornyi / @spodgorn

02/13/2025 at 06:28PM

21
#159 - Leonard Chin / @lchin

12/29/2010 at 12:04PM

21
#160 - Nadja Untendiegruft / @nadjau

12/29/2010 at 02:56PM

21
#161 - Josh Weinberg / @jcweinberg

12/29/2010 at 06:46PM

21
#162 - Paul King / @nrocy

12/29/2010 at 07:02PM

21
#163 - kana / @kana1

12/29/2010 at 07:30PM

21
#164 - Austin Taylor / @austintaylor

12/29/2010 at 09:46PM

21
#165 - Birgir Haraldsson / @bix0r

12/30/2010 at 09:24AM

21
#166 -  Ikhsan Maulana / @ixandidu

12/30/2010 at 10:04AM

21
#167 - Ben Lenarts / @benlenarts

12/30/2010 at 10:40AM

21
#168 - Brad / @bjjwillis

12/30/2010 at 11:16AM

21
#169 - Will Hardy / @whrde

12/30/2010 at 12:36PM

21
#170 - milkypostman / @milkypostman

12/30/2010 at 04:20PM

21
#171 - Ricardo Mendes / @locks

12/30/2010 at 08:10PM

21
#172 - Steve Morrow / @yawmark

12/30/2010 at 09:05PM

21
#173 - Pierre / @Pihour

12/31/2010 at 10:53PM

21
#174 - Fer Enaf / @0x00C0FFEE

01/05/2011 at 11:04AM

21
#175 - Matt Tarbit / @mtarbit

01/09/2011 at 12:59AM

21
#176 - Toto l'haricot / @nico_le_terribl

01/09/2011 at 01:24PM

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

01/11/2011 at 04:04PM

21
#178 - Pete Johns / @johnsyweb

01/15/2011 at 02:51AM

21
#179 - Ben Griffiths / @beng

01/15/2011 at 08:41PM

21
#180 - Rob Ciaccio / @RobertoCalavera

01/21/2011 at 11:20AM