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 270 remaining solutions by signing in and submitting your own entry
#271 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

271 active golfers, 1237 entries

Leaderboard (lowest score wins):
17
#61 - bruno / @LokoPoggi

02/24/2018 at 02:20AM

17
#62 - Guirec CORBEL / @GuirecCorbel

02/27/2018 at 01:08AM

17
#63 - Steven Petsche / @StevenPetsche

03/12/2018 at 04:50AM

17
#64 - Chris Sutton / @cs1379320

03/12/2018 at 05:03AM

17
#65 - towc / @MateiCopot

04/02/2018 at 10:11AM

17
#66 - DHM / @DHM29978992

04/11/2018 at 06:53PM

17
#67 - Evgeny`s Kindle / @EvgenyKindle

04/24/2018 at 08:23AM

17
#68 - platypusDancing / @platypusDancing

04/27/2018 at 06:16AM

17
#69 - golfer / @golfer30767399

05/04/2018 at 11:23PM

17
#70 - vimgolfdummy / @vimgolfdummy

05/05/2018 at 07:18PM

17
#71 - Sports Fan LaBerge / @BigBoiLaBerge

05/10/2018 at 12:24PM

17
#72 - Channing Chen / @jslgycm

05/22/2018 at 10:48AM

17
#73 - Matt Aschmann / @ma7hatter

05/23/2018 at 07:18PM

17
#74 - omrisarig / @omrisarig

06/09/2018 at 05:56PM

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

06/28/2018 at 11:36AM

17
#76 - steph-query / @StephQuery

07/13/2018 at 08:17PM

17
#77 - Sérgio Mucciaccia / @SMucciaccia

07/17/2018 at 12:21PM

17
#78 - 최종원 / @lastone9182

07/17/2018 at 01:39PM

17
#79 - Andrew Peterson / @FungalRaincloud

07/28/2018 at 10:26PM

17
#80 - Artsiom Kashkou / @pochka15

08/01/2018 at 03:09PM

17
#81 - O / @O34721877

08/08/2018 at 03:02AM

17
#82 - _Tpouhuk / @Tpouhuk2

08/08/2018 at 08:56PM

17
#83 - fucus / @fishlovebanana

08/13/2018 at 01:30PM

17
#84 - bluemartian / @bluemartianz59

08/19/2018 at 08:28PM

17
#85 - Rich Cheng / @sedm0784

09/10/2018 at 10:30PM

17
#86 - Rasmus Bergström / @JRasmusBm

09/27/2018 at 09:04AM

17
#87 - Benjamin Kiesl / @BenjaminKiesl

10/12/2018 at 12:32PM

17
#88 - Sebastian Korten / @FlashKorten

10/13/2018 at 11:30AM

18
#89 - Joonas Pihlajamaa / @jokkebk

07/19/2017 at 12:55PM

18
#90 - Song Zheng / @songz

07/19/2017 at 08:32PM