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 345 remaining solutions by signing in and submitting your own entry
#346 Chirag Tailor / @ctailor2 - Score: 164 - 01/27/14 @ 02:14
jjjjjjjjjjdd0ggpuPjjjjddkkkpuPjjjjjjddkkkkkPjjd2dkP<Down><Down><Down>ddkkpkkkjjjjjjkkjddjkkjjddkPjjjddkPjjdd:%s/ \d//g<CR>u:%s/ \d*/<Left>$<Right>/g<CR>dd<Up><Down>A<Esc>u<Up>ou<Esc>uo<Esc>uJ<Up>J<Up>uu<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>JJJJJJJJJ:wq<CR>

0 comments


Created by: @elasticdog

346 active golfers, 1141 entries

Leaderboard (lowest score wins):
21
#181 - yaon / @yaon4

09/12/2013 at 09:34AM

21
#182 - Oliver Christ / @0liverChrist

09/25/2013 at 09:27PM

21
#183 - Dom Armstrong / @dom_cycleface

09/26/2013 at 12:59PM

21
#184 - Casey Dwyer / @caseydwyer

11/04/2013 at 05:33AM

21
#185 - Karun Ramakrishnan / @the_karun

11/27/2013 at 12:55AM

21
#186 - Salleyron Julien / @juguul

12/30/2013 at 05:45PM

21
#187 - Quota / @Quotad

01/29/2014 at 08:53AM

21
#188 - Brian Olpin / @bolpin

04/03/2014 at 04:28AM

21
#189 - John Meisner / @jmeisned

06/27/2014 at 12:17AM

21
#190 - Clark DuVall / @theclarkatron

06/01/2015 at 04:39AM

21
#191 - Dimitar Dimitrov / @kurkale6ka

03/18/2016 at 03:12PM

21
#192 - Chenut Ludovic / @7Brwa7

04/04/2016 at 11:39AM

21
#193 - jn / @j1357924

09/14/2016 at 07:35PM

21
#194 - Daniel / @Daniel00288663

03/30/2017 at 03:37PM

21
#195 - Brandon Height / @Lask0x

08/09/2017 at 08:31PM

21
#196 - Ben Hill / @KaizenSoze70

01/16/2018 at 12:59PM

21
#197 - Brendan B Amdocs / @AmdocsB

09/27/2018 at 04:38PM

21
#198 - Jonghyun Yun / @JonghyunYun

10/03/2018 at 07:40PM

21
#199 - Mihai / @mihaicristiant

01/09/2019 at 09:58AM

21
#200 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 12:13PM

21
#201 - Lory / @Lory46845742

11/22/2019 at 02:37PM

21
#202 - Matrices Matlab #1 / @matrices_matlab

07/13/2021 at 07:54PM

21
#203 - Michel Viktor / @tomkpz

08/11/2021 at 11:32PM

21
#204 - Sean Cahill / @ess_jay_kay

11/01/2021 at 03:34PM

21
#205 - Jean George / @JeanGeo20504212

01/15/2022 at 09:32PM

21
#206 - POSIX / @po6ix

01/31/2022 at 05:25PM

21
#207 - Tyler Carson / @tylerccarson

02/01/2022 at 08:03PM

21
#208 - shahanavaz m / @shahanavazm

02/12/2022 at 10:18PM

21
#209 - blabla zincou / @BZincou

03/09/2022 at 09:40PM

21
#210 - yancy / @yancy_dong

04/29/2022 at 07:42AM