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

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

302 active golfers, 703 entries

Solutions by @nickandbro:
5
#255 - nickGPT / @nickandbro

08/24/2024 at 05:25AM

6
#>270 - nickGPT / @nickandbro

08/24/2024 at 05:24AM

7
#>284 - nickGPT / @nickandbro

08/24/2024 at 05:23AM

8
#>286 - nickGPT / @nickandbro

08/24/2024 at 05:23AM

9
#>288 - nickGPT / @nickandbro

08/24/2024 at 05:22AM

11
#>289 - nickGPT / @nickandbro

08/24/2024 at 05:22AM

13
#>294 - nickGPT / @nickandbro

08/24/2024 at 05:21AM

14
#>296 - nickGPT / @nickandbro

08/24/2024 at 05:20AM

16
#>299 - nickGPT / @nickandbro

08/24/2024 at 05:20AM

20
#>300 - nickGPT / @nickandbro

08/24/2024 at 05:19AM

37
#>301 - nickGPT / @nickandbro

08/24/2024 at 05:18AM

93
#>301 - nickGPT / @nickandbro

08/24/2024 at 05:18AM