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):
23
#151 - Vinícius Hoyer / @viniciushoyer

08/28/2020 at 02:50PM

23
#152 - wilsonept / @wilsonept1

10/24/2020 at 06:50PM

23
#153 - Zack Freedman / @freedman_zack

11/08/2020 at 03:09PM

23
#154 - John Doe / @JohnDoe75830353

12/21/2020 at 08:23PM

23
#155 - models / @zornificator

06/23/2021 at 10:12AM

23
#156 - vimgolf_vinz / @VimgolfV

09/19/2021 at 09:40AM

24
#157 - dadav 🥀 / @__dadav__

07/16/2020 at 02:29PM

24
#158 - José / @AngelGaldamez

07/19/2020 at 02:14AM

24
#159 - Leandro Lourenci / @lourenci

07/19/2020 at 11:48PM

24
#160 - Sergey Averkiev / @ExAnimoso

07/23/2020 at 02:03PM

24
#161 - Daniel Habib / @danielhvs

07/23/2020 at 10:24PM

24
#162 - Andy Yang / @yzwdroid

07/24/2020 at 03:45AM

24
#163 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/26/2020 at 10:57AM

24
#164 - Nicolas Marier / @NicMarier

08/07/2020 at 12:01AM

24
#165 - santrupta mishra / @talkedgrain8

08/15/2020 at 03:03PM

24
#166 - Josh Kermond / @Kermond

08/21/2020 at 05:29AM

24
#167 - s3cy / @s3cyxx

08/23/2020 at 11:28AM

24
#168 - Marcio M Pereira / @iviarcio

08/23/2020 at 06:17PM

24
#169 - Anton Kriese / @AntonKriese

09/10/2020 at 07:18AM

24
#170 - Alex Watson / @AlexDewiWatson

12/01/2020 at 03:00PM

24
#171 - Thomas Lüdecke / @t0mM3k

01/21/2021 at 12:03PM

24
#172 - Ethan Rietz / @EthanRietz

06/28/2021 at 04:36PM

24
#173 - thari.eth / @thari_eth

11/14/2021 at 12:23PM

25
#174 - Edgar Domingues / @edgar_domingues

07/23/2020 at 10:41AM

25
#175 - PoodleSkirt / @PoodleSkirt2

07/23/2020 at 08:14PM

25
#176 - TimMcGuire / @mcguire

07/25/2020 at 01:06AM

25
#177 - Olle Wiklund / @Kabix

07/30/2020 at 11:36AM

25
#178 - Владек / @escept1c

08/12/2020 at 02:21AM

25
#179 - knoebber / @knoebber1

08/21/2020 at 05:22PM

25
#180 - Nick Kirkby / @driftregion

08/28/2020 at 01:50AM