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):
28
#181 - Martin Bielik / @mabielik

08/06/2020 at 08:18PM

28
#182 - Alexander L. / @Lexol4s

08/11/2020 at 05:44PM

28
#183 - serici / @serici

08/20/2020 at 10:54AM

28
#184 - marco / @helmetk

08/27/2020 at 10:35AM

28
#185 - Muffin / @Muffin91707986

09/03/2020 at 09:26PM

28
#186 - Marc Päpper / @mpaepper

10/10/2020 at 11:55AM

28
#187 - Jakub Wagner / @Jakub1019

10/22/2020 at 05:36PM

28
#188 - Filipe Barroso 💙 / @ABarroso

10/24/2020 at 05:24PM

28
#189 - Rafal C. / @RafalC37709324

11/13/2020 at 09:10PM

29
#190 - Muhsin AbdulMohammed / @muhsin____

08/16/2020 at 06:34PM

29
#191 - Theo Sarrazin / @tshaero

08/17/2020 at 05:55PM

29
#192 - Paschalis Economou / @PaschalisEcono1

08/20/2020 at 05:48AM

29
#193 - noxxi / @noooxxi

08/20/2020 at 02:55PM

29
#194 - David / @imdavidhwang

09/04/2020 at 07:32PM

29
#195 - Sergey Yakovlev / @selfuryon

09/25/2020 at 10:59PM

30
#196 - RaylanFox / @RaylanFox

09/30/2020 at 07:35PM

30
#197 - Demian Martinez / @demianuco

11/01/2020 at 11:29PM

31
#198 - Václav Pernička / @VaclavPernicka

09/05/2020 at 06:06PM

31
#199 - AAbraxas / @AAbraxas1

10/11/2020 at 07:02PM

31
#200 - deedeemeen / @deedeemeen

10/15/2020 at 06:54PM

31
#201 - Yondonjamts / @yondonjamts_g

11/14/2020 at 09:43PM

32
#202 - VQvMoKsy / @QvKsy

07/28/2020 at 04:50PM

33
#203 - dotvimrc / @dotvimrc1

07/17/2020 at 06:45AM

33
#204 - Rustem B. / @_rustemb

07/31/2020 at 05:04PM

33
#205 - alrito / @alrito6

09/03/2020 at 06:11AM

33
#206 - versa / @versa51547979

10/16/2020 at 08:34PM

33
#207 - Leander Hendrikx / @leanderhendrikx

11/22/2020 at 10:14AM

34
#208 - John Galt / @JohnGalt24

07/21/2020 at 02:09PM

34
#209 - Jose / @Esnaque

07/28/2020 at 03:41PM

34
#210 - Seth Y / @RealNancyReagan

08/22/2020 at 02:14PM