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

339 active golfers, 1669 entries

Leaderboard (lowest score wins):
36
#301 - " / @bluugs

09/26/2020 at 09:23AM

37
#302 - Charles Liu / @aaronbalakey

07/25/2020 at 05:51AM

37
#303 - Christ / @Christ46234422

09/05/2020 at 09:25PM

37
#304 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 11:20AM

37
#305 - Rory Smith / @alan0buchanan

09/13/2021 at 03:53PM

38
#306 - Ryan Brewer / @ryanbrwr

07/17/2020 at 03:23AM

38
#307 - abhijeet patil / @abhijeetptl5

09/02/2020 at 06:04PM

38
#308 - MV / @MV13499885

09/19/2020 at 08:09PM

38
#309 - vimgolferfield / @vimgolferfield

10/20/2020 at 12:14PM

39
#310 - binayak tiwari / @bintiw

08/03/2020 at 12:49AM

39
#311 - Christopher Oosthuizen / @ChristopherOos8

11/04/2020 at 03:03PM

39
#312 - guidoguidoguido / @un_nome_stupido

04/28/2021 at 11:15AM

40
#313 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 08:43AM

40
#314 - gchain / @gchain7

08/21/2020 at 03:34PM

40
#315 - Markus Muschol / @MarkusMuschol

07/13/2021 at 12:46PM

41
#316 - Josivan Joestar πŸ‡ΊπŸ‡³πŸŒŽπŸš€ / @MedeirosJosivan

07/21/2020 at 05:32PM

41
#317 - Just Alerik / @Just_Alerik

09/18/2020 at 03:25AM

41
#318 - Bobik / @Bobik90703384

10/14/2021 at 05:47PM

42
#319 - brianhotopp / @brianhotopp

07/20/2020 at 11:36PM

42
#320 - Kaustubh Murumkar / @k_austub_h

09/21/2020 at 02:23PM

42
#321 - kontonavn / @kontonavn2

01/16/2021 at 11:17PM

43
#322 - Kevin Linnane / @linnanekevin07

12/30/2020 at 11:09PM

44
#323 - Graic / @Griac628

07/24/2020 at 06:41AM

44
#324 - Ben Wainwright / @benwainwrightuk

09/26/2020 at 01:55PM

44
#325 - Leo sunil / @tomyail

12/07/2020 at 06:07AM

45
#326 - Dane / @studdugie

07/27/2020 at 06:32PM

45
#327 - ZackBurtAWS / @ZackBurtSDE

09/22/2020 at 03:13PM

45
#328 - LJ / @LiterallyJohnny

12/12/2020 at 06:49PM

46
#329 - 伟ε“₯ / @w15659018558

09/15/2020 at 08:22AM

48
#330 - moh ayaya / @AyayaMoh

10/31/2020 at 10:12PM