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

0 comments


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

0 comments


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

0 comments


Created by: @voyeg3r

63 active golfers, 173 entries

Leaderboard (lowest score wins):
15
#1 - Urtica dioica / @udioica

12/16/2016 at 11:13PM

15
#2 - Saki Gw / @Sakigw

12/17/2016 at 12:01AM

15
#3 - Andrew Huang / @TDAlgory

12/18/2016 at 07:29AM

15
#4 - Christian Guenter / @chris_guenter

12/18/2016 at 12:53PM

15
#5 - Majo / @majodurco

12/18/2016 at 04:24PM

15
#6 - Cody F H / @codyfh

12/18/2016 at 05:16PM

15
#7 - chocolate / @chocola81394123

12/19/2016 at 07:15PM

15
#8 - John Braxler / @braxler

12/19/2016 at 07:16PM

15
#9 - Constantine / @ConstantineHatz

12/19/2016 at 10:25PM

15
#10 - Sergey Fedorov / @Shade30

12/20/2016 at 10:02AM

15
#11 - thejojo87 / @thejojo1987

12/20/2016 at 11:56PM

15
#12 - onedayrex / @onedayzns

12/23/2016 at 08:11AM

15
#13 - さよきみ / @MrIn1121

12/23/2016 at 03:19PM

15
#14 - Smylers / @Smylers2

12/28/2016 at 07:03AM

15
#15 - Remus Dalrymple / @bornintheflames

12/30/2016 at 10:52PM

15
#16 - Marcin / @Marcin89439917

12/30/2016 at 11:03PM

15
#17 - SIGHODL / @AssafLavie

01/01/2017 at 08:00PM

15
#18 - Zhihong Liu / @pieapple03

02/07/2017 at 02:30PM

15
#19 - Alexander Bessonov / @nonsleepr

03/15/2017 at 09:19PM

15
#20 - Ilya Shakirov / @aelaau

03/22/2017 at 09:26AM

15
#21 - 梧桐王子 / @WutongYujie

05/04/2017 at 12:47PM

15
#22 - Turkey Man / @lvturkeyman

11/20/2017 at 04:14PM

15
#23 - DHM / @DHM29978992

04/30/2018 at 02:35AM

16
#24 - Kai Yuan / @kentyuan

12/16/2016 at 04:26PM

16
#25 - retro / @tryphopp

12/19/2016 at 10:17PM

16
#26 - Миша Сорокин / @rafmikovi4

04/10/2017 at 02:09PM

16
#27 - Bill Ruddock / @biinari

05/03/2017 at 09:56PM

17
#28 - Michał Dytko / @DytkoM

12/16/2016 at 02:18PM

17
#29 - Cristian Lupașcu / @clupasq

12/16/2016 at 03:08PM

17
#30 - Aeden Jameson / @daliful

12/17/2016 at 08:02AM