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

322 active golfers, 1556 entries

Leaderboard (lowest score wins):
27
#211 - Mike Harris / @MikeMJHarris

10/16/2020 at 04:33PM

27
#212 - roy twt / @roytwt1

10/18/2020 at 12:38PM

27
#213 - __VimGolfer__ / @VimGolfer19

11/30/2020 at 06:06PM

27
#214 - Vivian Liang / @vivianpliang

12/15/2020 at 10:09PM

27
#215 - A White Dwarf / @AWhiteDwarf1

06/28/2021 at 06:36PM

28
#216 - Jonathan / @jonathannerat

07/17/2020 at 01:56PM

28
#217 - Иван Сайкин / @saikin_89

07/19/2020 at 10:52AM

28
#218 - Emil Vatai / @vatai

07/19/2020 at 03:19PM

28
#219 - Hristo Mitev / @harasioto_minto

07/24/2020 at 09:28AM

28
#220 - drGsus / @drGsus

07/24/2020 at 04:43PM

28
#221 - Juan Manuel Fresia / @fresiajm

07/27/2020 at 03:05AM

28
#222 - Jason Zhang / @jiamingz721

07/28/2020 at 05:39PM

28
#223 - Martin Bielik / @mabielik

08/06/2020 at 08:18PM

28
#224 - Alexander L. / @Lexol4s

08/11/2020 at 05:44PM

28
#225 - serici / @serici

08/20/2020 at 10:54AM

28
#226 - marco / @helmetk

08/27/2020 at 10:35AM

28
#227 - Muffin / @Muffin91707986

09/03/2020 at 09:26PM

28
#228 - Marc Päpper / @mpaepper

10/10/2020 at 11:55AM

28
#229 - Jakub Wagner / @Jakub1019

10/22/2020 at 05:36PM

28
#230 - Filipe Barroso 💙 / @ABarroso

10/24/2020 at 05:24PM

28
#231 - Rafal C. / @RafalC37709324

11/13/2020 at 09:10PM

28
#232 - Fabrice BONNET / @FabriceBONNET6

04/29/2021 at 03:51PM

28
#233 - Tuure / @tuure_p

05/19/2021 at 09:52PM

28
#234 - Marcus / @marcusostling94

06/11/2021 at 09:39AM

29
#235 - Muhsin AbdulMohammed / @muhsin____

08/16/2020 at 06:34PM

29
#236 - Theo Sarrazin / @tshaero

08/17/2020 at 05:55PM

29
#237 - Paschalis Economou / @PaschalisEcono1

08/20/2020 at 05:48AM

29
#238 - noxxi / @noooxxi

08/20/2020 at 02:55PM

29
#239 - David / @imdavidhwang

09/04/2020 at 07:32PM

29
#240 - Sergey Yakovlev / @selfuryon

09/25/2020 at 10:59PM