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 9v00669b3ff1000000000303

Rearrange array to single level

The goal is to flatten the array into a single list and remove any empty elements.

Start file
[
    []  ,
    [''],
    ['0', '1', '2'],
    ['3', '4', '5'],
    ['6', '7'],
    ['8', '9'],
    ['']
]
End file
['', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '']

View Diff

1,9c1
< [
<     []  ,
<     [''],
<     ['0', '1', '2'],
<     ['3', '4', '5'],
<     ['6', '7'],
<     ['8', '9'],
<     ['']
< ]
---
> ['', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '']

Solutions by @nickandbro:

Unlock 249 remaining solutions by signing in and submitting your own entry
Created by: @maharba6

205 active golfers, 1298 entries

Solutions by @nickandbro:
16
#21 - nickGPT / @nickandbro

08/14/2024 at 07:04AM

16
#>21 - nickGPT / @nickandbro

08/14/2024 at 07:04AM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 01:20PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 01:25PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 01:25PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 04:33PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 08:34PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 08:36PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 08:38PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 08:39PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 08:39PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 08:42PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 08:43PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 08:49PM

16
#>22 - nickGPT / @nickandbro

08/14/2024 at 08:57PM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 12:28AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 12:29AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 12:29AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 12:30AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 01:49AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 04:50AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 05:41AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 05:42AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 05:43AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 05:44AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 05:49AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 05:59AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:01AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:03AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:06AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:08AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:16AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:21AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:23AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:25AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:32AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:34AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:44AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:45AM

16
#>22 - nickGPT / @nickandbro

08/15/2024 at 06:52AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 05:51AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 05:55AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 05:57AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 05:58AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:07AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:10AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:16AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:17AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:24AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:30AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:50AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:52AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:53AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:57AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:00AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:14AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:19AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:22AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:24AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:26AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:31AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:37AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:42AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:57AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:00AM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 01:18PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 01:32PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 01:52PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 05:51PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 05:54PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 05:58PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 05:59PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:07PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:08PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:14PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 06:15PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:18PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:20PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:26PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:31PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:40PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:54PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:56PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 07:59PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:01PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:03PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:07PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:10PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:15PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:16PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:18PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:21PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 08:23PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 09:06PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 09:09PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 09:10PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 09:12PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 09:49PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 09:54PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:03PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:06PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:09PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:17PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:21PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:22PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:29PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:30PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:32PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:33PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:35PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:37PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:39PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:41PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:44PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:46PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 10:58PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 11:01PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 11:04PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 11:06PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 11:18PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 11:22PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 11:26PM

16
#>25 - nickGPT / @nickandbro

08/20/2024 at 11:29PM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 12:01AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 12:04AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 12:09AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 12:37AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 12:41AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 02:53AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 02:56AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 02:59AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 03:10AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 03:39AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 03:46AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 03:52AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 03:55AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 05:21AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 05:24AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 05:44AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 05:46AM

16
#>25 - nickGPT / @nickandbro

08/21/2024 at 05:56AM

16
#>26 - nickGPT / @nickandbro

08/21/2024 at 03:39PM

16
#>26 - nickGPT / @nickandbro

08/21/2024 at 03:48PM

16
#>26 - nickGPT / @nickandbro

08/21/2024 at 03:54PM

16
#>26 - nickGPT / @nickandbro

08/21/2024 at 07:58PM

16
#>27 - nickGPT / @nickandbro

08/22/2024 at 02:39AM

16
#>27 - nickGPT / @nickandbro

08/22/2024 at 02:59AM

16
#>27 - nickGPT / @nickandbro

08/22/2024 at 03:09AM

16
#>28 - nickGPT / @nickandbro

08/23/2024 at 03:18AM

16
#>28 - nickGPT / @nickandbro

08/23/2024 at 03:23AM

16
#>28 - nickGPT / @nickandbro

08/23/2024 at 05:13AM

16
#>28 - nickGPT / @nickandbro

08/25/2024 at 05:35AM

16
#>28 - nickGPT / @nickandbro

08/25/2024 at 05:35AM

16
#>28 - nickGPT / @nickandbro

08/25/2024 at 05:35AM

16
#>28 - nickGPT / @nickandbro

08/25/2024 at 05:36AM

16
#>28 - nickGPT / @nickandbro

08/25/2024 at 05:36AM

16
#>28 - nickGPT / @nickandbro

08/25/2024 at 05:36AM

16
#>28 - nickGPT / @nickandbro

08/25/2024 at 06:43AM

16
#>28 - nickGPT / @nickandbro

08/26/2024 at 04:50PM

16
#>28 - nickGPT / @nickandbro

08/26/2024 at 04:56PM

16
#>28 - nickGPT / @nickandbro

08/26/2024 at 07:07PM

16
#>28 - nickGPT / @nickandbro

08/26/2024 at 07:08PM

19
#>52 - nickGPT / @nickandbro

08/14/2024 at 07:03AM

20
#>60 - nickGPT / @nickandbro

08/14/2024 at 07:03AM

21
#>70 - nickGPT / @nickandbro

08/14/2024 at 07:03AM

22
#>75 - nickGPT / @nickandbro

08/14/2024 at 07:02AM

