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 by @tomsmicroblog:

Unlock 4 remaining solutions by signing in and submitting your own entry
Created by: @tedsta0

401 active golfers, 942 entries

Solutions by @tomsmicroblog:
10
#227 - Tomas Sikula / @tomsmicroblog

05/26/2017 at 06:23PM

11
#>342 - Tomas Sikula / @tomsmicroblog

05/26/2017 at 06:22PM

14
#>374 - Tomas Sikula / @tomsmicroblog

05/26/2017 at 06:18PM

14
#>374 - Tomas Sikula / @tomsmicroblog

05/26/2017 at 06:21PM