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 92 remaining solutions by signing in and submitting your own entry
#93 Dane / @studdugie - Score: 45 - 07/27/20 @ 18:32
2jo<Tab>// Version TODOyy<BS><BS><Esc>yy2j^PwcwDebug<Esc>:w<CR>:q<CR>

0 comments


Created by: @__dadav__

93 active golfers, 443 entries

Leaderboard (lowest score wins):
20
#31 - Filipe Brandenburger / @filbranden

08/03/2020 at 04:16PM

21
#32 - Derek Schrock / @derekschrock

07/16/2020 at 02:50PM

21
#33 - Bob / @Bob75461026

07/17/2020 at 04:08PM

21
#34 - LCY / @Chooneh

07/18/2020 at 06:49AM

21
#35 - vito / @vito49999722

07/19/2020 at 09:30AM

21
#36 - eshel / @EshelBM

07/24/2020 at 10:52AM

21
#37 - Bitt Faulk / @bittfaulk

07/24/2020 at 06:38PM

21
#38 - Xaver Fleer / @XaverFleer

07/28/2020 at 03:13PM

21
#39 - Ebi / @ehan6

08/01/2020 at 01:53PM

22
#40 - Yannick / @Yannick88147038

07/16/2020 at 06:39PM

22
#41 - Saki Gw / @Sakigw

07/17/2020 at 07:48AM

22
#42 - Richard Lowe / @b0ggyb33

07/17/2020 at 02:06PM

22
#43 - Saurabh / @Saurabh09299

07/19/2020 at 01:20PM

22
#44 - knub / @LauraToric

07/25/2020 at 12:17PM

22
#45 - Norman Liu / @normanwliu

07/25/2020 at 10:19PM

22
#46 - GenericHardwareGamer / @GnrikHrdwrGamer

08/04/2020 at 08:59AM

23
#47 - matteo / @matteo55169132

07/20/2020 at 12:15AM

23
#48 - Gergely Risko / @errge

07/28/2020 at 07:55PM

23
#49 - Fergus Longley / @FergusLongley

08/03/2020 at 10:53AM

24
#50 - dadav 🥀 / @__dadav__

07/16/2020 at 02:29PM

24
#51 - José / @AngelGaldamez

07/19/2020 at 02:14AM

24
#52 - Leandro Lourenci / @lourenci

07/19/2020 at 11:48PM

24
#53 - Sergey Averkiev / @ExAnimoso

07/23/2020 at 02:03PM

24
#54 - Daniel Habib / @danielhvs

07/23/2020 at 10:24PM

24
#55 - Andy Yang / @yzwdroid

07/24/2020 at 03:45AM

24
#56 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/26/2020 at 10:57AM

25
#57 - Edgar Domingues / @edgar_domingues

07/23/2020 at 10:41AM

25
#58 - PoodleSkirt / @PoodleSkirt2

07/23/2020 at 08:14PM

25
#59 - TimMcGuire / @mcguire

07/25/2020 at 01:06AM

25
#60 - Olle Wiklund / @Kabix

07/30/2020 at 11:36AM