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 249 remaining solutions by signing in and submitting your own entry
#250 Diven Young / @YoungDiven - Score: 63 - 10/26/20 @ 07:56
:g/Ve/norm O// Version TODO<CR><0xef><0xbc><0x9a>:G<BS>g/De/norm O// Debug TODO<CR>:wq<CR>

0 comments


Created by: @__dadav__

250 active golfers, 1188 entries

Leaderboard (lowest score wins):
44
#241 - Ben Wainwright / @benwainwrightuk

09/26/2020 at 01:55PM

45
#242 - Dane / @studdugie

07/27/2020 at 06:32PM

45
#243 - ZackBurtAWS / @ZackBurtSDE

09/22/2020 at 03:13PM

46
#244 - 伟哥 / @w15659018558

09/15/2020 at 08:22AM

48
#245 - moh ayaya / @AyayaMoh

10/31/2020 at 10:12PM

50
#246 - 莊秉澂 / @cYZAfEdeAPRsh7G

09/20/2020 at 06:47AM

50
#247 - just here to scroll. / @idontknow0001

10/03/2020 at 01:16PM

56
#248 - Chinmay Dalal / @p00fd

08/14/2020 at 04:10PM

62
#249 - Anil Narayan / @AnilNarayan2013

08/07/2020 at 04:12AM

63
#250 - Diven Young / @YoungDiven

10/26/2020 at 07:56AM