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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 68 remaining solutions by signing in and submitting your own entry
#69 William Ott / @oddalot - Score: 13 - 07/12/20 @ 23:42
jdt'i<BS><Esc>ji<BS><Esc>ZZ

0 comments


Created by: @IsaacPZZ

69 active golfers, 134 entries

Leaderboard (lowest score wins):
5
#61 - Steve Frost / @FrostSteveFrost

08/03/2020 at 01:32AM

5
#62 - Filipe Brandenburger / @filbranden

08/03/2020 at 04:34PM

7
#63 - Miki Tebeka / @tebeka

07/16/2020 at 06:37AM

7
#64 - Norman Liu / @normanwliu

07/25/2020 at 10:57PM

7
#65 - Lorenz Leitner / @LorenzLeitner

07/26/2020 at 01:22PM

8
#66 - Anil Narayan / @AnilNarayan2013

07/23/2020 at 01:34AM

11
#67 - blue christ / @bluechrist3

08/01/2020 at 09:20PM

11
#68 - mindgitrwx / @mindgitrwx

08/02/2020 at 07:46AM

13
#69 - William Ott / @oddalot

07/12/2020 at 11:42PM