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):
28
#241 - Jakub Wagner / @Jakub1019

10/22/2020 at 05:36PM

28
#242 - Filipe 💙 / @ABarroso

10/24/2020 at 05:24PM

28
#243 - Rafal C. / @RafalC37709324

11/13/2020 at 09:10PM

28
#244 - Fabrice BONNET / @FabriceBONNET6

04/29/2021 at 03:51PM

28
#245 - Tuure / @tuure_p

05/19/2021 at 09:52PM

28
#246 - Marcus / @marcusostling94

06/11/2021 at 09:39AM

28
#247 - Quentin Leroy / @qnleroy

08/22/2021 at 04:59PM

28
#248 - Clint Caudle / @ClintCaudle

08/30/2021 at 03:30AM

29
#249 - Muhsin AbdulMohammed / @muhsin____

08/16/2020 at 06:34PM

29
#250 - Theo Sarrazin / @tshaero

08/17/2020 at 05:55PM

29
#251 - Paschalis Economou / @PaschalisEcono1

08/20/2020 at 05:48AM

29
#252 - noxxi / @noooxxi

08/20/2020 at 02:55PM

29
#253 - David / @imdavidhwang

09/04/2020 at 07:32PM

29
#254 - Sergey Yakovlev / @selfuryon

09/25/2020 at 10:59PM

29
#255 - 蔡徐坤真是爱吃屎 / @Hashub7

01/20/2021 at 12:01PM

29
#256 - m397 / @m39752809546

05/31/2021 at 07:24PM

30
#257 - RaylanFox / @RaylanFox

09/30/2020 at 07:35PM

30
#258 - Demian Martinez / @demianuco

11/01/2020 at 11:29PM

30
#259 - Bharath / @Bharath15952517

12/12/2020 at 07:02PM

30
#260 - Linus Bergman / @LinusBergman8

05/16/2021 at 06:20AM

31
#261 - Václav Pernička / @VaclavPernicka

09/05/2020 at 06:06PM

31
#262 - AAbraxas / @AAbraxas1

10/11/2020 at 07:02PM

31
#263 - deedeemeen / @deedeemeen

10/15/2020 at 06:54PM

31
#264 - Yondonjamts Ganzorig / @yondonjamts_g

11/14/2020 at 09:43PM

31
#265 - yxke / @_yxke

01/16/2021 at 01:08AM

31
#266 - Faizan Ansari / @faizan_157

01/31/2021 at 01:53PM

31
#267 - Yttriferous / @YttriferousDev

05/25/2021 at 09:13AM

32
#268 - VQvMoKsy / @QvKsy

07/28/2020 at 04:50PM

32
#269 - fff / @fff51460170

01/13/2021 at 02:47AM

33
#270 - dotvimrc / @dotvimrc1

07/17/2020 at 06:45AM