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

299 active golfers, 1460 entries

Leaderboard (lowest score wins):
38
#271 - abhijeet patil / @abhijeetptl5

09/02/2020 at 06:04PM

38
#272 - MV / @MV13499885

09/19/2020 at 08:09PM

38
#273 - vimgolferfield / @vimgolferfield

10/20/2020 at 12:14PM

39
#274 - binayak tiwari / @bintiw

08/03/2020 at 12:49AM

39
#275 - Christopher Oosthuizen / @ChristopherOos8

11/04/2020 at 03:03PM

40
#276 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 08:43AM

40
#277 - gchain / @gchain7

08/21/2020 at 03:34PM

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

07/21/2020 at 05:32PM

41
#279 - Just Alerik / @Just_Alerik

09/18/2020 at 03:25AM

42
#280 - brianhotopp / @brianhotopp

07/20/2020 at 11:36PM

42
#281 - Kaustubh Murumkar / @k_austub_h

09/21/2020 at 02:23PM

42
#282 - kontonavn / @kontonavn2

01/16/2021 at 11:17PM

43
#283 - Kevin Linnane / @linnanekevin07

12/30/2020 at 11:09PM

44
#284 - Graic / @Griac628

07/24/2020 at 06:41AM

44
#285 - Ben Wainwright / @benwainwrightuk

09/26/2020 at 01:55PM

44
#286 - Leo sunil / @tomyail

12/07/2020 at 06:07AM

45
#287 - Dane / @studdugie

07/27/2020 at 06:32PM

45
#288 - ZackBurtAWS / @ZackBurtSDE

09/22/2020 at 03:13PM

45
#289 - LJ / @LiterallyJohnny

12/12/2020 at 06:49PM

46
#290 - 伟ε“₯ / @w15659018558

09/15/2020 at 08:22AM

48
#291 - moh ayaya / @AyayaMoh

10/31/2020 at 10:12PM

48
#292 - vesa / @XingfDu

01/14/2021 at 06:22AM

50
#293 - θŽŠη§‰ζΎ‚ / @cYZAfEdeAPRsh7G

09/20/2020 at 06:47AM

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

10/03/2020 at 01:16PM

55
#295 - pong / @mr_pongpong

12/28/2020 at 02:10PM

56
#296 - Chinmay Dalal / @p00fd

08/14/2020 at 04:10PM

57
#297 - Nitesh Rijhwani / @NitzRijhwani

01/05/2021 at 03:48PM

62
#298 - Anil Narayan / @AnilNarayan2013

08/07/2020 at 04:12AM

63
#299 - Diven Young / @YoungDiven

10/26/2020 at 07:56AM