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 69 remaining solutions by signing in and submitting your own entry
#70 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

70 active golfers, 162 entries

Leaderboard (lowest score wins):
22
#31 - Trevor Powell / @DoomedBunnies

03/04/2013 at 03:08AM

22
#32 - Manuel Meilinger / @MMeilinger

03/08/2013 at 03:42PM

22
#33 - retired account / @retired10072015

03/13/2013 at 09:35AM

22
#34 - Satoshi Kawasaki / @hobbes3k

04/18/2013 at 05:37AM

22
#35 - Chasetopher / @chasetopherlee

04/28/2013 at 08:47AM

22
#36 - Forrest Zeisler / @fzeisler

05/07/2013 at 04:58PM

22
#37 - wushexu / @wushexu

05/21/2013 at 02:05PM

22
#38 - Tresifina / @Tresifina

05/23/2013 at 03:04AM

22
#39 - James Scriven / @JamesDScriven

06/24/2013 at 01:14AM

22
#40 - Oliver Christ / @0liverChrist

10/04/2013 at 02:24PM

23
#41 - joe di castro / @joe_di_castro

02/28/2013 at 07:32AM

23
#42 - Runar / @runarfu

02/28/2013 at 09:00AM

23
#43 - Pradeep Kumar / @pradeep6kumar

02/28/2013 at 09:04AM

23
#44 - Asmund / @herrasbe

02/28/2013 at 08:46PM

23
#45 - curist / @curist

07/09/2013 at 04:29AM

23
#46 - RobertT / @techrt2050

07/10/2013 at 10:13AM

23
#47 - cj / @cj01101

08/08/2013 at 07:42PM

23
#48 - NuM / @NuM314

10/05/2013 at 10:56PM

23
#49 - Casey Dwyer / @caseydwyer

11/04/2013 at 09:23PM

24
#50 - René Scheibe / @renescheibe

03/08/2013 at 03:41PM

24
#51 - Bailey Ling / @blingcoder

03/09/2013 at 04:08AM

24
#52 - Nicolaas du Preez / @N_du_P

04/07/2013 at 07:08PM

24
#53 - lubyk / @lubyk_

05/21/2013 at 04:52PM

24
#54 - James / @Dronak

09/12/2013 at 08:09PM

24
#55 - brett / @brettyukich

09/21/2013 at 10:52PM

24
#56 - Ram Tamtam / @ramtamtamtam

07/02/2014 at 11:50AM

24
#57 - Carlos A Henríquez Q / @lagunex

01/19/2015 at 09:05AM

25
#58 - Eric Weikl / @ericweikl

03/08/2013 at 03:44PM

25
#59 - CY / @wongcy0

03/12/2013 at 08:31AM

25
#60 - Mike K / @zodoz

05/13/2013 at 09:54PM