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 5666943bac55c907fd02066f

comments galore

Basic comment reformatting

Start file
/*
 * comments
 * yay comments
 * so informative, the information is really yes
 * wowowowowow
 * mind blown
 * and that's how the allocator works
 */
End file
// comments
// yay comments
// so informative, the information is really yes
// wowowowowow
// mind blown
// and that's how the allocator works

View Diff

1,8c1,6
< /*
<  * comments
<  * yay comments
<  * so informative, the information is really yes
<  * wowowowowow
<  * mind blown
<  * and that's how the allocator works
<  */
---
> // comments
> // yay comments
> // so informative, the information is really yes
> // wowowowowow
> // mind blown
> // and that's how the allocator works

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 423 remaining solutions by signing in and submitting your own entry
#424 Jay Hack / @_jayhack_ - Score: 68 - 12/18/15 @ 04:14
dd7ggdd:%i<BS>A<BS>I//<BS><BS><BS><BS>%s/*<BS>\*//<BS>\/\/<CR><Up><Up><Up><Up><Up><BS>x<Down>xjxjxjxjxjkkkkkjjjjjj:wq<CR>

0 comments


Created by: @tedsta0

424 active golfers, 1045 entries

Leaderboard (lowest score wins):
10
#1 - Walker Boh / @walker_boh

12/08/2015 at 08:28AM

10
#2 - Michael Foley / @m1foley

12/08/2015 at 08:47AM

10
#3 - "Smylers" / @Smylers2

12/08/2015 at 09:09AM

10
#4 - mnx / @mnxx

12/08/2015 at 10:16AM

10
#5 - Lifepillar / @lifepillar

12/08/2015 at 10:48AM

10
#6 - Kai Yuan / @kentyuan

12/08/2015 at 11:23AM

10
#7 - EatYourGreens / @VimTwo

12/08/2015 at 12:02PM

10
#8 - Marshall Croes / @marshallcroes

12/08/2015 at 12:27PM

10
#9 - James / @Dronak

12/08/2015 at 12:52PM

10
#10 - Dan Moldovan / @Lenea92

12/08/2015 at 01:34PM

10
#11 - Tim Chase / @gumnos

12/08/2015 at 01:55PM

10
#12 - lorentrogers / @lorentrogers

12/08/2015 at 03:13PM

10
#13 - John Braxler / @braxler

12/08/2015 at 05:19PM

10
#14 - Yann Colina / @YannColina

12/08/2015 at 05:52PM

10
#15 - Joe Balancio / @JoeBalancio

12/08/2015 at 08:31PM

10
#16 - adrien frediani / @fredianiadrien

12/08/2015 at 08:52PM

10
#17 - Cory Knapp / @coryknapp

12/08/2015 at 09:15PM

10
#18 - Jon Krause / @jkrause314

12/08/2015 at 09:47PM

10
#19 - Brian D. Goad / @bbbco

12/08/2015 at 10:11PM

10
#20 - Martin Lehmann / @Theneva

12/08/2015 at 10:56PM

10
#21 - Chadd Chambers / @dos_dees

12/08/2015 at 10:59PM

10
#22 - Urtica dioica / @udioica

12/08/2015 at 11:43PM

10
#23 - Sean Stout / @s183s657

12/09/2015 at 06:11AM

10
#24 - David Elentok / @elentok

12/09/2015 at 10:39AM

10
#25 - Mathias / @MegaMathias

12/09/2015 at 11:29AM

10
#26 - n0nick / @n0nick

12/09/2015 at 11:39AM

10
#27 - Thomas Lovén / @thomasloven

12/09/2015 at 03:17PM

10
#28 - brett / @brettyukich

12/09/2015 at 08:07PM

10
#29 - Jiahan Wang / @hijiahanwang123

12/09/2015 at 10:18PM

10
#30 - TinPotRadio / @TinPotRadio1

12/10/2015 at 02:17AM