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):
21
#121 - Bitt Faulk / @bittfaulk

07/24/2020 at 06:38PM

21
#122 - Xaver Fleer / @XaverFleer

07/28/2020 at 03:13PM

21
#123 - Ebi / @ehan6

08/01/2020 at 01:53PM

21
#124 - David Martínez / @g0ddrinksjava

08/07/2020 at 07:49PM

21
#125 - Андрей / @appomsk

08/17/2020 at 08:32AM

21
#126 - Nick Edwards / @edwardsnjd

09/07/2020 at 04:22PM

21
#127 - mevmev / @mevmev8

09/13/2020 at 02:06PM

21
#128 - Алексей Ковалев / @FrostMephi

09/24/2020 at 08:46PM

21
#129 - Brad Hubbard / @BradHubbard19

10/06/2020 at 06:02AM

21
#130 - lamtt77 / @lamtt77

10/07/2020 at 09:40AM

21
#131 - chocolate / @chocola81394123

10/23/2020 at 07:06AM

21
#132 - FrolPaderin / @FPaderin

11/08/2020 at 02:10PM

21
#133 - Michał / @Micha46184564

11/15/2020 at 07:16PM

21
#134 - Björn Struckmeier / @BjrnStruckmeie1

01/03/2021 at 12:38PM

21
#135 - François Marais / @maraisf

05/18/2021 at 11:29AM

21
#136 - Georg Bökman / @BokmanGeorg

07/03/2021 at 09:36PM

21
#137 - Michel Viktor / @tomkpz

08/08/2021 at 09:45PM

21
#138 - 박세영 / @bagseyeong10

11/26/2021 at 08:20AM

21
#139 - 박기창 / @baggichang3

12/02/2021 at 11:25AM

22
#140 - Yannick / @Yannick88147038

07/16/2020 at 06:39PM

22
#141 - Saki Gw / @Sakigw

07/17/2020 at 07:48AM

22
#142 - Richard Lowe / @b0ggyb33

07/17/2020 at 02:06PM

22
#143 - Saurabh / @Saurabh09299

07/19/2020 at 01:20PM

22
#144 - knub / @LauraToric

07/25/2020 at 12:17PM

22
#145 - Norman Liu / @normanwliu

07/25/2020 at 10:19PM

22
#146 - GenericHardwareGamer / @GnrikHrdwrGamer

08/04/2020 at 08:59AM

22
#147 - Epecb / @BceEpecb

09/24/2020 at 10:00PM

22
#148 - genoskill / @Genoskill

09/26/2020 at 12:23AM

22
#149 - I made a video game ✨ / @startresse

10/07/2020 at 07:59PM

23
#150 - matteo / @matteo55169132

07/20/2020 at 12:15AM