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):
20
#91 - 大矢元海 / @008Genkai

01/04/2021 at 05:37PM

20
#92 - Nicolas Pagny / @NicolasPagny

01/05/2021 at 03:19PM

20
#93 - A A A / @37fatos

01/07/2021 at 01:26AM

20
#94 - Duncan / @Duncan31503119

01/08/2021 at 01:06AM

20
#95 - Ding Liu / @Nimrod0901

01/10/2021 at 07:05PM

20
#96 - soppeldynga / @soppeldynga

01/11/2021 at 09:29PM

20
#97 - knobbelkesvlaai / @knobbelkesvlaai

01/13/2021 at 12:03PM

20
#98 - 김범준 / @kmbmjn

01/14/2021 at 06:27AM

20
#99 - Marion Oldman / @ThatBigCock

01/16/2021 at 09:10PM

20
#100 - tylertucker202 / @tylertucker202

01/20/2021 at 03:10AM

20
#101 - Andreas Siegrist / @andreaszwei

01/20/2021 at 10:09AM

20
#102 - Vedant Neema / @NeemaVedant

05/18/2021 at 02:26PM

20
#103 - Michael / @Michael62785035

05/26/2021 at 03:08PM

20
#104 - Arya Kumar / @SusSquirrel

05/27/2021 at 11:09PM

21
#105 - Derek Schrock / @derekschrock

07/16/2020 at 02:50PM

21
#106 - Bob / @Bob75461026

07/17/2020 at 04:08PM

21
#107 - LCY / @Chooneh

07/18/2020 at 06:49AM

21
#108 - vito / @vito49999722

07/19/2020 at 09:30AM

21
#109 - eshel / @EshelBM

07/24/2020 at 10:52AM

21
#110 - Bitt Faulk / @bittfaulk

07/24/2020 at 06:38PM

21
#111 - Xaver Fleer / @XaverFleer

07/28/2020 at 03:13PM

21
#112 - Ebi / @ehan6

08/01/2020 at 01:53PM

21
#113 - David Martínez / @g0ddrinksjava

08/07/2020 at 07:49PM

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

08/17/2020 at 08:32AM

21
#115 - Nick Edwards / @edwardsnjd

09/07/2020 at 04:22PM

21
#116 - mevmev / @mevmev8

09/13/2020 at 02:06PM

21
#117 - Алексей Ковалев / @FrostMephi

09/24/2020 at 08:46PM

21
#118 - Brad Hubbard / @BradHubbard19

10/06/2020 at 06:02AM

21
#119 - lamtt77 / @lamtt77

10/07/2020 at 09:40AM

21
#120 - chocolate / @chocola81394123

10/23/2020 at 07:06AM