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

383 active golfers, 1363 entries

Leaderboard (lowest score wins):
21
#211 - Dimitar Dimitrov / @kurkale6ka

03/18/2016 at 03:12PM

21
#212 - Chenut Ludovic / @7Brwa7

04/04/2016 at 11:39AM

21
#213 - jn / @j1357924

09/14/2016 at 07:35PM

21
#214 - Daniel / @Daniel00288663

03/30/2017 at 03:37PM

21
#215 - Brandon Height / @Lask0x

08/09/2017 at 08:31PM

21
#216 - Ben Hill / @KaizenSoze70

01/16/2018 at 12:59PM

21
#217 - Brendan B Amdocs / @AmdocsB

09/27/2018 at 04:38PM

21
#218 - Jonghyun Yun / @JonghyunYun

10/03/2018 at 07:40PM

21
#219 - Mihai / @mihaicristiant

01/09/2019 at 09:58AM

21
#220 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 12:13PM

21
#221 - Lory / @Lory46845742

11/22/2019 at 02:37PM

21
#222 - Matrices Matlab #1 / @matrices_matlab

07/13/2021 at 07:54PM

21
#223 - Michel Viktor / @tomkpz

08/11/2021 at 11:32PM

21
#224 - Sean Cahill / @ess_jay_kay

11/01/2021 at 03:34PM

21
#225 - Jean George / @JeanGeo20504212

01/15/2022 at 09:32PM

21
#226 - POSIX / @po6ix

01/31/2022 at 05:25PM

21
#227 - Tyler Carson / @tylerccarson

02/01/2022 at 08:03PM

21
#228 - shahanavaz m / @shahanavazm

02/12/2022 at 10:18PM

21
#229 - blabla zincou / @BZincou

03/09/2022 at 09:40PM

21
#230 - yancy / @yancy_dong

04/29/2022 at 07:42AM

21
#231 - Adigan / @Addigan

05/13/2023 at 12:04PM

21
#232 - xiang / @xiang56002997

09/09/2023 at 08:47PM

21
#233 - Michael / @openemitter

12/27/2023 at 03:53AM

21
#234 - k84d / @k84d

01/29/2024 at 07:06PM

21
#235 - Aristotelis Dossas / @teldosas

03/30/2024 at 08:18AM

21
#236 - Peppa Pig / @PeppaPi95550250

04/10/2024 at 06:02AM

22
#237 - Aaron Bull Schaefer / @elasticdog

12/29/2010 at 08:05PM

22
#238 - Douglas Stockwell / @dstockwell

12/30/2010 at 12:14AM

22
#239 - Mikel Ward / @mikelward

12/30/2010 at 09:11PM

22
#240 - kmymtksh / @kmymtksh

12/31/2010 at 07:04PM