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 343 remaining solutions by signing in and submitting your own entry
#344 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__

344 active golfers, 1704 entries

Leaderboard (lowest score wins):
25
#181 - knoebber / @knoebber1

08/21/2020 at 05:22PM

25
#182 - Nick Kirkby / @driftregion

08/28/2020 at 01:50AM

25
#183 - Robert Verst / @r_verst

09/01/2020 at 12:41PM

25
#184 - Sebastian W. / @Sebasti91439242

09/01/2020 at 06:28PM

25
#185 - Luc Kien Hang / @luckienhang

09/03/2020 at 07:40PM

25
#186 - Blipss / @BlipSound

09/11/2020 at 02:28PM

25
#187 - Sean Dewar / @seandewar

09/18/2020 at 08:57PM

25
#188 - stanley förster / @stnlyfrstr

09/23/2020 at 07:48AM

25
#189 - Alice / @Alice92541388

09/28/2020 at 06:13PM

25
#190 - Viktor Styrud / @ViktorStyrud

09/29/2020 at 10:19AM

25
#191 - mstronam / @mstronam

09/30/2020 at 05:01PM

25
#192 - Paul Inc / @hiniol1982

10/04/2020 at 06:02PM

25
#193 - Der Natsch / @dernatsch

10/06/2020 at 10:02PM

25
#194 - whale / @Hari84444713

11/14/2020 at 12:18AM

25
#195 - angel / @anmaso

12/06/2020 at 09:50PM

25
#196 - pherapont / @pherapont1

12/22/2020 at 11:53AM

25
#197 - zapakh / @zapakh

01/21/2021 at 04:41AM

25
#198 - OtterPy / @OtterPy

01/26/2021 at 05:28PM

26
#199 - Sam Houston / @shouston33

07/29/2020 at 09:53PM

26
#200 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 09:03AM

26
#201 - Ryan / @ryan_lardinois

09/06/2020 at 11:54PM

26
#202 - Pepe / @PedroVassena

09/08/2020 at 06:41AM

26
#203 - JP / @JP16366170

09/08/2020 at 10:57AM

26
#204 - BryanYan / @BryanGoesPlaces

09/29/2020 at 04:19PM

26
#205 - Arijus / @argshook

10/16/2020 at 01:23PM

26
#206 - Gytis Vinclovas / @GytisVinclovas

10/16/2020 at 01:31PM

26
#207 - nd183 / @nd1832

12/04/2020 at 03:18PM

26
#208 - — / @Cenarius

12/07/2020 at 02:18AM

26
#209 - fray bauhaus / @BauhausFray

01/18/2021 at 11:22PM

26
#210 - 야통이 / @gonnanailedit

12/03/2021 at 06:31PM