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

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 385 remaining solutions by signing in and submitting your own entry
#386 Tony Ren / @STXSoulMine - Score: 227 - 08/04/17 @ 16:30
jlveeeeeeeeeeeeeeeeeexklpbbbbbbbbbbbbbbbbveeeeeeeeeeeeeeeehxlpbbbbbbbbbbbbbbveeeeeeeeeeeeeehxlphhhhhhhhhhhhvllllllllllllxlphhhhhhhhhhhlvllllllllllxlphhhhhhhhvllllllllxlphhhhhhvllllllxlphhhhvllllxlphhvllxlpxli, j<Esc>hx:<Esc>wjdd:w<CR>:wq<CR>

0 comments


Created by: @juancolacelli

386 active golfers, 1995 entries

Leaderboard (lowest score wins):
17
#91 - golfer / @golfer30767399

05/04/2018 at 11:23PM

17
#92 - vimgolfdummy / @vimgolfdummy

05/05/2018 at 07:18PM

17
#93 - Sports Fan LaBerge / @BigBoiLaBerge

05/10/2018 at 12:24PM

17
#94 - Channing Chen / @jslgycm

05/22/2018 at 10:48AM

17
#95 - Matt Aschmann / @ma7hatter

05/23/2018 at 07:18PM

17
#96 - omrisarig / @omrisarig

06/09/2018 at 05:56PM

17
#97 - Daniël De Koker / @daniel_koker

06/28/2018 at 11:36AM

17
#98 - steph-query / @StephQuery

07/13/2018 at 08:17PM

17
#99 - Sérgio Mucciaccia / @SMucciaccia

07/17/2018 at 12:21PM

17
#100 - 최종원 / @lastone9182

07/17/2018 at 01:39PM

17
#101 - Andrew Peterson / @FungalRaincloud

07/28/2018 at 10:26PM

17
#102 - Artsiom Kashkou / @pochka15

08/01/2018 at 03:09PM

17
#103 - O / @O34721877

08/08/2018 at 03:02AM

17
#104 - _Tpouhuk / @Tpouhuk2

08/08/2018 at 08:56PM

17
#105 - fucus / @fishlovebanana

08/13/2018 at 01:30PM

17
#106 - bluemartian / @bluemartianz59

08/19/2018 at 08:28PM

17
#107 - Rich Cheng / @sedm0784

09/10/2018 at 10:30PM

17
#108 - Rasmus Bergström / @JRasmusBm

09/27/2018 at 09:04AM

17
#109 - Benjamin Kiesl / @BenjaminKiesl

10/12/2018 at 12:32PM

17
#110 - Sebastian Korten / @FlashKorten

10/13/2018 at 11:30AM

17
#111 - Andreas Nordahl / @andreasnordahl

11/27/2018 at 08:50AM

17
#112 - Jonathan Cabezas / @John_Harkan

11/27/2018 at 12:49PM

17
#113 - Anant Mishra / @anantanni22

12/12/2018 at 08:01AM

17
#114 - abgalphabet / @abgalphabet

01/15/2019 at 03:29PM

17
#115 - 默罕默德 / @Rt6RjEAJ987Woes

02/16/2019 at 12:37PM

17
#116 - enji / @enji_ja

03/19/2019 at 04:33PM

17
#117 - Parsa Amini / @ParsaAmini

03/20/2019 at 07:06PM

17
#118 - james_bunch / @james_bunch

04/14/2019 at 08:03PM

17
#119 - alekfed / @alek_fed

04/15/2019 at 06:47AM

17
#120 - Gitsnik / @dracyrys

04/22/2019 at 11:36AM