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

253 active golfers, 1202 entries

Leaderboard (lowest score wins):
34
#211 - Lawrence Long / @lawrenceylong

08/23/2020 at 05:18AM

34
#212 - Kleyton / @kleytonstn

08/31/2020 at 11:56AM

34
#213 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/15/2020 at 02:33PM

34
#214 - William Burns / @_william_burns

09/30/2020 at 02:23PM

34
#215 - Mickaël Menu / @mickaelmenu

10/24/2020 at 09:36PM

35
#216 - Trevor Hulsman / @trevorhulsman

08/02/2020 at 10:52PM

35
#217 - Thiago Becker / @beckert

08/03/2020 at 02:15PM

35
#218 - elroylee / @elroylee11

08/22/2020 at 11:26PM

35
#219 - Ali Aslan / @AliAsla95742367

08/25/2020 at 04:56AM

35
#220 - Emil Abraham / @emil1414

09/22/2020 at 08:33PM

35
#221 - Asbjørn Riddervold / @ARiddervold

10/11/2020 at 07:18PM

35
#222 - Ramūnas Musteikis / @RamnasMusteiki1

10/16/2020 at 01:27PM

35
#223 - Muradil / @Muradil71938308

10/21/2020 at 03:16PM

36
#224 - William Ott / @oddalot

07/16/2020 at 07:04PM

36
#225 - JL T / @l0f4r0

07/19/2020 at 12:54PM

36
#226 - Marc8888 / @8888Marc

08/24/2020 at 03:03PM

36
#227 - Christophe Robillard / @krichtof

08/24/2020 at 08:19PM

36
#228 - " / @bluugs

09/26/2020 at 09:23AM

37
#229 - Charles Liu / @aaronbalakey

07/25/2020 at 05:51AM

37
#230 - Christ / @Christ46234422

09/05/2020 at 09:25PM

38
#231 - Ryan Brewer / @ryanbrwr

07/17/2020 at 03:23AM

38
#232 - abhijeet patil / @abhijeetptl5

09/02/2020 at 06:04PM

38
#233 - MV / @MV13499885

09/19/2020 at 08:09PM

38
#234 - vimgolferfield / @vimgolferfield

10/20/2020 at 12:14PM

39
#235 - binayak tiwari / @bintiw

08/03/2020 at 12:49AM

39
#236 - Christopher Oosthuizen / @ChristopherOos8

11/04/2020 at 03:03PM

40
#237 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 08:43AM

40
#238 - gchain / @gchain7

08/21/2020 at 03:34PM

41
#239 - Josivan Joestar 🇺🇳🌎🚀 / @MedeirosJosivan

07/21/2020 at 05:32PM

41
#240 - Just Alerik / @Just_Alerik

09/18/2020 at 03:25AM