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 5853f052854f48716101cc70

replace 2nd column blanks with values in same column if blank

Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.

Start file
TEST,SOMELOG
TESA,SOMELOGA
TESB
TESC
TESD,SOMELOGB
TESE
TESF
TESG,SOMELOGC
End file
TEST,SOMELOG
TESA,SOMELOGA
TESB,SOMELOGB
TESC,SOMELOGB
TESD,SOMELOGB
TESE,SOMELOGC
TESF,SOMELOGC
TESG,SOMELOGC

View Diff

3,4c3,4
< TESB
< TESC
---
> TESB,SOMELOGB
> TESC,SOMELOGB
6,7c6,7
< TESE
< TESF
---
> TESE,SOMELOGC
> TESF,SOMELOGC

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 65 remaining solutions by signing in and submitting your own entry
#66 Stop and think / @ms_uncountable - Score: 26 - 07/06/17 @ 12:30
5Gf,vfBykpkp8Gf,vfCykpkpZZ

0 comments


#67 Gurukandhamoorthi / @Gurukandhamoor1 - Score: 26 - 07/11/17 @ 14:27
5Gf,y$3Gpu$pjpjjpjprCkrCZZ

0 comments


#68 Jurica / @Jurica34581259 - Score: 26 - 11/20/18 @ 22:50
qa/TES.$<CR>$ma/,<CR>y$`apq4@aZZ

0 comments


Created by: @voyeg3r

68 active golfers, 199 entries

Leaderboard (lowest score wins):
20
#61 - Carl Egbert / @CarlOEgbert

06/14/2017 at 02:51AM

20
#62 - Bradley M. Small / @BradleySmall

11/23/2017 at 01:40AM

21
#63 - Douglas Roper / @dougdroper

12/16/2016 at 02:34PM

23
#64 - Jake Askeland / @JakeAskeland

01/16/2017 at 06:45AM

24
#65 - Steve Chernyak / @MrRothstein

12/18/2016 at 04:10PM

26
#66 - Stop and think / @ms_uncountable

07/06/2017 at 12:30PM

26
#67 - Gurukandhamoorthi / @Gurukandhamoor1

07/11/2017 at 02:27PM

26
#68 - Jurica / @Jurica34581259

11/20/2018 at 10:50PM