22
#>75 - nickGPT / @nickandbro

08/14/2024 at 07:02AM

23
#>82 - nickGPT / @nickandbro

08/14/2024 at 07:01AM

24
#>93 - nickGPT / @nickandbro

08/14/2024 at 07:01AM

25
#>101 - nickGPT / @nickandbro

08/14/2024 at 06:57AM

26
#>110 - nickGPT / @nickandbro

08/14/2024 at 06:56AM

27
#>116 - nickGPT / @nickandbro

08/14/2024 at 06:55AM

27
#>116 - nickGPT / @nickandbro

08/14/2024 at 06:56AM

28
#>124 - nickGPT / @nickandbro

08/14/2024 at 06:55AM

29
#>128 - nickGPT / @nickandbro

08/14/2024 at 06:52AM

29
#>128 - nickGPT / @nickandbro

08/14/2024 at 06:54AM

29
#>128 - nickGPT / @nickandbro

08/14/2024 at 06:54AM

30
#>133 - nickGPT / @nickandbro

08/14/2024 at 06:51AM

32
#>141 - nickGPT / @nickandbro

08/14/2024 at 06:50AM

32
#>141 - nickGPT / @nickandbro

08/14/2024 at 06:51AM

32
#>141 - nickGPT / @nickandbro

08/14/2024 at 06:53AM

33
#>151 - nickGPT / @nickandbro

08/14/2024 at 06:36AM

33
#>151 - nickGPT / @nickandbro

08/14/2024 at 06:45AM

33
#>151 - nickGPT / @nickandbro

08/14/2024 at 06:50AM

33
#>151 - nickGPT / @nickandbro

08/14/2024 at 06:53AM

34
#>153 - nickGPT / @nickandbro

08/14/2024 at 06:35AM

35
#>156 - nickGPT / @nickandbro

08/14/2024 at 06:35AM

37
#>163 - nickGPT / @nickandbro

08/14/2024 at 06:34AM

38
#>167 - nickGPT / @nickandbro

08/14/2024 at 06:27AM

40
#>169 - nickGPT / @nickandbro

08/14/2024 at 06:26AM

40
#>169 - nickGPT / @nickandbro

08/14/2024 at 06:33AM

40
#>169 - nickGPT / @nickandbro

08/14/2024 at 06:35AM

41
#>174 - nickGPT / @nickandbro

08/14/2024 at 06:25AM

41
#>174 - nickGPT / @nickandbro

08/14/2024 at 06:26AM

41
#>174 - nickGPT / @nickandbro

08/14/2024 at 06:26AM

41
#>174 - nickGPT / @nickandbro

08/14/2024 at 06:28AM

41
#>174 - nickGPT / @nickandbro

08/14/2024 at 06:32AM

41
#>174 - nickGPT / @nickandbro

08/14/2024 at 06:34AM

42
#>175 - nickGPT / @nickandbro

08/14/2024 at 06:25AM

42
#>175 - nickGPT / @nickandbro

08/14/2024 at 06:25AM

42
#>175 - nickGPT / @nickandbro

08/14/2024 at 06:26AM

42
#>175 - nickGPT / @nickandbro

08/14/2024 at 06:27AM

42
#>175 - nickGPT / @nickandbro

08/14/2024 at 06:29AM

43
#>177 - nickGPT / @nickandbro

08/14/2024 at 06:24AM

54
#>186 - nickGPT / @nickandbro

08/14/2024 at 06:17AM

56
#>187 - nickGPT / @nickandbro

08/14/2024 at 06:13AM

85
#>191 - nickGPT / @nickandbro

08/14/2024 at 06:13AM

100
#>193 - nickGPT / @nickandbro

08/14/2024 at 06:12AM

102
#>194 - nickGPT / @nickandbro

08/14/2024 at 06:12AM

139
#>198 - nickGPT / @nickandbro

08/14/2024 at 06:11AM

188
#>200 - nickGPT / @nickandbro

08/14/2024 at 06:04AM

199
#>201 - nickGPT / @nickandbro

08/14/2024 at 06:04AM

240
#>202 - nickGPT / @nickandbro

08/13/2024 at 08:13PM

240
#>202 - nickGPT / @nickandbro

08/13/2024 at 08:15PM

240
#>202 - nickGPT / @nickandbro

08/13/2024 at 08:16PM

240
#>202 - nickGPT / @nickandbro

08/13/2024 at 10:16PM

240
#>202 - nickGPT / @nickandbro

08/13/2024 at 11:00PM

240
#>202 - nickGPT / @nickandbro

08/13/2024 at 11:11PM

240
#>202 - nickGPT / @nickandbro

08/13/2024 at 11:13PM

240
#>202 - nickGPT / @nickandbro

08/13/2024 at 11:16PM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 02:52AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 02:52AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 04:09AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 04:10AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 04:38AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 04:38AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 04:39AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 04:39AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 04:59AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 04:59AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:05AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:06AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:09AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:10AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:13AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:13AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:23AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:23AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:26AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:26AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:27AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:36AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:45AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:46AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:54AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:55AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:58AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:58AM

240
#>202 - nickGPT / @nickandbro

08/14/2024 at 05:59AM