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):
26
#61 - Sam Houston / @shouston33

07/29/2020 at 09:53PM

27
#62 - Joren Van Hee / @jorenvanhee

07/16/2020 at 02:52PM

27
#63 - Seve / @__Seve__

07/16/2020 at 04:43PM

27
#64 - Fabien C. / @vaga_io

07/17/2020 at 09:33AM

27
#65 - Ron-Shan,Chang / @highlupin

07/21/2020 at 11:33AM

27
#66 - Καράτε Μόνο / @karate_mono

07/22/2020 at 09:09AM

27
#67 - Matty / @_bigaku

07/25/2020 at 08:06PM

27
#68 - Arne Winter / @ArneWinter5

08/02/2020 at 01:01PM

27
#69 - haipeng li / @HaipengLie

08/02/2020 at 02:11PM

27
#70 - Max Minaev / @max_minaev11

08/04/2020 at 09:07AM

28
#71 - Jonathan / @jonathannerat

07/17/2020 at 01:56PM

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

07/19/2020 at 10:52AM

28
#73 - Emil Vatai / @vatai

07/19/2020 at 03:19PM

28
#74 - Hristo Mitev / @harasioto_minto

07/24/2020 at 09:28AM

28
#75 - drGsus / @drGsus

07/24/2020 at 04:43PM

28
#76 - Juan Manuel Fresia / @fresiajm

07/27/2020 at 03:05AM

28
#77 - Jason Zhang / @jiamingz721

07/28/2020 at 05:39PM

32
#78 - VQvMoKsy / @QvKsy

07/28/2020 at 04:50PM

33
#79 - dotvimrc / @dotvimrc1

07/17/2020 at 06:45AM

33
#80 - Rustem B. / @_rustemb

07/31/2020 at 05:04PM

34
#81 - John Galt / @JohnGalt24

07/21/2020 at 02:09PM

34
#82 - Jose / @Esnaque

07/28/2020 at 03:41PM

35
#83 - Trevor Hulsman / @trevorhulsman

08/02/2020 at 10:52PM

35
#84 - Thiago Becker / @beckert

08/03/2020 at 02:15PM

36
#85 - William Ott / @oddalot

07/16/2020 at 07:04PM

36
#86 - JL T / @l0f4r0

07/19/2020 at 12:54PM

37
#87 - Charles Liu / @aaronbalakey

07/25/2020 at 05:51AM

38
#88 - Ryan Brewer / @ryanbrwr

07/17/2020 at 03:23AM

39
#89 - binayak tiwari / @bintiw

08/03/2020 at 12:49AM

41
#90 - Josivan Joestar 🇺🇳🌎🚀 / @MedeirosJosivan

07/21/2020 at 05:32PM