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
#91 - Rauf Kurbanov / @paRRad0x

01/02/2016 at 10:46AM

10
#92 - Bowen Deng / @DavidBdeng

01/03/2016 at 09:54AM

10
#93 - Andrea Rossi / @lucidstack

01/03/2016 at 02:36PM

10
#94 - Saki Gw / @Sakigw

01/03/2016 at 02:43PM

10
#95 - DrHobo / @_DrHobo_

01/03/2016 at 06:22PM

10
#96 - Kyle Holzinger / @kyleholzinger

01/03/2016 at 06:35PM

10
#97 - Oisin Carroll / @oisincar

01/03/2016 at 08:54PM

10
#98 - Emmanuel Denloye-Ito / @EmmanuelDenloye

01/06/2016 at 01:59AM

10
#99 - Mirko Grönroos / @hermo

01/06/2016 at 09:37AM

10
#100 - TETSU / @kaoru6strings

01/07/2016 at 06:22AM

10
#101 - jackliusr / @jackliusr

01/07/2016 at 07:54AM

10
#102 - Alan Kang / @alankang

01/07/2016 at 09:19AM

10
#103 - Evgeny`s Kindle / @EvgenyKindle

01/07/2016 at 11:11PM

10
#104 - Nathan Merrill / @natedickmerrill

01/08/2016 at 06:05AM

10
#105 - hen don / @hendon112

01/09/2016 at 02:21AM

10
#106 - Roberto Carraretto / @robcarraretto

01/09/2016 at 01:09PM

10
#107 - Goonoo Kim / @mctenshi

01/09/2016 at 01:39PM

10
#108 - Jérôme Salignon / @JeromeSalignon

01/10/2016 at 12:49PM

10
#109 - Sergey Fedorov / @Shade30

01/13/2016 at 07:35AM

10
#110 - hammboning / @_PuttPirates_

01/13/2016 at 06:53PM

10
#111 - Ala' Ibrahim / @alaa_ibrahim

01/14/2016 at 01:22AM

10
#112 - Aleksey Zhidkov / @AlexeyZhidkov

01/14/2016 at 09:01AM

10
#113 - Austin Wood / @indiesquidge

01/14/2016 at 05:46PM

10
#114 - Shriharsh / @ShriharshMishra

01/18/2016 at 11:52AM

10
#115 - Maxim Prokopenko / @max1cp

01/19/2016 at 08:09PM

10
#116 - thejojo87 / @thejojo1987

01/21/2016 at 03:34PM

10
#117 - Hawk Newton / @hawknewton

01/26/2016 at 10:03PM

10
#118 - Ian Trophy / @prfrgg

01/29/2016 at 09:42PM

10
#119 - Sheapel User / @sheapeluser

02/01/2016 at 09:08PM

10
#120 - Daniel Suh / @18kehops

02/02/2016 at 05:32AM