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

0 comments


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

0 comments


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

0 comments


Created by: @voyeg3r

83 active golfers, 242 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 - we’re going to need a bigger bot / @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

15
#24 - majo senf / @majo_senf

07/05/2019 at 03:40PM

15
#25 - Miłosz Łakomy / @foobar01123

03/17/2020 at 10:39PM

15
#26 - RockerZZY / @rocker_zzy

06/28/2020 at 08:19AM

15
#27 - 김범준 / @kmbmjn

03/10/2021 at 12:01PM

15
#28 - Janzen / @__Coos

10/01/2022 at 11:45AM

15
#29 - Peppa Pig / @PeppaPi95550250

07/02/2024 at 09:34PM

15
#30 - nickGPT / @nickandbro

08/28/2024 at 02:59AM