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

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

302 active golfers, 700 entries

Solutions by @aw0D5RUrdmxsylt:
5
#245 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:49PM

6
#>269 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:48PM

7
#>284 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:48PM

8
#>286 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:48PM

10
#>288 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:47PM

13
#>294 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:47PM

14
#>296 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:46PM

23
#>300 - Mystic / @aw0D5RUrdmxsylt

04/13/2024 at 06:42PM