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
#121 - Durga Swaroop Perla / @durgaswaroop

02/03/2016 at 12:31PM

10
#122 - Gerald Tilma / @GeraldTilma

02/04/2016 at 01:40AM

10
#123 - Thijs van den Anker / @thijsvdanker

02/05/2016 at 01:57PM

10
#124 - James Burns / @James_Ian_Burns

02/12/2016 at 02:41AM

10
#125 - walter sullivan / @walters82208305

02/12/2016 at 03:23PM

10
#126 - Michael Buckley / @apolatg

02/13/2016 at 06:39PM

10
#127 - Mathias Andersson / @Wraul

02/13/2016 at 07:09PM

10
#128 - John Smith / @literacyisgood

02/19/2016 at 11:51PM

10
#129 - Roland Hougs / @OminousWater

02/21/2016 at 05:14PM

10
#130 - royer / @RoyerMoyer1

02/23/2016 at 10:10AM

10
#131 - Antony Garand / @AntoGarand

02/25/2016 at 01:06AM

10
#132 - Xiaocan Li / @XiaocanLi

02/26/2016 at 10:35PM

10
#133 - ɹǝsnɐɥsıʇnɹ uoɾ / @JonRutis

02/29/2016 at 07:03PM

10
#134 - Benjamin Miller / @Bmiller14Miller

02/29/2016 at 07:27PM

10
#135 - Mark Saiget / @MarkSaiget

03/01/2016 at 06:36AM

10
#136 - Rubén Chavarría T. / @rchavarriat

03/02/2016 at 07:59AM

10
#137 - Michel Ganguin / @tinycrazyfish

03/02/2016 at 10:34AM

10
#138 - ค×ɛเ / @pwnedary

03/02/2016 at 04:35PM

10
#139 - hardaudit / @hardaudit

03/04/2016 at 10:25AM

10
#140 - glepha / @glepha_vim

03/06/2016 at 11:29PM

10
#141 - Dimitar Dimitrov / @kurkale6ka

03/08/2016 at 03:49PM

10
#142 - Piotr Madaliński / @MadalinskiPiotr

03/08/2016 at 06:27PM

10
#143 - Hao Chen / @Chen_Hao

03/09/2016 at 04:21PM

10
#144 - Andreas Carben / @meiner_eins

03/13/2016 at 04:47PM

10
#145 - Codecor / @codecor02

03/13/2016 at 07:31PM

10
#146 - Yahyalexandre33 / @yahyalexandre33

03/15/2016 at 01:41AM

10
#147 - Janko Jerinic / @JankoJerinic

03/27/2016 at 02:19AM

10
#148 - Yanis KHORSI / @YanisKHORSI

03/28/2016 at 09:20AM

10
#149 - Dinesh Bhosale / @MrDineshBhosale

03/28/2016 at 05:54PM

10
#150 - Jason Choi / @joyous_jason

03/29/2016 at 08:27AM