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 512eda055d6ed80002000025

Parsing with CSV: Unify lines and result.

col1;col2;col3;col4 A;1;4;5 A;3;4; A;1;4; # New output: col1;col2;col3;col4 A;1(2x);3;4(3x);5 any ideas?

Start file
col1;col2;col3;col4
A;1;4;5
A;3;4;
A;1;4;
End file
col1;col2;col3;col4
A;1(2x);3;4(3x);5

View Diff

2,4c2
< A;1;4;5
< A;3;4;
< A;1;4;
---
> A;1(2x);3;4(3x);5

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 55 remaining solutions by signing in and submitting your own entry
#56 Carlos A Henríquez Q / lagunex - Score: 24 - 01/19/15 @ 09:05
j3li(2x);3<Right><Right>(3x)<Esc>{2:wq!<CR>

0 comments

#57 Eric Weikl / ericweikl - Score: 25 - 03/08/13 @ 15:44
jf1a(2x)<Esc>f4.b<C-A>F;i;3<Esc>jdGZZ

0 comments

#58 CY / wongcy0 - Score: 25 - 03/12/13 @ 08:31
jd3doA;1(2x);3;4(3x);5<Esc>ZZ

0 comments

#59 Mike K / zodoz - Score: 25 - 05/13/13 @ 21:54
j3f;i(3x)<Esc>,.a;3<Esc>F3r2jdGZZ

0 comments

#60 Eric Potter / pottereric - Score: 25 - 05/26/13 @ 02:09
j:s/;4/(2x);3;4(3x)<CR>jdGZZ

0 comments

#61 A / Tower_1980 - Score: 25 - 08/02/13 @ 11:43
j3lC(2x);3;4(3x);5<Esc>jdd.ZZ

0 comments

#62 ZorgroZ / ZorgroZ - Score: 25 - 04/12/14 @ 20:21
:3,4d<CR>3li(2x);3<C-O>2l(3x)<Esc>ZZ

0 comments

#63 learninghang / learninghang - Score: 26 - 04/03/13 @ 09:20
j2la(2x);3<Esc>lla(3x)<Esc>j2dd:x<CR>

0 comments

#64 Andrés Llopis / andreselsuave - Score: 28 - 03/05/13 @ 13:20
jllli(2x);3<Esc>wwwi(3x)<Esc>j2DddZZ

0 comments

#65 Sofia Balicka / so_phifi - Score: 28 - 03/09/13 @ 20:29
jlla(2x)<Esc>la3;<Esc>lli(3x)<Esc>jdG<Esc>ZZ

0 comments

#66 Niil Öhlin / Niil94 - Score: 30 - 03/04/13 @ 08:19
jlla(2x);3<C-C><C-C>,lla(3x)<C-C><C-C>jdd.:wq<CR>

0 comments

#67 くま55 / kumack55 - Score: 32 - 04/02/13 @ 17:02
jl2ylPa(2x)<Esc><C-A><C-A>F(yf)f4pF(<C-A>jddddZZ

0 comments

#68 Kurt Woitschach / kwoitschach - Score: 33 - 03/08/13 @ 15:52
}ddddlllqqi(2x);3<Esc>qwww@qxxebbr3ZZ

0 comments

#69 Arne Ehrlich / typedlambda - Score: 42 - 03/05/13 @ 13:00
cGcol1;col2;col3;col4<CR>A;1(2x);3;4(3x);5<Esc>ZZ

0 comments

Created by: ValessioBrito

69 active golfers, 157 entries

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

02/28/2013 at 04:37AM

21
#2 - Tim Chase / gumnos

02/28/2013 at 05:17PM

21
#3 - Petro Тrouq / zulolosi

02/28/2013 at 10:08PM

21
#4 - Fan Zhang / 2bDeactivat3d

03/04/2013 at 05:22AM

21
#5 - Simon Tost / Someone_Busy

03/08/2013 at 03:44PM

21
#6 - Bernhard Tausch / tauschb

03/08/2013 at 03:45PM

21
#7 - Martin Sander / 0x89

03/08/2013 at 03:45PM

21
#8 - Korbinian Stoemmer / PaulSmecker

03/08/2013 at 03:49PM

21
#9 - Kerson Hsiao / KersonHsiao

03/10/2013 at 03:43PM

21
#10 - Mikael Gustavsson / slvmnd

03/13/2013 at 03:09PM

21
#11 - Maarten Claes / maartencls

03/28/2013 at 09:43PM

21
#12 - David Elentok / elentok

05/08/2013 at 03:15PM

21
#13 - Ben Zittlau / benzittlau

05/11/2013 at 10:46PM

21
#14 - Rasmus Prentow / rasmusprentow

05/13/2013 at 11:08AM

21
#15 - Marco Hinz / _mhinz_

05/28/2013 at 12:53PM

21
#16 - powertomato / powertomato

06/28/2013 at 05:59PM

21
#17 - moo goo / m00g000

07/02/2013 at 02:30PM

21
#18 - Bradd Szonye / bszonye

07/13/2013 at 08:03AM

21
#19 - Jeroen van der Neut / jvdneut

07/20/2013 at 01:35PM

21
#20 - Steve Tjoa / stevetjoa

08/09/2013 at 11:25PM

21
#21 - Joonas Pihlajamaa / jokkebk

03/14/2014 at 05:14PM

21
#22 - John Braxler / braxler

05/04/2014 at 04:25PM

21
#23 - Jimmy McRascal / JimmyMcRascal

07/08/2014 at 05:27AM

21
#24 - Jon Krause / jkrause314

02/01/2016 at 10:14PM

22
#25 - Kai Yuan / kentyuan

02/28/2013 at 09:35AM

22
#26 - mnx / mnxx

02/28/2013 at 10:28PM

22
#27 - Joel Elkins / dice_tea

03/01/2013 at 10:15PM

22
#28 - Kristian Lewis Jones / klj613

03/01/2013 at 11:06PM

22
#29 - Patricio Clark / PatricioClark

03/02/2013 at 02:33PM

22
#30 - Trevor Powell / DoomedBunnies

03/04/2013 at 03:08AM

22
#31 - Manuel Meilinger / MMeilinger

03/08/2013 at 03:42PM

22
#32 - retired account / retired10072015

03/13/2013 at 09:35AM

22
#33 - Satoshi Kawasaki / hobbes3k

04/18/2013 at 05:37AM

22
#34 - Chasetopher / chasetopherlee

04/28/2013 at 08:47AM

22
#35 - Forrest Zeisler / fzeisler

05/07/2013 at 04:58PM

22
#36 - wushexu / wushexu

05/21/2013 at 02:05PM

22
#37 - Tresifina / Tresifina

05/23/2013 at 03:04AM

22
#38 - James Scriven / JamesDScriven

06/24/2013 at 01:14AM

22
#39 - Oliver Christ / 0liverChrist

10/04/2013 at 02:24PM

23
#40 - joe di castro / joe_di_castro

02/28/2013 at 07:32AM

23
#41 - Runar / runarfu

02/28/2013 at 09:00AM

23
#42 - Pradeep Kumar / pradeep6kumar

02/28/2013 at 09:04AM

23
#43 - Asmund / herrasbe

02/28/2013 at 08:46PM

23
#44 - curist / curist

07/09/2013 at 04:29AM

23
#45 - RobertT / techrt2050

07/10/2013 at 10:13AM

23
#46 - cj / cj01101

08/08/2013 at 07:42PM

23
#47 - NuM / NuM314

10/05/2013 at 10:56PM

23
#48 - Casey Dwyer / caseydwyer

11/04/2013 at 09:23PM

24
#49 - René Scheibe / renescheibe

03/08/2013 at 03:41PM

24
#50 - Bailey Ling / blingcoder

03/09/2013 at 04:08AM

24
#51 - Nicolaas du Preez / N_du_P

04/07/2013 at 07:08PM

24
#52 - lubyk / lubyk_

05/21/2013 at 04:52PM

24
#53 - James / Dronak

09/12/2013 at 08:09PM

24
#54 - brett / brettyukich

09/21/2013 at 10:52PM

24
#55 - Ram Tamtam / ramtamtamtam

07/02/2014 at 11:50AM

24
#56 - Carlos A Henríquez Q / lagunex

01/19/2015 at 09:05AM

25
#57 - Eric Weikl / ericweikl

03/08/2013 at 03:44PM

25
#58 - CY / wongcy0

03/12/2013 at 08:31AM

25
#59 - Mike K / zodoz

05/13/2013 at 09:54PM

25
#60 - Eric Potter / pottereric

05/26/2013 at 02:09AM

25
#61 - A / Tower_1980

08/02/2013 at 11:43AM

25
#62 - ZorgroZ / ZorgroZ

04/12/2014 at 08:21PM

26
#63 - learninghang / learninghang

04/03/2013 at 09:20AM

28
#64 - Andrés Llopis / andreselsuave

03/05/2013 at 01:20PM

28
#65 - Sofia Balicka / so_phifi

03/09/2013 at 08:29PM

30
#66 - Niil Öhlin / Niil94

03/04/2013 at 08:19AM

32
#67 - くま55 / kumack55

04/02/2013 at 05:02PM

33
#68 - Kurt Woitschach / kwoitschach

03/08/2013 at 03:52PM

42
#69 - Arne Ehrlich / typedlambda

03/05/2013 at 01:00PM