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):
27
#211 - Ron-Shan,Chang / @highlupin

07/21/2020 at 11:33AM

27
#212 - Καράτε Μόνο / @karate_mono

07/22/2020 at 09:09AM

27
#213 - Matty / @_bigaku

07/25/2020 at 08:06PM

27
#214 - Arne Winter / @ArneWinter5

08/02/2020 at 01:01PM

27
#215 - haipeng li / @HaipengLie

08/02/2020 at 02:11PM

27
#216 - Max Minaev / @max_minaev11

08/04/2020 at 09:07AM

27
#217 - mindgitrwx / @mindgitrwx

08/09/2020 at 01:50PM

27
#218 - Luis Rodriguez / @luisthecoder

08/20/2020 at 11:31AM

27
#219 - TheSemicolon / @the_semicolon_

09/09/2020 at 09:03AM

27
#220 - Alexander Flick / @alexflick

10/02/2020 at 04:05AM

27
#221 - The Valencian Dev / @thevalenciandev

10/12/2020 at 09:25AM

27
#222 - dragonofdeath / @dragonofdeath8

10/16/2020 at 01:27PM

27
#223 - Mike Harris / @MikeMJHarris

10/16/2020 at 04:33PM

27
#224 - roy twt / @roytwt1

10/18/2020 at 12:38PM

27
#225 - __VimGolfer__ / @VimGolfer19

11/30/2020 at 06:06PM

27
#226 - Vivian Liang / @vivianpliang

12/15/2020 at 10:09PM

27
#227 - A White Dwarf / @AWhiteDwarf1

06/28/2021 at 06:36PM

28
#228 - Jonathan / @jonathannerat

07/17/2020 at 01:56PM

28
#229 - Иван Сайкин / @saikin_89

07/19/2020 at 10:52AM

28
#230 - Emil Vatai / @vatai

07/19/2020 at 03:19PM

28
#231 - Hristo Mitev / @harasioto_minto

07/24/2020 at 09:28AM

28
#232 - drGsus / @drGsus

07/24/2020 at 04:43PM

28
#233 - Juan Manuel Fresia / @fresiajm

07/27/2020 at 03:05AM

28
#234 - Jason Zhang / @jiamingz721

07/28/2020 at 05:39PM

28
#235 - Martin Bielik / @mabielik

08/06/2020 at 08:18PM

28
#236 - Alexander L. / @Lexol4s

08/11/2020 at 05:44PM

28
#237 - serici / @serici

08/20/2020 at 10:54AM

28
#238 - marco / @helmetk

08/27/2020 at 10:35AM

28
#239 - Muffin / @Muffin91707986

09/03/2020 at 09:26PM

28
#240 - Marc Päpper / @mpaepper

10/10/2020 at 11:55AM