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

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

448 active golfers, 2417 entries

Solutions by @james_bunch:
17
#137 - james_bunch / @james_bunch

04/14/2019 at 08:03PM

18
#>205 - james_bunch / @james_bunch

04/14/2019 at 08:02PM

19
#>212 - james_bunch / @james_bunch

04/14/2019 at 08:01PM

20
#>227 - james_bunch / @james_bunch

04/14/2019 at 07:59PM

21
#>242 - james_bunch / @james_bunch

04/14/2019 at 07:59PM

22
#>257 - james_bunch / @james_bunch

04/14/2019 at 07:58PM

23
#>268 - james_bunch / @james_bunch

04/14/2019 at 07:57PM

24
#>279 - james_bunch / @james_bunch

04/14/2019 at 07:55PM

25
#>294 - james_bunch / @james_bunch

04/14/2019 at 07:54PM

26
#>313 - james_bunch / @james_bunch

04/14/2019 at 09:27AM

27
#>325 - james_bunch / @james_bunch

04/14/2019 at 09:26AM

29
#>365 - james_bunch / @james_bunch

04/14/2019 at 09:25AM

30
#>376 - james_bunch / @james_bunch

04/14/2019 at 09:24AM

31
#>384 - james_bunch / @james_bunch

04/14/2019 at 09:21AM

32
#>386 - james_bunch / @james_bunch

04/14/2019 at 09:18AM

33
#>387 - james_bunch / @james_bunch

04/14/2019 at 09:16AM

34
#>390 - james_bunch / @james_bunch

04/14/2019 at 09:13AM

42
#>408 - james_bunch / @james_bunch

04/14/2019 at 09:03AM

53
#>429 - james_bunch / @james_bunch

04/14/2019 at 08:48AM

55
#>431 - james_bunch / @james_bunch

04/14/2019 at 08:43AM

95
#>444 - james_bunch / @james_bunch

04/14/2019 at 08:37AM