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 5293b3574f09ff0002000033

Going underground....

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

Start file
Date,Start Time,End Time,Journey/Action,Charge,Credit,Balance,Note
23-Nov-2013,12:16,12:38,"Bermondsey to West Hampstead [London Underground]",2.10,,26.50,""
23-Nov-2013,09:38,10:02,"West Hampstead [London Underground] to Bermondsey",2.10,,8.60,""
20-Nov-2013,23:14,23:43,"Kennington to West Hampstead [London Underground]",1.40,,10.70,"The fare for this journey was capped as you reached the daily charging limit for the zones used"
20-Nov-2013,20:53,,"Bus journey, route 159",1.40,,12.10,""
20-Nov-2013,20:27,20:50,"Warwick Avenue to Lambeth North",2.10,,13.50,""
20-Nov-2013,17:57,18:19,"West Hampstead [London Underground] to Paddington (Bakerloo, Circle/District and H&C)",2.10,,15.60,""
18-Nov-2013,17:37,17:48,"Kensal Rise to West Hampstead [London Overground]",1.60,,24.90,""
18-Nov-2013,17:31,,"Bus journey, route 6",1.40,,26.50,""
18-Nov-2013,16:16,,"Bus journey, route 6",1.40,,27.90,""
End file
Date,Start Time,End Time,Journey/Action,Charge,Credit,Balance,Note
23-Nov-2013,12:16-12:38,"Bermondsey to West Hampstead [London Underground]"
23-Nov-2013,09:38-10:02,"West Hampstead [London Underground] to Bermondsey"
20-Nov-2013,23:14-23:43,"Kennington to West Hampstead [London Underground]"
20-Nov-2013,20:53,"Bus journey, route 159"
20-Nov-2013,20:27-20:50,"Warwick Avenue to Lambeth North"
20-Nov-2013,17:57-18:19,"West Hampstead [London Underground] to Paddington (Bakerloo, Circle/District and H&C)"
18-Nov-2013,17:37-17:48,"Kensal Rise to West Hampstead [London Overground]"
18-Nov-2013,17:31,"Bus journey, route 6"
18-Nov-2013,16:16,"Bus journey, route 6"

View Diff

3,11c3,11
< 23-Nov-2013,12:16,12:38,"Bermondsey to West Hampstead [London Underground]",2.10,,26.50,""
< 23-Nov-2013,09:38,10:02,"West Hampstead [London Underground] to Bermondsey",2.10,,8.60,""
< 20-Nov-2013,23:14,23:43,"Kennington to West Hampstead [London Underground]",1.40,,10.70,"The fare for this journey was capped as you reached the daily charging limit for the zones used"
< 20-Nov-2013,20:53,,"Bus journey, route 159",1.40,,12.10,""
< 20-Nov-2013,20:27,20:50,"Warwick Avenue to Lambeth North",2.10,,13.50,""
< 20-Nov-2013,17:57,18:19,"West Hampstead [London Underground] to Paddington (Bakerloo, Circle/District and H&C)",2.10,,15.60,""
< 18-Nov-2013,17:37,17:48,"Kensal Rise to West Hampstead [London Overground]",1.60,,24.90,""
< 18-Nov-2013,17:31,,"Bus journey, route 6",1.40,,26.50,""
< 18-Nov-2013,16:16,,"Bus journey, route 6",1.40,,27.90,""
---
> 23-Nov-2013,12:16-12:38,"Bermondsey to West Hampstead [London Underground]"
> 23-Nov-2013,09:38-10:02,"West Hampstead [London Underground] to Bermondsey"
> 20-Nov-2013,23:14-23:43,"Kennington to West Hampstead [London Underground]"
> 20-Nov-2013,20:53,"Bus journey, route 159"
> 20-Nov-2013,20:27-20:50,"Warwick Avenue to Lambeth North"
> 20-Nov-2013,17:57-18:19,"West Hampstead [London Underground] to Paddington (Bakerloo, Circle/District and H&C)"
> 18-Nov-2013,17:37-17:48,"Kensal Rise to West Hampstead [London Overground]"
> 18-Nov-2013,17:31,"Bus journey, route 6"
> 18-Nov-2013,16:16,"Bus journey, route 6"

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 92 remaining solutions by signing in and submitting your own entry
#93 Fake Name / The_Real_User - Score: 37 - 01/20/14 @ 00:42
:%s/",.*/"/g<CR>2f,xkxkr-k.k.4k.j.j.jxZZ

