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

375 active golfers, 870 entries

Leaderboard (lowest score wins):
10
#31 - Li Nuo / @li_nuo

12/10/2015 at 02:35PM

10
#32 - Matías Lang / @sh4r3m4n

12/10/2015 at 07:33PM

10
#33 - swordgard / @swordgardctf

12/10/2015 at 10:34PM

10
#34 - Wilmer Bandres / @WilmerBandres

12/11/2015 at 12:43AM

10
#35 - Campbell Davis / @Campbell_Dav

12/11/2015 at 07:19AM

10
#36 -  River / @glacialrd

12/11/2015 at 09:12AM

10
#37 - Paulo H Baumann / @PauloBaumann

12/11/2015 at 03:36PM

10
#38 - Mike Chen / @MagikoMyko

12/11/2015 at 04:45PM

10
#39 - Matthew Desjardins / @Desjardins_M

12/11/2015 at 08:40PM

10
#40 - Julian Mendoza / @JmenD1

12/12/2015 at 10:54PM

10
#41 - Paulo Romeira / @pauloromeira

12/13/2015 at 08:57AM

10
#42 - fedons / @fedons

12/13/2015 at 11:07AM

10
#43 - Dirty Harry / @TateDirty

12/13/2015 at 02:47PM

10
#44 - Jonas K. / @geratheon

12/13/2015 at 08:00PM

10
#45 - Domingue Justin / @_jdomingue

12/13/2015 at 08:09PM

10
#46 - Corne vd Plas / @CornePlas

12/14/2015 at 10:56AM

10
#47 - lucas / @rept357

12/15/2015 at 07:58AM

10
#48 - Mikołaj Morzy / @MikolajMorzy

12/15/2015 at 04:07PM

10
#49 - Ramesh Sirimalla / @RSirimalla

12/15/2015 at 05:20PM

10
#50 - Strabs / @artistavenue

12/16/2015 at 01:51PM

10
#51 - najeem / @najeem

12/16/2015 at 07:51PM

10
#52 - Ashley Feniello / @AshleyFen

12/17/2015 at 02:46AM

10
#53 - Jan Path / @jan_path

12/17/2015 at 12:17PM

10
#54 - Gammelin Guillaume / @ggammelin

12/18/2015 at 07:54AM

10
#55 - Joseph J. Piché / @jjpiche

12/18/2015 at 09:17PM

10
#56 - Alexander Botticelli / @BotticelliAlex

12/19/2015 at 06:58AM

10
#57 - Charlie / @wookie_giant

12/19/2015 at 07:06PM

10
#58 - Alexey Belkov / @larksvroom

12/19/2015 at 07:30PM

10
#59 - Abdullah / @dada3mn

12/19/2015 at 09:40PM

10
#60 - sellerie schnitzel / @sellerieschnitz

12/20/2015 at 07:18AM