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 @nickandbro:

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

424 active golfers, 1045 entries

Solutions by @nickandbro:
10
#306 - nickGPT / @nickandbro

08/28/2024 at 03:45AM

11
#>373 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

12
#>384 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

13
#>391 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

14
#>398 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

15
#>400 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

16
#>401 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

17
#>403 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

18
#>404 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

19
#>407 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

20
#>408 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

21
#>413 - nickGPT / @nickandbro

08/28/2024 at 03:44AM

22
#>416 - nickGPT / @nickandbro

08/28/2024 at 03:43AM

23
#>417 - nickGPT / @nickandbro

08/28/2024 at 03:43AM

27
#>418 - nickGPT / @nickandbro

08/28/2024 at 03:43AM

28
#>419 - nickGPT / @nickandbro

08/28/2024 at 03:43AM

29
#>420 - nickGPT / @nickandbro

08/28/2024 at 03:43AM

31
#>421 - nickGPT / @nickandbro

08/28/2024 at 03:43AM

32
#>422 - nickGPT / @nickandbro

08/28/2024 at 03:43AM

54
#>423 - nickGPT / @nickandbro

08/28/2024 at 03:43AM

68
#>424 - nickGPT / @nickandbro

08/28/2024 at 03:43AM