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):
26
#151 - Pepe / @PedroVassena

09/08/2020 at 06:41AM

26
#152 - JP / @JP16366170

09/08/2020 at 10:57AM

26
#153 - BryanYan / @BryanGoesPlaces

09/29/2020 at 04:19PM

26
#154 - Arijus / @argshook

10/16/2020 at 01:23PM

26
#155 - Gytis Vinclovas / @GytisVinclovas

10/16/2020 at 01:31PM

27
#156 - Joren Van Hee / @jorenvanhee

07/16/2020 at 02:52PM

27
#157 - Seve / @Seve_py

07/16/2020 at 04:43PM

27
#158 - Fabien C. / @vaga_io

07/17/2020 at 09:33AM

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

07/21/2020 at 11:33AM

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

07/22/2020 at 09:09AM

27
#161 - Matty / @_bigaku

07/25/2020 at 08:06PM

27
#162 - Arne Winter / @ArneWinter5

08/02/2020 at 01:01PM

27
#163 - haipeng li / @HaipengLie

08/02/2020 at 02:11PM

27
#164 - Max Minaev / @max_minaev11

08/04/2020 at 09:07AM

27
#165 - mindgitrwx / @mindgitrwx

08/09/2020 at 01:50PM

27
#166 - Luis Rodriguez / @luisthecoder

08/20/2020 at 11:31AM

27
#167 - TheSemicolon / @the_semicolon_

09/09/2020 at 09:03AM

27
#168 - Alexander Flick / @alexflick

10/02/2020 at 04:05AM

27
#169 - The Valencian Dev / @thevalenciandev

10/12/2020 at 09:25AM

27
#170 - dragonofdeath / @dragonofdeath8

10/16/2020 at 01:27PM

27
#171 - Mike Harris / @MikeMJHarris

10/16/2020 at 04:33PM

27
#172 - roy twt / @roytwt1

10/18/2020 at 12:38PM

27
#173 - __VimGolfer__ / @VimGolfer19

11/30/2020 at 06:06PM

28
#174 - Jonathan / @jonathannerat

07/17/2020 at 01:56PM

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

07/19/2020 at 10:52AM

28
#176 - Emil Vatai / @vatai

07/19/2020 at 03:19PM

28
#177 - Hristo Mitev / @harasioto_minto

07/24/2020 at 09:28AM

28
#178 - drGsus / @drGsus

07/24/2020 at 04:43PM

28
#179 - Juan Manuel Fresia / @fresiajm

07/27/2020 at 03:05AM

28
#180 - Jason Zhang / @jiamingz721

07/28/2020 at 05:39PM