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 by @wangyouming1209:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @__dadav__

405 active golfers, 2013 entries

Solutions by @wangyouming1209:
20
#50 - 王有铭 / @wangyouming1209

09/03/2020 at 04:20AM

20
#>50 - 王有铭 / @wangyouming1209

09/03/2020 at 04:25AM

21
#>152 - 王有铭 / @wangyouming1209

09/03/2020 at 04:18AM

21
#>152 - 王有铭 / @wangyouming1209

09/03/2020 at 04:19AM

23
#>184 - 王有铭 / @wangyouming1209

09/03/2020 at 04:15AM

23
#>184 - 王有铭 / @wangyouming1209

09/03/2020 at 04:17AM

24
#>205 - 王有铭 / @wangyouming1209

09/03/2020 at 04:14AM

25
#>224 - 王有铭 / @wangyouming1209

09/03/2020 at 04:06AM

26
#>241 - 王有铭 / @wangyouming1209

09/03/2020 at 03:55AM

26
#>241 - 王有铭 / @wangyouming1209

09/03/2020 at 03:58AM