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):
24
#121 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/26/2020 at 10:57AM

24
#122 - Nicolas Marier / @NicMarier

08/07/2020 at 12:01AM

24
#123 - santrupta mishra / @talkedgrain8

08/15/2020 at 03:03PM

24
#124 - Josh Kermond / @Kermond

08/21/2020 at 05:29AM

24
#125 - s3cy / @s3cyxx

08/23/2020 at 11:28AM

24
#126 - Marcio M Pereira / @iviarcio

08/23/2020 at 06:17PM

24
#127 - Anton Kriese / @AntonKriese

09/10/2020 at 07:18AM

24
#128 - Alex Watson / @AlexDewiWatson

12/01/2020 at 03:00PM

25
#129 - Edgar Domingues / @edgar_domingues

07/23/2020 at 10:41AM

25
#130 - PoodleSkirt / @PoodleSkirt2

07/23/2020 at 08:14PM

25
#131 - TimMcGuire / @mcguire

07/25/2020 at 01:06AM

25
#132 - Olle Wiklund / @Kabix

07/30/2020 at 11:36AM

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

08/12/2020 at 02:21AM

25
#134 - knoebber / @knoebber1

08/21/2020 at 05:22PM

25
#135 - Nick Kirkby / @driftregion

08/28/2020 at 01:50AM

25
#136 - Robert Verst / @r_verst

09/01/2020 at 12:41PM

25
#137 - Sebastian W. / @Sebasti91439242

09/01/2020 at 06:28PM

25
#138 - Luc Kien Hang / @luckienhang

09/03/2020 at 07:40PM

25
#139 - Blipss / @BlipSound

09/11/2020 at 02:28PM

25
#140 - Sean Dewar / @seandewar

09/18/2020 at 08:57PM

25
#141 - stanley förster / @stnlyfrstr

09/23/2020 at 07:48AM

25
#142 - Alice / @Alice92541388

09/28/2020 at 06:13PM

25
#143 - Viktor Styrud / @ViktorStyrud

09/29/2020 at 10:19AM

25
#144 - mstronam / @mstronam

09/30/2020 at 05:01PM

25
#145 - Paul Inc / @hiniol1982

10/04/2020 at 06:02PM

25
#146 - Der Natsch / @dernatsch

10/06/2020 at 10:02PM

25
#147 - whale / @Hari84444713

11/14/2020 at 12:18AM

26
#148 - Sam Houston / @shouston33

07/29/2020 at 09:53PM

26
#149 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 09:03AM

26
#150 - Ryan / @ryan_lardinois

09/06/2020 at 11:54PM