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):
25
#61 - Eric Potter / @pottereric

05/26/2013 at 02:09AM

25
#62 - A / @Tower_1980

08/02/2013 at 11:43AM

25
#63 - ZorgroZ / @ZorgroZ

04/12/2014 at 08:21PM

26
#64 - learninghang / @learninghang

04/03/2013 at 09:20AM

28
#65 - Andrés Llopis / @andreselsuave

03/05/2013 at 01:20PM

28
#66 - Sofia Balicka / @so_phifi

03/09/2013 at 08:29PM

30
#67 - Niil Öhlin / @Niil94

03/04/2013 at 08:19AM

32
#68 - くま55 / @kumack55

04/02/2013 at 05:02PM

33
#69 - Kurt Woitschach / @kwoitschach

03/08/2013 at 03:52PM

42
#70 - Arne Ehrlich / @typedlambda

03/05/2013 at 01:00PM