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

314 active golfers, 1519 entries

Leaderboard (lowest score wins):
21
#121 - FrolPaderin / @FPaderin

11/08/2020 at 02:10PM

21
#122 - Michał / @Micha46184564

11/15/2020 at 07:16PM

21
#123 - Björn Struckmeier / @BjrnStruckmeie1

01/03/2021 at 12:38PM

21
#124 - François Marais / @maraisf

05/18/2021 at 11:29AM

22
#125 - Yannick / @Yannick88147038

07/16/2020 at 06:39PM

22
#126 - Saki Gw / @Sakigw

07/17/2020 at 07:48AM

22
#127 - Richard Lowe / @b0ggyb33

07/17/2020 at 02:06PM

22
#128 - Saurabh / @Saurabh09299

07/19/2020 at 01:20PM

22
#129 - knub / @LauraToric

07/25/2020 at 12:17PM

22
#130 - Norman Liu / @normanwliu

07/25/2020 at 10:19PM

22
#131 - GenericHardwareGamer / @GnrikHrdwrGamer

08/04/2020 at 08:59AM

22
#132 - Epecb / @BceEpecb

09/24/2020 at 10:00PM

22
#133 - genoskill / @Genoskill

09/26/2020 at 12:23AM

22
#134 - I made a video game ✨ / @startresse

10/07/2020 at 07:59PM

23
#135 - matteo / @matteo55169132

07/20/2020 at 12:15AM

23
#136 - Gergely Risko / @errge

07/28/2020 at 07:55PM

23
#137 - Fergus Longley / @FergusLongley

08/03/2020 at 10:53AM

23
#138 - Vinícius Hoyer / @viniciushoyer

08/28/2020 at 02:50PM

23
#139 - wilsonept / @wilsonept1

10/24/2020 at 06:50PM

23
#140 - Zack Freedman / @freedman_zack

11/08/2020 at 03:09PM

23
#141 - John Doe / @JohnDoe75830353

12/21/2020 at 08:23PM

24
#142 - dadav 🥀 / @__dadav__

07/16/2020 at 02:29PM

24
#143 - José / @AngelGaldamez

07/19/2020 at 02:14AM

24
#144 - Leandro Lourenci / @lourenci

07/19/2020 at 11:48PM

24
#145 - Sergey Averkiev / @ExAnimoso

07/23/2020 at 02:03PM

24
#146 - Daniel Habib / @danielhvs

07/23/2020 at 10:24PM

24
#147 - Andy Yang / @yzwdroid

07/24/2020 at 03:45AM

24
#148 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/26/2020 at 10:57AM

24
#149 - Nicolas Marier / @NicMarier

08/07/2020 at 12:01AM

24
#150 - santrupta mishra / @talkedgrain8

08/15/2020 at 03:03PM