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')
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
111 remaining solutions by
signing in and submitting your own entry
#112
Dennis Chen / @Mailyfesux -
Score: 16 -
11/12/20 @ 09:00
:%s/\n*\s*//g<CR>ZZ
0 comments
112 active golfers, 217 entries
Leaderboard (lowest score wins):
08/03/2020 at 01:32AM
08/03/2020 at 04:34PM
08/05/2020 at 12:35PM
08/08/2020 at 08:16PM
08/09/2020 at 08:10PM
08/09/2020 at 08:23PM
08/11/2020 at 01:15AM
08/11/2020 at 07:14AM
08/11/2020 at 10:44AM
08/12/2020 at 11:01PM
08/17/2020 at 06:18AM
08/21/2020 at 06:20AM
08/25/2020 at 08:14PM
08/28/2020 at 09:18PM
08/30/2020 at 01:54PM
09/03/2020 at 12:15PM
09/09/2020 at 12:47AM
09/10/2020 at 08:22PM
09/22/2020 at 08:44AM
09/25/2020 at 03:45PM
09/25/2020 at 03:45PM
09/30/2020 at 12:17PM
10/01/2020 at 05:05PM
10/04/2020 at 02:00PM
10/06/2020 at 12:51PM
10/10/2020 at 11:13AM
10/10/2020 at 07:19PM
10/25/2020 at 04:02PM
11/02/2020 at 02:36PM
11/05/2020 at 04:10PM