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 366 remaining solutions by signing in and submitting your own entry
#367 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

367 active golfers, 849 entries

Leaderboard (lowest score wins):
10
#61 - tzvika ofek / @tzvio

12/21/2015 at 02:25PM

10
#62 - Lord Phantom / @lord_phantom_pl

12/22/2015 at 12:53AM

10
#63 - Ravil Bayramgalin / @brainopia

12/22/2015 at 01:33AM

10
#64 - Marcelo Montu / @_mMontu_

12/22/2015 at 03:52PM

10
#65 - Fabi / @zehdeh90

12/22/2015 at 10:18PM

10
#66 - Sebastian Nickel / @tumblingwhimsy

12/23/2015 at 03:15AM

10
#67 - Elrrrrrrr / @Elrrrrrrr

12/23/2015 at 09:26AM

10
#68 - Aris Kotzias / @ArisKotzias

12/23/2015 at 10:38AM

10
#69 - Mikael Axelsson / @Mikael_Axelsson

12/23/2015 at 12:32PM

10
#70 - Ethan Stewart / @EthanS279

12/23/2015 at 08:49PM

10
#71 - Sam Stites / @SamStites

12/25/2015 at 05:18AM

10
#72 - Oleg Alfalfa / @6alfalfa9

12/25/2015 at 12:37PM

10
#73 - Framecurrent / @framecurrent

12/25/2015 at 08:07PM

10
#74 - aanton / @aanton

12/25/2015 at 08:34PM

10
#75 - Adv_Zxy / @adv_zxy

12/26/2015 at 09:21AM

10
#76 - Egg / @hammingdistanc1

12/26/2015 at 04:15PM

10
#77 - Håken Lid / @haakenlid

12/26/2015 at 11:40PM

10
#78 - Marko / @suchtie

12/27/2015 at 07:45PM

10
#79 - Maciej Woźniak / @eldhash

12/27/2015 at 11:27PM

10
#80 - Brian C Sparks / @briancsparks

12/28/2015 at 01:20PM

10
#81 - Gordon / @gordonczedik

12/28/2015 at 06:02PM

10
#82 - Lucien Baron / @Luci1B

12/28/2015 at 10:03PM

10
#83 - Raj / @brshenoy

12/29/2015 at 08:19PM

10
#84 - Evan Coleman / @edc1591

12/29/2015 at 08:19PM

10
#85 - Benny Wong / @bdotdub

12/29/2015 at 08:34PM

10
#86 - Michael / @Michael57309129

12/30/2015 at 06:53AM

10
#87 - Matthieu Crapet / @mcr05

12/31/2015 at 06:33AM

10
#88 - Krzysztof Słonka / @KrzysztofSlonka

12/31/2015 at 10:16AM

10
#89 - John Lee / @NSA_agent_209

12/31/2015 at 10:18AM

10
#90 - Anthony BERNARD / @TweetTontony

12/31/2015 at 05:01PM