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):
31
#241 - Václav Pernička / @VaclavPernicka

09/05/2020 at 06:06PM

31
#242 - AAbraxas / @AAbraxas1

10/11/2020 at 07:02PM

31
#243 - deedeemeen / @deedeemeen

10/15/2020 at 06:54PM

31
#244 - Yondonjamts / @yondonjamts_g

11/14/2020 at 09:43PM

31
#245 - yxke / @_yxke

01/16/2021 at 01:08AM

31
#246 - Faizan Ansari / @faizan_157

01/31/2021 at 01:53PM

31
#247 - Yttriferous / @YttriferousDev

05/25/2021 at 09:13AM

32
#248 - VQvMoKsy / @QvKsy

07/28/2020 at 04:50PM

32
#249 - fff / @fff51460170

01/13/2021 at 02:47AM

33
#250 - dotvimrc / @dotvimrc1

07/17/2020 at 06:45AM

33
#251 - Rustem B. / @_rustemb

07/31/2020 at 05:04PM

33
#252 - alrito / @alrito6

09/03/2020 at 06:11AM

33
#253 - versa / @versa51547979

10/16/2020 at 08:34PM

33
#254 - Leander Hendrikx / @leanderhendrikx

11/22/2020 at 10:14AM

34
#255 - John Galt / @JohnGalt24

07/21/2020 at 02:09PM

34
#256 - Jose / @Esnaque

07/28/2020 at 03:41PM

34
#257 - Seth Y / @RealNancyReagan

08/22/2020 at 02:14PM

34
#258 - Lawrence Long / @lawrenceylong

08/23/2020 at 05:18AM

34
#259 - Kleyton / @kleytonstn

08/31/2020 at 11:56AM

34
#260 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/15/2020 at 02:33PM

34
#261 - William Burns / @_william_burns

09/30/2020 at 02:23PM

34
#262 - Mickaël Menu / @mickaelmenu

10/24/2020 at 09:36PM

34
#263 - dvorak4tzx / @dvorak4tzx4

12/28/2020 at 05:02PM

35
#264 - Trevor Hulsman / @trevorhulsman

08/02/2020 at 10:52PM

35
#265 - Thiago Becker 😷 / @beckert

08/03/2020 at 02:15PM

35
#266 - elroylee / @elroylee11

08/22/2020 at 11:26PM

35
#267 - Ali Aslan / @AliAsla95742367

08/25/2020 at 04:56AM

35
#268 - Emil Abraham / @emil1414

09/22/2020 at 08:33PM

35
#269 - Asbjørn Riddervold / @ARiddervold

10/11/2020 at 07:18PM

35
#270 - Ramūnas Musteikis / @RamnasMusteiki1

10/16/2020 at 01:27PM