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
#31 - Marcos de Oliveira / @MsOliveiraa

08/24/2017 at 01:39PM

17
#32 - Scott Smith / @Scottaino

08/24/2017 at 04:25PM

17
#33 - Darren Weston / @dazWestonUK

08/30/2017 at 01:31PM

17
#34 - zava / @znl1087

09/03/2017 at 01:56PM

17
#35 - aselaIllayaparachchi / @asela38

09/11/2017 at 08:14AM

17
#36 - exsaber / @exsaber508

09/22/2017 at 05:04AM

17
#37 - Karamfil / @lz1aai

09/24/2017 at 10:25PM

17
#38 - F / @gofilby

09/26/2017 at 07:45PM

17
#39 - Luke Bryant / @LukeBryant55

10/01/2017 at 06:40PM

17
#40 - Jon Wålstedt / @jonwalstedt

10/01/2017 at 09:21PM

17
#41 - Stephen Betts / @stephenbetts

10/04/2017 at 06:23PM

17
#42 - George Rabanca / @grabanca

10/15/2017 at 06:25PM

17
#43 - Michail Pishchagin / @mblsha

10/22/2017 at 03:25PM

17
#44 - Turkey Man / @lvturkeyman

11/08/2017 at 01:11AM

17
#45 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 08:57PM

17
#46 - oops / @oopserror404

11/17/2017 at 04:24PM

17
#47 - Luis Pigueiras / @LPigueiras

11/20/2017 at 12:11PM

17
#48 - BareTull / @BareTull3

12/03/2017 at 10:50AM

17
#49 - 梧桐王子 / @WutongYujie

12/05/2017 at 12:33PM

17
#50 - Joachim Wedin / @joachim_wedin

12/12/2017 at 03:40PM

17
#51 - Sage san / @sagesancast

12/18/2017 at 04:48PM

17
#52 - BarbaJol / @drpproteus

12/30/2017 at 02:21PM

17
#53 - Alphonse Mariya / @alfunx

01/08/2018 at 07:14PM

17
#54 - ParasamGateZero / @ParasamGateZero

01/15/2018 at 01:47AM

17
#55 - Sergey Ryabko / @RyabkoSergey

01/21/2018 at 07:22PM

17
#56 - Matthew Rademaker / @radamakar

01/24/2018 at 02:42AM

17
#57 - Jacob Tailor / @spydronex

01/25/2018 at 09:39PM

17
#58 - Arijus / @argshook

02/02/2018 at 10:02AM

17
#59 - martin tourneboeuf / @martintournebo1

02/07/2018 at 08:44PM

17
#60 - thadeuszlay / @thadeuszlay

02/08/2018 at 04:27PM