0 comments


#94 Pieter Kuijpers / pkuijpers - Score: 37 - 02/13/14 @ 19:01
:%s/",.*/"/g<CR>2f,xkxkr-k.k.4k.j.j.jxZZ

0 comments


#95 Edgar Klerks / eklerks - Score: 38 - 12/18/13 @ 17:26
jjqa2f,r-f.F,d$^jq9@a:g/-,/s//,/g<CR>:wq<CR>

0 comments


#96 flembo's dad / Lspacewalker - Score: 38 - 01/24/14 @ 17:21
2jqqf";lDj_q8@qF,;<C-V>kxkh<C-V>kkr-kxk<C-V>2kr-ZZ

0 comments


#97 w1zeman1p / wizemanip - Score: 39 - 05/17/14 @ 19:58
2jqq$2dT"xjq9@q3F,xkxkr-k.k.kxkr-k.k.ZZ

0 comments


#98 iegorka / iegorka - Score: 40 - 11/26/13 @ 08:34
:%s/<0xc3><0xa9><BS>",.*/g<BS>"/g<CR>f,.;<C-V>8kr<kMinus>:%s/<kMinus>,/,/g<CR>ZZ

0 comments


#99 Felipe Jaramillo F / mrfelipe - Score: 40 - 04/02/14 @ 22:45
:%s/,,/,/g<CR>3Gqq2f"lD<CR>q8@q3G2f,<C-V>jjr-4j.ZZ

0 comments


#100 WoljaIlpapa / WoljaIlpapa - Score: 41 - 12/28/13 @ 07:30
:%s/",.*/"/g<CR>:%s/\%18v,/-/g<CR>:%s/-,/,/g<CR>ZZ

0 comments


#101 a / asdfsdafdsfdsaf - Score: 41 - 01/04/14 @ 02:37
:%s/,,/,/g<CR>3Gqaf";ld$<CR>q8@a3Gf,;<C-V>jjr-4j.ZZ

0 comments


#102 Patrick Pitoscia / Patrick03960431 - Score: 41 - 08/05/14 @ 03:00
2jqa0f";lDjq9@a3Gf,;r-j.j.jxjr-j.j.jxjxZZ

0 comments


#103 Matthew M. Keeler / keelerm84 - Score: 42 - 02/02/14 @ 05:18
:%s/,,/,/<CR>qq2f"lD_kq8@qjqq2f,r-<CR>q2@qj3@qZZ

0 comments


#104 Raphael / rnstlr - Score: 44 - 11/26/13 @ 22:07
jjqa2f,r-2f"ld$j0q2@aqb2f,x2f"df"j0q3@a2@bZZ

0 comments


#105 Endre Galaczi / galacziendre - Score: 45 - 08/20/15 @ 14:35
jjqqf"f"ld$j0q9@q/6<CR>lr-j.j.2j.j.j.4kjx4jxjxZZ

0 comments


#106 adamblank / adamblank - Score: 46 - 12/20/13 @ 19:33
:%s/",.*/"<CR>:%s/,\([^,]*\),"/-\1,"<CR>:%s/-,/,<CR>:x<CR>

0 comments


#107 Benjamin Williams / benjaminjosephw - Score: 46 - 01/11/14 @ 19:18
:%s/,,/,/<CR>:%s/",/<BS>.*/"/<CR>17lkkvk<C-V>kr-4lu<C-R>4k.:wq<CR>

0 comments


#108 Chaitanya Desu / ChaituNu - Score: 47 - 05/06/14 @ 03:54
:%s/",.*/"<CR>:%s/<Esc>ggjj2f,<C-V><C-E><C-E><C-E><C-E><C-E><C-E><C-E><C-E>r-:%s/-,/,/g<CR>ZZ

0 comments


#109 Brian Peiris / brianpeiris - Score: 50 - 12/28/13 @ 04:37
/,1<CR>n<C-V>Gf,;s-<Esc>/-,<CR>dln.n./",<CR>C"<Esc>5.n.n.n.n.n.n.n.n.ZZ

0 comments


#110 Christophe de Vienne / cmdevienne - Score: 50 - 01/01/14 @ 17:12
/,1<CR>n<C-V>jjjjjjr-:%s/",\d.*$/"/<CR>:%s/-,/,/<CR>:<Up><Left><Left><Left><Left><BS>,<CR>ZZ

