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 596dd9ca448256000c000011

Array transposition

Transpose two arrays into one.

Start file
[1,2,3,4,5,6,7,8,9,0]
[a,b,c,d,e,f,g,h,i,j]
End file
[1,a,2,b,3,c,4,d,5,e,6,f,7,g,8,h,9,i,0,j]

View Diff

1,2c1
< [1,2,3,4,5,6,7,8,9,0]
< [a,b,c,d,e,f,g,h,i,j]
---
> [1,a,2,b,3,c,4,d,5,e,6,f,7,g,8,h,9,i,0,j]

Solutions by @sooqua:

Unlock 18 remaining solutions by signing in and submitting your own entry
Created by: @juancolacelli

431 active golfers, 2312 entries

Solutions by @sooqua:
16
#15 - sooqua / @sooqua

08/08/2019 at 07:35PM

17
#>140 - sooqua / @sooqua

08/08/2019 at 07:34PM

18
#>198 - sooqua / @sooqua

08/08/2019 at 07:33PM

20
#>216 - sooqua / @sooqua

08/08/2019 at 07:33PM

21
#>232 - sooqua / @sooqua

08/08/2019 at 07:32PM

22
#>247 - sooqua / @sooqua

08/08/2019 at 07:32PM

23
#>258 - sooqua / @sooqua

08/08/2019 at 07:30PM

24
#>270 - sooqua / @sooqua

08/08/2019 at 07:30PM

25
#>283 - sooqua / @sooqua

08/08/2019 at 07:29PM

26
#>303 - sooqua / @sooqua

08/08/2019 at 07:28PM

27
#>313 - sooqua / @sooqua

08/08/2019 at 07:28PM

29
#>352 - sooqua / @sooqua

08/08/2019 at 07:27PM

32
#>372 - sooqua / @sooqua

08/08/2019 at 07:26PM

33
#>373 - sooqua / @sooqua

08/08/2019 at 07:26PM

34
#>376 - sooqua / @sooqua

08/08/2019 at 07:26PM

37
#>383 - sooqua / @sooqua

08/08/2019 at 07:24PM

39
#>387 - sooqua / @sooqua

08/08/2019 at 07:22PM

39
#>387 - sooqua / @sooqua

08/08/2019 at 07:24PM