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

77 active golfers, 179 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

21
#25 - Turkey Man / @lvturkeyman

12/03/2018 at 07:54AM

21
#26 - Jean George / @JeanGeo20504212

10/31/2023 at 11:20PM

21
#27 - Peppa Pig / @PeppaPi95550250

06/29/2024 at 08:24AM

21
#28 - nickGPT / @nickandbro

08/28/2024 at 06:42PM

22
#29 - Kai Yuan / @kentyuan

02/28/2013 at 09:35AM

22
#30 - mnx / @mnxx

02/28/2013 at 10:28PM