0 comments


#111 Almog / almog - Score: 54 - 02/11/14 @ 14:50
jjqq2f"lD<CR>q9@q:%s/,,/,g<BS>/g<CR>kk2f,r-kr-kr-kkr-kr-kr-:wq<CR>

0 comments


#112 Dmitry Teslenko / krab_mozga - Score: 58 - 04/07/14 @ 08:13
:%s/",.*/"/g<CR>:%s/:\(\d*\),\(\d*\):/:\1-\2:/g<CR>:%s/,,/,/g<CR>ZZ

0 comments


#113 wilddog64 / chengkai318 - Score: 61 - 12/17/13 @ 15:41
:%s/:\d\+\zs,\(\d\+\)/-\1/g<CR>:%s/,\d\.\d\+.*$//g<CR>:%s/,,/,/g<CR>ZZ

0 comments


#114 Jake Eaton / Jake__Eaton - Score: 63 - 12/21/13 @ 01:25
:%s/\(:\d\d\),\(\d\)/\1-\2/g<CR>:%s/\<BS>,,\,<BS><BS>/,/g<CR>:%s/",.*/"/g<CR>:wq<CR>

0 comments


#115 Dmitry / __tweek - Score: 73 - 01/29/14 @ 13:19
jjqq2t"llDj0q@q@@@@@@@@@@@@@@3Gqq2t,lr-j0q@q@@j@@@@@@qq2t,lxjxq6G3t,x:wq<CR>

0 comments


Created by: retired10072015

115 active golfers, 277 entries

Leaderboard (lowest score wins):
22
#1 - Urtica dioica / udioica

11/25/2013 at 09:15PM

22
#2 - John Braxler / braxler

11/26/2013 at 11:25PM

23
#3 - Petro Тrouq / zulolosi

11/26/2013 at 08:20PM

24
#4 - Jon Krause / jkrause314

01/06/2016 at 07:24AM

26
#5 - Kerson Hsiao / KersonHsiao

02/13/2014 at 05:51AM

27
#6 - Andreas Källberg / Anka213

01/17/2014 at 12:46AM

27
#7 - Oddbike / oddbike

02/04/2014 at 09:09PM

27
#8 - Marchand Paul-Valère / pvmarch

03/05/2014 at 09:11PM

27
#9 - Sntano Euhsk / SEuhsk

06/15/2014 at 06:39PM

27
#10 - Alphonso De La Morte / FatDrakula

07/20/2014 at 01:31PM

27
#11 - Matthieu Crapet / mcr05

12/13/2014 at 05:29PM

27
#12 - pftb12345 / pftb12345

04/11/2015 at 04:33AM

27
#13 - Dimitar Dimitrov / kurkale6ka

04/19/2016 at 03:50PM

27
#14 - Turkey Man / lvturkeyman

11/27/2017 at 12:46PM

27
#15 - BarbaJol / drpproteus

01/11/2018 at 05:02PM

28
#16 - Kai Yuan / kentyuan

11/27/2013 at 11:23AM

28
#17 - Steve Tjoa / stevetjoa

11/29/2013 at 07:37PM

28
#18 - Fetrarijaona Randria / fetrarij

12/11/2013 at 01:22PM

28
#19 - Vernon Grimshaw / Vernon_Grimshaw

12/12/2013 at 10:54PM

28
#20 - fifigyuri / fifigyuri

12/15/2013 at 05:34PM

28
#21 - Eric Potter / pottereric

12/16/2013 at 05:26PM

28
#22 - Jacob Niehus / wilywampa

12/18/2013 at 06:15AM

28
#23 - Joshua Appelman / JoshuaAppelman

12/20/2013 at 08:49PM

28
#24 - chilicuil / chilicuil

12/27/2013 at 10:27AM

28
#25 - Thiago Prado / 5k1pp3r

12/28/2013 at 08:19PM

28
#26 - Yann Moisan / YannMoisan

01/01/2014 at 02:03PM

28
#27 - Roland Schatz / fl_Overmind

01/06/2014 at 01:59PM

28
#28 - grey wolfs / grey_wolfs

02/05/2014 at 04:25AM

28
#29 - Strabs / artistavenue

02/05/2014 at 01:03PM

28
#30 - Amir Kremer / AmirKremer

02/11/2014 at 02:46PM