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):
21
#241 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 12:13PM

21
#242 - Lory / @Lory46845742

11/22/2019 at 02:37PM

21
#243 - Matrices Matlab #1 / @matrices_matlab

07/13/2021 at 07:54PM

21
#244 - Michel Viktor / @tomkpz

08/11/2021 at 11:32PM

21
#245 - Sean Cahill / @ess_jay_kay

11/01/2021 at 03:34PM

21
#246 - Jean George / @JeanGeo20504212

01/15/2022 at 09:32PM

21
#247 - POSIX / @po6ix

01/31/2022 at 05:25PM

21
#248 - Tyler Carson / @tylerccarson

02/01/2022 at 08:03PM

21
#249 - shahanavaz m / @shahanavazm

02/12/2022 at 10:18PM

21
#250 - blabla zincou / @BZincou

03/09/2022 at 09:40PM

21
#251 - yancy / @yancy_dong

04/29/2022 at 07:42AM

21
#252 - Adigan / @Addigan

05/13/2023 at 12:04PM

21
#253 - xiang / @xiang56002997

09/09/2023 at 08:47PM

21
#254 - Michael / @openemitter

12/27/2023 at 03:53AM

21
#255 - k84d / @k84d

01/29/2024 at 07:06PM

21
#256 - Aristotelis Dossas / @teldosas

03/30/2024 at 08:18AM

21
#257 - menb / @menb111

07/08/2024 at 09:55PM

21
#258 - KoroneListener / @KoroneListener

09/03/2024 at 04:43PM

21
#259 - Pablo Acuna / @pacuna

10/22/2024 at 04:21AM

21
#260 - guyontristan / @guyontristan

10/27/2024 at 10:31AM

22
#261 - Aaron Bull Schaefer / @elasticdog

12/29/2010 at 08:05PM

22
#262 - Douglas Stockwell / @dstockwell

12/30/2010 at 12:14AM

22
#263 - Mikel Ward / @mikelward

12/30/2010 at 09:11PM

22
#264 - kmymtksh / @kmymtksh

12/31/2010 at 07:04PM

22
#265 - Roman Mašek / @romario333

01/04/2011 at 08:44PM

22
#266 - duckdalbe / @duckdalbe

01/14/2011 at 12:46PM

22
#267 - Bradly Feeley / @bradly

01/23/2011 at 11:58PM

22
#268 - Jam / @jam00_bcn

06/25/2011 at 02:14PM

22
#269 - Mislav Marohnić / @mislav

12/05/2011 at 05:51PM

22
#270 - William Dunand / @wdunand

12/08/2011 at 07:00AM