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
#91 - 大矢元海 / @008Genkai

01/04/2021 at 05:37PM

20
#92 - Nicolas Pagny / @NicolasPagny

01/05/2021 at 03:19PM

20
#93 - A A A / @37fatos

01/07/2021 at 01:26AM

20
#94 - Duncan / @Duncan31503119

01/08/2021 at 01:06AM

20
#95 - Ding Liu / @Nimrod0901

01/10/2021 at 07:05PM

20
#96 - soppeldynga / @soppeldynga

01/11/2021 at 09:29PM

20
#97 - knobbelkesvlaai / @knobbelkesvlaai

01/13/2021 at 12:03PM

20
#98 - 김범준 / @kmbmjn

01/14/2021 at 06:27AM

20
#99 - Marion Oldman / @ThatBigCock

01/16/2021 at 09:10PM

20
#100 - tylertucker202 / @tylertucker202

01/20/2021 at 03:10AM

20
#101 - Andreas Siegrist / @andreaszwei

01/20/2021 at 10:09AM

20
#102 - Vedant Neema / @NeemaVedant

05/18/2021 at 02:26PM

20
#103 - Michael / @Michael62785035

05/26/2021 at 03:08PM

20
#104 - Arya Kumar / @SusSquirrel

05/27/2021 at 11:09PM

20
#105 - vim_maxter / @MaxterVim

07/03/2021 at 11:12AM

20
#106 - pikjes / @pikjes2

07/14/2021 at 12:58PM

20
#107 - Bspammer / @Bspammer

08/15/2021 at 03:12PM

20
#108 - Roman Privalov / @RomanPrivalov

08/23/2021 at 12:59AM

20
#109 - yu xie / @yuxie21997666

09/15/2021 at 12:48PM

20
#110 - yancy / @yancy_dong

09/17/2021 at 01:44AM

20
#111 - Nick Repetti / @nick_repetti

09/24/2021 at 12:00AM

20
#112 - Scott Berger / @scottberger

09/24/2021 at 03:50PM

20
#113 - migoo / @migoo00668679

11/02/2021 at 03:38AM

20
#114 - Hydrazar / @hydrazar

11/14/2021 at 10:17PM

21
#115 - Derek Schrock / @derekschrock

07/16/2020 at 02:50PM

21
#116 - Bob / @Bob75461026

07/17/2020 at 04:08PM

21
#117 - LCY / @Chooneh

07/18/2020 at 06:49AM

21
#118 - vito / @vito49999722

07/19/2020 at 09:30AM

21
#119 - eshel / @EshelBM

07/24/2020 at 10:52AM

21
#120 - Bitt Faulk / @bittfaulk

07/24/2020 at 06:38PM