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

443 active golfers, 1683 entries

Leaderboard (lowest score wins):
46
#421 - Zach Lapidus / @zach_lapidus

05/25/2021 at 02:41AM

46
#422 - steve / @steve35773420

03/04/2023 at 06:39PM

55
#423 - Jordan Lewis / @JordanALewis

12/28/2010 at 11:18PM

58
#424 - kelthur47 / @kelthur47

01/10/2026 at 01:43AM

61
#425 - xiaoao1024 / @xiaoao1024

12/22/2023 at 09:27AM

66
#426 - KarateSnoopy / @KarateSnoopy

08/12/2024 at 10:11AM

69
#427 - Heath Ritchie / @heathritchie

11/13/2012 at 03:16PM

69
#428 - Brando / @brandonce

01/14/2025 at 10:28AM

70
#429 - Jurica / @Jurica34581259

11/19/2018 at 08:51PM

70
#430 - nickGPT / @nickandbro

08/29/2024 at 12:35AM

75
#431 - microjoint / @microjoint

01/27/2025 at 04:07PM

75
#432 - Stanley Gao / @gaosu2718

03/06/2025 at 07:30PM

78
#433 - Afzal Hussain / @afzalhussain23

04/10/2024 at 01:37PM

79
#434 - Khorea1 / @Khorea1

05/16/2025 at 12:08AM

88
#435 - Tom Morris / @tommorris

12/30/2010 at 08:16AM

89
#436 - Kory Newton / @korynewton

02/04/2024 at 04:24AM

95
#437 - drio / @drio

12/29/2010 at 11:05PM

102
#438 - Álvaro Silva / @ricostynha1

07/24/2024 at 10:20PM

104
#439 - jfdg01 / @jfdg01

10/20/2024 at 09:50AM

113
#440 - 3eneliath / @3eneliath

03/19/2024 at 10:30PM

118
#441 - tncargil / @tncargil

08/27/2024 at 03:22AM

164
#442 - Chirag Tailor / @ctailor2

01/27/2014 at 02:14AM

175
#443 - Maurice Schmicking / @m_schmicking

04/03/2023 at 10:16PM