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):
35
#271 - Muradil / @Muradil71938308

10/21/2020 at 03:16PM

35
#272 - Laura Skillington / @lauraskills1

12/10/2020 at 09:25PM

35
#273 - bladehaze / @bladehaze

12/24/2020 at 07:35AM

35
#274 - Nikita Evdokimov / @EvdokimovN

05/13/2021 at 04:45PM

36
#275 - William Ott / @oddalot

07/16/2020 at 07:04PM

36
#276 - JL T / @l0f4r0

07/19/2020 at 12:54PM

36
#277 - Doemae / @Doemae02

08/24/2020 at 03:03PM

36
#278 - Christophe Robillard / @krichtof

08/24/2020 at 08:19PM

36
#279 - " / @bluugs

09/26/2020 at 09:23AM

37
#280 - Charles Liu / @aaronbalakey

07/25/2020 at 05:51AM

37
#281 - Christ / @Christ46234422

09/05/2020 at 09:25PM

37
#282 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 11:20AM

38
#283 - Ryan Brewer / @ryanbrwr

07/17/2020 at 03:23AM

38
#284 - abhijeet patil / @abhijeetptl5

09/02/2020 at 06:04PM

38
#285 - MV / @MV13499885

09/19/2020 at 08:09PM

38
#286 - vimgolferfield / @vimgolferfield

10/20/2020 at 12:14PM

39
#287 - binayak tiwari / @bintiw

08/03/2020 at 12:49AM

39
#288 - Christopher Oosthuizen / @ChristopherOos8

11/04/2020 at 03:03PM

39
#289 - guidoguidoguido / @un_nome_stupido

04/28/2021 at 11:15AM

40
#290 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 08:43AM

40
#291 - gchain / @gchain7

08/21/2020 at 03:34PM

41
#292 - Josivan Joestar πŸ‡ΊπŸ‡³πŸŒŽπŸš€ / @MedeirosJosivan

07/21/2020 at 05:32PM

41
#293 - Just Alerik / @Just_Alerik

09/18/2020 at 03:25AM

42
#294 - brianhotopp / @brianhotopp

07/20/2020 at 11:36PM

42
#295 - Kaustubh Murumkar / @k_austub_h

09/21/2020 at 02:23PM

42
#296 - kontonavn / @kontonavn2

01/16/2021 at 11:17PM

43
#297 - Kevin Linnane / @linnanekevin07

12/30/2020 at 11:09PM

44
#298 - Graic / @Griac628

07/24/2020 at 06:41AM

44
#299 - Ben Wainwright / @benwainwrightuk

09/26/2020 at 01:55PM

44
#300 - Leo sunil / @tomyail

12/07/2020 at 06:07AM