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 5f1063aa8361810006e73210

Satisfy the go linter

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

Start file
package vars

var (
	Version string
	Debug bool
)
End file
package vars

var (
	// Version TODO
	Version string
	// Debug TODO
	Debug bool
)

View Diff

3a4
> 	// Version TODO
4a6
> 	// Debug TODO

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 103 remaining solutions by signing in and submitting your own entry
#104 Anil Narayan / @AnilNarayan2013 - Score: 62 - 08/07/20 @ 04:12
:g/Ve/norm O//Vd<BS><BS> Version TODO<CR>:g/De/norm O// Debug TODO<CR>:wq<CR>

0 comments


Created by: @__dadav__

104 active golfers, 499 entries

Leaderboard (lowest score wins):
20
#1 - Jon Krause / @jkrause314

07/16/2020 at 03:34PM

20
#2 - Daniel Steinberg / @dstein64

07/16/2020 at 03:41PM

20
#3 - analogpixel / @analogp1xel

07/17/2020 at 02:06AM

20
#4 - Smylers / @Smylers2

07/17/2020 at 08:08AM

20
#5 - garry quested / @GQuested

07/17/2020 at 10:51AM

20
#6 - Norbert / @mullno

07/17/2020 at 08:10PM

20
#7 - Tinko Minko / @tandikula

07/17/2020 at 09:10PM

20
#8 - せいほう / @FICSQF

07/18/2020 at 01:56AM

20
#9 - Duggan / @CallMeDuggan

07/18/2020 at 02:06AM

20
#10 - speisz / @speiszc

07/18/2020 at 10:25PM

20
#11 - Michael / @thscuriousquest

07/19/2020 at 05:50PM

20
#12 - Delon / @delonleonard

07/20/2020 at 01:17AM

20
#13 - PK / @pkeugine

07/20/2020 at 03:07AM

20
#14 - Ravi S Sinha / @ambidextrousTx

07/21/2020 at 01:27AM

20
#15 - Ángel Durán / @AngeeelD

07/21/2020 at 03:29PM

20
#16 - John Braxler / @braxler

07/21/2020 at 05:42PM

20
#17 - Jason / @jason_eveleth

07/23/2020 at 06:13AM

20
#18 - Виталий Макаров / @avada_keda_bra

07/24/2020 at 01:36PM

20
#19 - Tiago Nascimento / @tigum27

07/25/2020 at 02:00AM

20
#20 - RockerZZY / @rocker_zzy

07/25/2020 at 05:10AM

20
#21 - Kim Bäckström / @Norttiiii

07/25/2020 at 07:51AM

20
#22 - Kurtis D. Miller / @phdkurt

07/26/2020 at 12:04AM

20
#23 - MathijsHoogland / @MathijsHoogland

07/26/2020 at 08:32AM

20
#24 - Petro Тrouq / @zulolosi

07/26/2020 at 06:31PM

20
#25 - Jonáš Šerých / @serycjon

07/26/2020 at 10:14PM

20
#26 - Steve Frost / @FrostSteveFrost

07/27/2020 at 03:58AM

20
#27 - Sina Siadat / @sinasiadat

07/30/2020 at 02:00PM

20
#28 - Miłosz Łakomy / @foobar01123

07/31/2020 at 12:34PM

20
#29 - ぼとぼと / @boto_voto

08/02/2020 at 09:37AM

20
#30 - pspencil / @pspencil

08/02/2020 at 12:25PM