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):
22
#31 - Joel Elkins / @dice_tea

03/01/2013 at 10:15PM

22
#32 - Kristian Lewis Jones / @klj613

03/01/2013 at 11:06PM

22
#33 - Patricio Clark / @PatricioClark

03/02/2013 at 02:33PM

22
#34 - Trevor Powell / @DoomedBunnies

03/04/2013 at 03:08AM

22
#35 - Manuel Meilinger / @MMeilinger

03/08/2013 at 03:42PM

22
#36 - retired account / @retired10072015

03/13/2013 at 09:35AM

22
#37 - Satoshi Kawasaki / @hobbes3k

04/18/2013 at 05:37AM

22
#38 - Chasetopher / @chasetopherlee

04/28/2013 at 08:47AM

22
#39 - Forrest Zeisler / @fzeisler

05/07/2013 at 04:58PM

22
#40 - ๅผ ๆ–‡่ฟœ / @zhwenyuan

05/21/2013 at 02:05PM

22
#41 - Tresifina / @Tresifina

05/23/2013 at 03:04AM

22
#42 - James Scriven / @JamesDScriven

06/24/2013 at 01:14AM

22
#43 - Oliver Christ / @0liverChrist

10/04/2013 at 02:24PM

23
#44 - joe di castro / @joe_di_castro

02/28/2013 at 07:32AM

23
#45 - Runar / @runarfu

02/28/2013 at 09:00AM

23
#46 - Pradeep Kumar ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡ฎ๐Ÿ‡ฑ / @pradeep6kumar

02/28/2013 at 09:04AM

23
#47 - Asmund / @herrasbe

02/28/2013 at 08:46PM

23
#48 - curist / @curist

07/09/2013 at 04:29AM

23
#49 - RobertT / @techrt2050

07/10/2013 at 10:13AM

23
#50 - cj / @cj01101

08/08/2013 at 07:42PM

23
#51 - NuM / @NuM314

10/05/2013 at 10:56PM

23
#52 - Casey Dwyer / @caseydwyer

11/04/2013 at 09:23PM

23
#53 - POSIX / @po6ix

01/22/2022 at 02:59PM

23
#54 - Giacomo Sansone / @pcineverdies

07/10/2024 at 03:35PM

24
#55 - Renรฉ Scheibe / @renescheibe

03/08/2013 at 03:41PM

24
#56 - Bailey Ling / @blingcoder

03/09/2013 at 04:08AM

24
#57 - Nicolaas du Preez / @N_du_P

04/07/2013 at 07:08PM

24
#58 - lubyk / @lubyk_

05/21/2013 at 04:52PM

24
#59 - James / @Dronak

09/12/2013 at 08:09PM

24
#60 - brett / @brettyukich

09/21/2013 at 10:52PM