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

250 active golfers, 1188 entries

Leaderboard (lowest score wins):
20
#61 - Brendan Schaenzer / @bschaenzer

09/29/2020 at 08:57PM

20
#62 - Vildu / @Vildu3

09/30/2020 at 08:19AM

20
#63 - Sébastien Roccaserra / @sroccaserra

10/04/2020 at 09:27AM

20
#64 - Ricardo Lima / @ricponteslima

10/09/2020 at 02:39PM

20
#65 - Hristo Kamenov / @KamenovHristo

10/10/2020 at 02:57PM

20
#66 - DrHobo / @_DrHobo_

10/11/2020 at 04:39PM

20
#67 - Dmitry Antonyuk / @AntonyukDmitry

10/15/2020 at 01:45PM

20
#68 - Ayhon Nickname / @AyhonIron

10/15/2020 at 08:24PM

20
#69 - Markus Aspegren / @Markuso213

10/16/2020 at 07:03PM

20
#70 - Herman Stavelin / @HsBruker

10/19/2020 at 06:59PM

20
#71 - Leland Paul Kusmer / @lelandpaul

10/21/2020 at 02:21AM

20
#72 - Rodrigo Santa Cruz / @rstcruzo

10/24/2020 at 06:48AM

20
#73 - Cornelius Roemer / @CorneliusRoemer

11/05/2020 at 09:36PM

20
#74 - vimspam / @vimspam

11/09/2020 at 04:34AM

20
#75 - quemeraisc / @quemeraisc

11/09/2020 at 09:23AM

20
#76 - David Kutschke / @D4KU_

11/14/2020 at 07:52PM

20
#77 - Hugh / @haquaman

11/25/2020 at 01:14AM

20
#78 - MrRubiksSC / @RubiksSc

11/25/2020 at 08:24PM

20
#79 - hepebexè / @hepebexe

11/25/2020 at 09:53PM

21
#80 - Derek Schrock / @derekschrock

07/16/2020 at 02:50PM

21
#81 - Bob / @Bob75461026

07/17/2020 at 04:08PM

21
#82 - LCY / @Chooneh

07/18/2020 at 06:49AM

21
#83 - vito / @vito49999722

07/19/2020 at 09:30AM

21
#84 - eshel / @EshelBM

07/24/2020 at 10:52AM

21
#85 - Bitt Faulk / @bittfaulk

07/24/2020 at 06:38PM

21
#86 - Xaver Fleer / @XaverFleer

07/28/2020 at 03:13PM

21
#87 - Ebi / @ehan6

08/01/2020 at 01:53PM

21
#88 - David Martínez / @g0ddrinksjava

08/07/2020 at 07:49PM

21
#89 - Андрей / @appomsk

08/17/2020 at 08:32AM

21
#90 - Nick Edwards / @edwardsnjd

09/07/2020 at 04:22PM