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
#211 - z0k / @z0k

12/19/2012 at 11:40PM

21
#212 - nirosys / @nirosys

01/17/2013 at 02:07AM

21
#213 - Tom Duijf / @tomduijf

01/29/2013 at 11:08PM

21
#214 - Steve Tjoa / @stevetjoa

01/30/2013 at 08:14AM

21
#215 - Kai Yuan / @kentyuan

02/21/2013 at 06:13PM

21
#216 - Claes Mogren / @claesmogren

03/23/2013 at 11:01PM

21
#217 - Tyler / @tylerbindon

03/31/2013 at 05:21AM

21
#218 - Eric Potter / @pottereric

06/07/2013 at 04:59PM

21
#219 - Nathan / @NathanHarperoni

07/24/2013 at 04:32PM

21
#220 - A / @Tower_1980

07/29/2013 at 01:55PM

21
#221 - cj / @cj01101

08/08/2013 at 07:51PM

21
#222 - yaon / @yaon4

09/12/2013 at 09:34AM

21
#223 - Oliver Christ / @0liverChrist

09/25/2013 at 09:27PM

21
#224 - Dom Armstrong / @dom_cycleface

09/26/2013 at 12:59PM

21
#225 - Casey Dwyer / @caseydwyer

11/04/2013 at 05:33AM

21
#226 - Karun Ramakrishnan / @the_karun

11/27/2013 at 12:55AM

21
#227 - Salleyron Julien / @juguul

12/30/2013 at 05:45PM

21
#228 - Quota / @Quotad

01/29/2014 at 08:53AM

21
#229 - Brian Olpin / @bolpin

04/03/2014 at 04:28AM

21
#230 - John Meisner / @jmeisned

06/27/2014 at 12:17AM

21
#231 - Clark DuVall / @theclarkatron

06/01/2015 at 04:39AM

21
#232 - Dimitar Dimitrov / @kurkale6ka

03/18/2016 at 03:12PM

21
#233 - Chenut Ludovic / @7Brwa7

04/04/2016 at 11:39AM

21
#234 - jn / @j1357924

09/14/2016 at 07:35PM

21
#235 - Daniel / @Daniel00288663

03/30/2017 at 03:37PM

21
#236 - Brandon Height / @Lask0x

08/09/2017 at 08:31PM

21
#237 - Ben Hill / @KaizenSoze70

01/16/2018 at 12:59PM

21
#238 - Brendan B Amdocs / @AmdocsB

09/27/2018 at 04:38PM

21
#239 - Jonghyun Yun / @JonghyunYun

10/03/2018 at 07:40PM

21
#240 - Mihai / @mihaicristiant

01/09/2019 at 09:58AM