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 184 remaining solutions by signing in and submitting your own entry
#185 Anil Narayan / @AnilNarayan2013 - Score: 62 - 08/07/20 @ 04:12
:g/Ve/norm O//Vd<BS><BS> Version TODO<CR>:g/De/norm O// Debug TODO<CR>:wq<CR>

0 comments


Created by: @__dadav__

185 active golfers, 861 entries

Leaderboard (lowest score wins):
24
#91 - Andy Yang / @yzwdroid

07/24/2020 at 03:45AM

24
#92 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/26/2020 at 10:57AM

24
#93 - Nicolas Marier / @NicMarier

08/07/2020 at 12:01AM

24
#94 - santrupta mishra / @talkedgrain8

08/15/2020 at 03:03PM

24
#95 - Josh Kermond / @Kermond

08/21/2020 at 05:29AM

24
#96 - s3cy / @s3cyxx

08/23/2020 at 11:28AM

24
#97 - Marcio M Pereira / @iviarcio

08/23/2020 at 06:17PM

24
#98 - Anton Kriese / @AntonKriese

09/10/2020 at 07:18AM

25
#99 - Edgar Domingues / @edgar_domingues

07/23/2020 at 10:41AM

25
#100 - PoodleSkirt / @PoodleSkirt2

07/23/2020 at 08:14PM

25
#101 - TimMcGuire / @mcguire

07/25/2020 at 01:06AM

25
#102 - Olle Wiklund / @Kabix

07/30/2020 at 11:36AM

25
#103 - Владек / @escept1c

08/12/2020 at 02:21AM

25
#104 - knoebber / @knoebber1

08/21/2020 at 05:22PM

25
#105 - Nick Kirkby / @driftregion

08/28/2020 at 01:50AM

25
#106 - Robert Verst / @r_verst

09/01/2020 at 12:41PM

25
#107 - Sebastian W. / @Sebasti91439242

09/01/2020 at 06:28PM

25
#108 - Luc Kien Hang / @luckienhang

09/03/2020 at 07:40PM

25
#109 - Blipss / @BlipSound

09/11/2020 at 02:28PM

25
#110 - Sean Dewar / @seandewar

09/18/2020 at 08:57PM

25
#111 - stanley förster / @stnlyfrstr

09/23/2020 at 07:48AM

26
#112 - Sam Houston / @shouston33

07/29/2020 at 09:53PM

26
#113 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 09:03AM

26
#114 - Ryan / @ryan_lardinois

09/06/2020 at 11:54PM

26
#115 - Pepe / @PedroVassena

09/08/2020 at 06:41AM

26
#116 - JP / @JP16366170

09/08/2020 at 10:57AM

27
#117 - Joren Van Hee / @jorenvanhee

07/16/2020 at 02:52PM

27
#118 - Seve / @Seve_py

07/16/2020 at 04:43PM

27
#119 - Fabien C. / @vaga_io

07/17/2020 at 09:33AM

27
#120 - Ron-Shan,Chang / @highlupin

07/21/2020 at 11:33AM