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 5f0890dbb409320009a38274

Multiline to Single Line

Convert a multiline, indented file to a single line with no whitespace

Start file
api(
    'com.vimgolf.challenge'
)
End file
api('com.vimgolf.challenge')

View Diff

1,3c1
< api(
<     'com.vimgolf.challenge'
< )
---
> api('com.vimgolf.challenge')

Solutions by @BocchiTobia:

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

162 active golfers, 341 entries

Solutions by @BocchiTobia:
5
#108 - Tobia Bocchi / @BocchiTobia

02/19/2021 at 12:52PM

5
#>108 - Tobia Bocchi / @BocchiTobia

02/19/2021 at 12:52PM

5
#>108 - Tobia Bocchi / @BocchiTobia

02/19/2021 at 12:52PM

6
#>146 - Tobia Bocchi / @BocchiTobia

02/19/2021 at 12:51PM

7
#>153 - Tobia Bocchi / @BocchiTobia

02/19/2021 at 12:51PM