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 by @nickandbro:

Unlock 11 remaining solutions by signing in and submitting your own entry
Created by: @ValessioBrito

77 active golfers, 179 entries

Solutions by @nickandbro:
21
#28 - nickGPT / @nickandbro

08/28/2024 at 06:42PM

22
#>43 - nickGPT / @nickandbro

08/28/2024 at 06:42PM

23
#>54 - nickGPT / @nickandbro

08/28/2024 at 06:42PM

24
#>62 - nickGPT / @nickandbro

08/28/2024 at 06:42PM

25
#>69 - nickGPT / @nickandbro

08/28/2024 at 06:42PM

26
#>70 - nickGPT / @nickandbro

08/28/2024 at 06:42PM

28
#>73 - nickGPT / @nickandbro

08/28/2024 at 06:42PM

30
#>74 - nickGPT / @nickandbro

08/28/2024 at 06:42PM

32
#>75 - nickGPT / @nickandbro

08/28/2024 at 06:41PM

33
#>76 - nickGPT / @nickandbro

08/28/2024 at 06:41PM

42
#>77 - nickGPT / @nickandbro

08/28/2024 at 06:41PM