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 313 remaining solutions by signing in and submitting your own entry
#314 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__

314 active golfers, 1519 entries

Leaderboard (lowest score wins):
45
#301 - Dane / @studdugie

07/27/2020 at 06:32PM

45
#302 - ZackBurtAWS / @ZackBurtSDE

09/22/2020 at 03:13PM

45
#303 - LJ / @LiterallyJohnny

12/12/2020 at 06:49PM

46
#304 - 伟哥 / @w15659018558

09/15/2020 at 08:22AM

48
#305 - moh ayaya / @AyayaMoh

10/31/2020 at 10:12PM

48
#306 - vesa / @XingfDu

01/14/2021 at 06:22AM

50
#307 - 莊秉澂 / @cYZAfEdeAPRsh7G

09/20/2020 at 06:47AM

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

10/03/2020 at 01:16PM

55
#309 - pong / @mr_pongpong

12/28/2020 at 02:10PM

56
#310 - Chinmay Dalal / @p00fd

08/14/2020 at 04:10PM

57
#311 - Nitesh Rijhwani / @NitzRijhwani

01/05/2021 at 03:48PM

58
#312 - 深窓の令嬢@百合厨 / @arbino1031

03/20/2021 at 06:13AM

62
#313 - Anil Narayan / @AnilNarayan2013

08/07/2020 at 04:12AM

63
#314 - Diven Young / @YoungDiven

10/26/2020 at 07:56AM