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
#241 - ParasamGateZero / @ParasamGateZero

02/06/2018 at 06:18AM

10
#242 - Marek Šuppa / @mr__shu

03/17/2018 at 01:14PM

10
#243 - Guirec CORBEL / @GuirecCorbel

04/04/2018 at 12:25AM

10
#244 - DHM / @DHM29978992

04/21/2018 at 01:47AM

10
#245 - platypusDancing / @platypusDancing

05/03/2018 at 07:16PM

10
#246 - 石奕心 / @allenshih1

06/07/2018 at 03:22AM

10
#247 - Daniël De Koker / @daniel_koker

07/02/2018 at 07:53AM

10
#248 - Chris Dean / @ChrisDe62379742

07/11/2018 at 06:06PM

10
#249 - Jacky Lee / @grenmester

08/07/2018 at 06:18AM

10
#250 - fucus / @fishlovebanana

08/13/2018 at 12:45PM

10
#251 - d8d90d / @d8d90d

08/19/2018 at 05:07PM

10
#252 - Hugo / @szeyattai

08/21/2018 at 07:13AM

10
#253 - 🌀🦋Miriam Retka🦋🌀 / @miriamretka

08/31/2018 at 12:11AM

10
#254 - chaotic / @laersn

09/11/2018 at 12:04PM

10
#255 - Jeff / @sir_wiggles3

09/11/2018 at 04:35PM

10
#256 - Norbert / @mullno

10/03/2018 at 07:47PM

10
#257 - Chris Budetti / @ChrisBudetti

10/14/2018 at 03:59PM

10
#258 - Florent Jaby / @Floby

10/15/2018 at 12:28PM

10
#259 - Paul Inc / @hiniol1982

10/19/2018 at 05:06PM

10
#260 - Dima Matrohin / @wo_ogy

10/27/2018 at 11:20AM

10
#261 - vg / @vg53210350

10/28/2018 at 11:17PM

10
#262 - dorpo / @dorpo2

11/01/2018 at 10:17PM

10
#263 - Sxcy / @SxcyX

11/06/2018 at 04:07PM

10
#264 - Dax / @zacoxi

11/12/2018 at 05:39AM

10
#265 - Luis Rodriguez / @luisthecoder

11/15/2018 at 01:06AM

10
#266 - name / @name65894813

11/20/2018 at 03:43PM

10
#267 - Jonathan Gin / @jonathangin52

12/04/2018 at 01:52AM

10
#268 - Mihai / @mihaicristiant

12/06/2018 at 09:15AM

10
#269 - band / @band26376522

12/08/2018 at 11:59PM

11
#270 - aisapatino / @aisapatino

12/09/2015 at 12:17AM