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):
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

20
#80 - Jacques Donnelly / @Donnll

11/30/2020 at 05:57PM

20
#81 - roudens / @roudens2

12/05/2020 at 04:43AM

20
#82 - James Lowenthal / @JamesAnthonyLow

12/09/2020 at 01:46AM

20
#83 - Ryan Way / @RyanWay16

12/09/2020 at 05:43AM

20
#84 - Dax / @zacoxi

12/09/2020 at 06:35AM

20
#85 - 영훈 / @odjfnrtm

12/21/2020 at 01:55AM

20
#86 - justinhj / @justinhj

12/22/2020 at 03:22AM

20
#87 - Ray Dennis / @raysden

12/22/2020 at 11:29PM

20
#88 - Trong Kha Nguyen / @__ngtrongkha

12/29/2020 at 12:27PM

20
#89 - Jung Yeon Park / @park_jungy

12/30/2020 at 02:16AM

20
#90 - Andac Safa / @SanDForcE94

01/03/2021 at 03:08PM