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 @37fatos:

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

418 active golfers, 998 entries

Solutions by @37fatos:
10
#289 - A A A / @37fatos

01/21/2021 at 01:02AM

10
#>289 - A A A / @37fatos

01/21/2021 at 01:04AM

10
#>289 - A A A / @37fatos

01/21/2021 at 01:04AM

12
#>378 - A A A / @37fatos

01/21/2021 at 01:01AM

13
#>385 - A A A / @37fatos

01/21/2021 at 01:00AM