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 59e19a18396b000053000013

Converting group lines from format A to Format B

Convert from one format to another

Start file
ABCDEFGHIJKL        00100     C                    N12345678W1234567891234       GND   99999MMY LITTLE TEST                000000000
ABCDEFGHIJKL        00100     H N12345678W123456789                              GND   99999MANOTHER LITTLE TEST           000000000
ABCDEFGHIJKL        00200     L N12345678W123456789N12345678W12345678912341234                                             000000000
ABCDEFGHIJKL        00300     G N12345678W123456789
End file
0010|C|||N12345678|W123456789|123.4
0010|H|N12345678|W123456789||
0020|L|N12345678|W123456789|N12345678|W123456789|123.4|123.4
0030|G|N12345678|W123456789||

View Diff

1,4c1,4
< ABCDEFGHIJKL        00100     C                    N12345678W1234567891234       GND   99999MMY LITTLE TEST                000000000
< ABCDEFGHIJKL        00100     H N12345678W123456789                              GND   99999MANOTHER LITTLE TEST           000000000
< ABCDEFGHIJKL        00200     L N12345678W123456789N12345678W12345678912341234                                             000000000
< ABCDEFGHIJKL        00300     G N12345678W123456789
---
> 0010|C|||N12345678|W123456789|123.4
> 0010|H|N12345678|W123456789||
> 0020|L|N12345678|W123456789|N12345678|W123456789|123.4|123.4
> 0030|G|N12345678|W123456789||
\ No newline at end of file

Solutions by @BradleySmall:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @charlieoconor

12 active golfers, 27 entries

Solutions by @BradleySmall:
84
#11 - Bradley M. Small / @BradleySmall

11/22/2017 at 07:21PM