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 339 remaining solutions by signing in and submitting your own entry
#340 Christopher Williams / @chrstphrsnw - Score: 140 - 12/01/21 @ 22:36
4jkjlyypkkyypki// ii<BS><BS><Esc>hhvlyjjPi <BS>ii<BS><BS>`<BS><Esc>lli <Esc>kklllllllllcwTODO<Esc><Esc>d<Esc>yWjjbpiW<BS><BS><Del><Del><Del><Del><fd-67> vimgolf put 5f1063aa8361810006e73210<CR><fd-67><Esc>ukjhcwTODOii<BS><BS><Esc><CR>ZZ

0 comments


Created by: @__dadav__

340 active golfers, 1670 entries

Leaderboard (lowest score wins):
33
#271 - Rustem B. / @_rustemb

07/31/2020 at 05:04PM

33
#272 - alrito / @alrito6

09/03/2020 at 06:11AM

33
#273 - versa / @versa51547979

10/16/2020 at 08:34PM

33
#274 - Leander Hendrikx / @leanderhendrikx

11/22/2020 at 10:14AM

33
#275 - Joe Farnsworth / @JoeFarnsworth

06/21/2021 at 10:36PM

34
#276 - John Galt / @JohnGalt24

07/21/2020 at 02:09PM

34
#277 - Jose / @Esnaque

07/28/2020 at 03:41PM

34
#278 - Seth Y / @RealNancyReagan

08/22/2020 at 02:14PM

34
#279 - Lawrence Long / @lawrenceylong

08/23/2020 at 05:18AM

34
#280 - Kleyton Nascimento / @kleytonstn

08/31/2020 at 11:56AM

34
#281 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/15/2020 at 02:33PM

34
#282 - William Burns / @_william_burns

09/30/2020 at 02:23PM

34
#283 - Mickaël Menu / @mickaelmenu

10/24/2020 at 09:36PM

34
#284 - dvorak4tzx / @dvorak4tzx4

12/28/2020 at 05:02PM

34
#285 - Chun Chanjun / @CChanjun

11/19/2021 at 03:37PM

35
#286 - Trevor Hulsman / @trevorhulsman

08/02/2020 at 10:52PM

35
#287 - Thiago Becker 😷 / @beckert

08/03/2020 at 02:15PM

35
#288 - elroylee / @elroylee11

08/22/2020 at 11:26PM

35
#289 - Ali Aslan / @AliAsla95742367

08/25/2020 at 04:56AM

35
#290 - Emil Abraham / @emil1414

09/22/2020 at 08:33PM

35
#291 - Asbjørn Riddervold / @ARiddervold

10/11/2020 at 07:18PM

35
#292 - Ramūnas Musteikis / @RamnasMusteiki1

10/16/2020 at 01:27PM

35
#293 - Muradil / @Muradil71938308

10/21/2020 at 03:16PM

35
#294 - Laura Skillington / @lauraskills1

12/10/2020 at 09:25PM

35
#295 - bladehaze / @bladehaze

12/24/2020 at 07:35AM

35
#296 - Nikita Evdokimov / @EvdokimovN

05/13/2021 at 04:45PM

36
#297 - William Ott / @oddalot

07/16/2020 at 07:04PM

36
#298 - JL T / @l0f4r0

07/19/2020 at 12:54PM

36
#299 - Doemae / @Doemae02

08/24/2020 at 03:03PM

36
#300 - Christophe Robillard / @krichtof

08/24/2020 at 08:19PM