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

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

302 active golfers, 700 entries

Solutions by @painkiller_2357:
5
#239 - 유채운 / @painkiller_2357

04/12/2024 at 09:19AM

5
#>239 - 유채운 / @painkiller_2357

04/12/2024 at 09:23AM

6
#>269 - 유채운 / @painkiller_2357

04/12/2024 at 09:19AM

7
#>284 - 유채운 / @painkiller_2357

04/12/2024 at 09:19AM

8
#>286 - 유채운 / @painkiller_2357

04/12/2024 at 09:18AM

9
#>288 - 유채운 / @painkiller_2357

04/12/2024 at 09:17AM

12
#>289 - 유채운 / @painkiller_2357

04/12/2024 at 09:17AM

16
#>299 - 유채운 / @painkiller_2357

04/12/2024 at 09:16AM

24
#>300 - 유채운 / @painkiller_2357

04/12/2024 at 09:14AM