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 480 remaining solutions by signing in and submitting your own entry
#481 Eric Wennerberg / @ericwenn - Score: 145 - 03/20/22 @ 16:40
:%s\(\s)<Left>\<Right>\(\S*)\S*/<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><Right><Right><Right><Right><Right><Right><Right>\<Right><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>*<Right><Right><Right><Right><Right><Right><Right><Left><Left><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>/<Right><Right><Right><Right><Right><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>$<Left><Left><Left><Left><Left><Left><Left><Right><Right><Right> <Right><Right><Right><Right><Right>\1\/\/ TOD<BS><BS><BS>\2 TODO\r$<BS>\0<CR><Esc>:wq<CR>

0 comments


Created by: @__dadav__

481 active golfers, 2437 entries

Leaderboard (lowest score wins):
20
#151 - Remus Dalrymple / @bornintheflames

12/12/2023 at 07:41AM

20
#152 - EtherFan / @ether_fan

02/25/2024 at 04:32PM

20
#153 - persona-twotwo / @persona-twotwo

04/08/2024 at 04:33AM

20
#154 - 녹법칙 / @Rules_of_Green

04/08/2024 at 10:29AM

20
#155 - HeyJunN / @HeyJunN

04/08/2024 at 01:28PM

20
#156 - Mrochu / @Mrochu

04/11/2024 at 10:55AM

20
#157 - 3.14 / @pi-ratio

04/12/2024 at 03:05AM

20
#158 - 유채운 / @painkiller_2357

04/12/2024 at 03:58PM

20
#159 - qaz2222 / @qaz2222

04/13/2024 at 11:01AM

20
#160 - rkrkrkwk / @rkrkrkwk

04/13/2024 at 01:49PM

20
#161 - Kimchanyuuu / @Kimchanyuuu

04/13/2024 at 05:16PM

20
#162 - suyeon040610 / @suyeon040610

04/14/2024 at 05:17AM

20
#163 - lazely / @lazely

04/14/2024 at 07:03AM

20
#164 - tk555 / @tk55513

05/04/2024 at 01:51PM

20
#165 - Aly Thobani / @alythobani

05/28/2024 at 10:32PM

20
#166 - Peppa Pig / @PeppaPigSg

07/02/2024 at 06:28AM

20
#167 - Elliot Schemmel / @regulated

10/09/2024 at 08:56PM

20
#168 - sosa-daniel / @sosa-daniel

10/30/2024 at 02:09AM

21
#169 - Derek Schrock / @derekschrock

07/16/2020 at 02:50PM

21
#170 - Bob / @Bob75461026

07/17/2020 at 04:08PM

21
#171 - LCY / @Chooneh

07/18/2020 at 06:49AM

21
#172 - vito / @vito49999722

07/19/2020 at 09:30AM

21
#173 - eshel / @EshelBM

07/24/2020 at 10:52AM

21
#174 - Bitt Faulk / @bittfaulk

07/24/2020 at 06:38PM

21
#175 - Xaver Fleer / @XaverFleer

07/28/2020 at 03:13PM

21
#176 - Ebi / @ehan6

08/01/2020 at 01:53PM

21
#177 - David Martínez / @g0ddrinksjava

08/07/2020 at 07:49PM

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

08/17/2020 at 08:32AM

21
#179 - Nick Edwards / @edwardsnjd

09/07/2020 at 04:22PM

21
#180 - mevmev / @mevmev8

09/13/2020 at 02:06PM