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

335 active golfers, 1661 entries

Leaderboard (lowest score wins):
17
#31 - Blake Tereau / @BlakeTereau

07/31/2017 at 01:40PM

17
#32 - Will / @obiwan__k3n00bi

08/02/2017 at 07:02AM

17
#33 - huho / @huho_xu

08/03/2017 at 07:36PM

17
#34 - Vaughn Cato / @vaughncato

08/05/2017 at 04:51PM

17
#35 - Plop plop / @plopplopplop6

08/07/2017 at 08:39PM

17
#36 - Ky Statham / @ijustwannacode

08/09/2017 at 07:25PM

17
#37 - Birger / @Birger_Ni

08/10/2017 at 12:22PM

17
#38 - Floris van Liere / @FlorisvanLiere

08/16/2017 at 09:25PM

17
#39 - Sumit Agrawal / @sumitagrawal

08/18/2017 at 04:33PM

17
#40 - Terry Ding / @TerryDing77

08/22/2017 at 09:33PM

17
#41 - Marcos de Oliveira / @MsOliveiraa

08/24/2017 at 01:39PM

17
#42 - Scott Smith / @Scottaino

08/24/2017 at 04:25PM

17
#43 - Darren Weston / @dazWestonUK

08/30/2017 at 01:31PM

17
#44 - zava / @znl1087

09/03/2017 at 01:56PM

17
#45 - aselaIllayaparachchi / @asela38

09/11/2017 at 08:14AM

17
#46 - exsaber / @exsaber508

09/22/2017 at 05:04AM

17
#47 - Karamfil / @lz1aai

09/24/2017 at 10:25PM

17
#48 - F / @gofilby

09/26/2017 at 07:45PM

17
#49 - Luke Bryant / @LukeBryant55

10/01/2017 at 06:40PM

17
#50 - Jon Wålstedt / @jonwalstedt

10/01/2017 at 09:21PM

17
#51 - Stephen Betts / @stephenbetts

10/04/2017 at 06:23PM

17
#52 - George Rabanca / @grabanca

10/15/2017 at 06:25PM

17
#53 - Michail Pishchagin / @mblsha

10/22/2017 at 03:25PM

17
#54 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 08:57PM

17
#55 - oops / @oopserror404

11/17/2017 at 04:24PM

17
#56 - Luis Pigueiras / @LPigueiras

11/20/2017 at 12:11PM

17
#57 - BareTull / @BareTull3

12/03/2017 at 10:50AM

17
#58 - 梧桐王子 / @WutongYujie

12/05/2017 at 12:33PM

17
#59 - Joachim Wedin / @joachim_wedin

12/12/2017 at 03:40PM

17
#60 - Sage san / @sagesancast

12/18/2017 at 04:48PM