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
#61 - BarbaJol / @drpproteus

12/30/2017 at 02:21PM

17
#62 - Alphonse Mariya / @alfunx

01/08/2018 at 07:14PM

17
#63 - ParasamGateZero / @ParasamGateZero

01/15/2018 at 01:47AM

17
#64 - Sergey Ryabko / @RyabkoSergey

01/21/2018 at 07:22PM

17
#65 - Matthew Rademaker / @radamakar

01/24/2018 at 02:42AM

17
#66 - Jacob Tailor / @spydronex

01/25/2018 at 09:39PM

17
#67 - Arijus / @argshook

02/02/2018 at 10:02AM

17
#68 - martin tourneboeuf / @martintournebo1

02/07/2018 at 08:44PM

17
#69 - thadeuszlay / @thadeuszlay

02/08/2018 at 04:27PM

17
#70 - bruno / @LokoPoggi

02/24/2018 at 02:20AM

17
#71 - Guirec CORBEL / @GuirecCorbel

02/27/2018 at 01:08AM

17
#72 - Steven Petsche / @StevenPetsche

03/12/2018 at 04:50AM

17
#73 - Chris Sutton / @cs1379320

03/12/2018 at 05:03AM

17
#74 - towc / @MateiCopot

04/02/2018 at 10:11AM

17
#75 - DHM / @DHM29978992

04/11/2018 at 06:53PM

17
#76 - Evgeny`s Kindle / @EvgenyKindle

04/24/2018 at 08:23AM

17
#77 - platypusDancing / @platypusDancing

04/27/2018 at 06:16AM

17
#78 - golfer / @golfer30767399

05/04/2018 at 11:23PM

17
#79 - vimgolfdummy / @vimgolfdummy

05/05/2018 at 07:18PM

17
#80 - Sports Fan LaBerge / @BigBoiLaBerge

05/10/2018 at 12:24PM

17
#81 - Channing Chen / @jslgycm

05/22/2018 at 10:48AM

17
#82 - Matt Aschmann / @ma7hatter

05/23/2018 at 07:18PM

17
#83 - omrisarig / @omrisarig

06/09/2018 at 05:56PM

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

06/28/2018 at 11:36AM

17
#85 - steph-query / @StephQuery

07/13/2018 at 08:17PM

17
#86 - Sérgio Mucciaccia / @SMucciaccia

07/17/2018 at 12:21PM

17
#87 - 최종원 / @lastone9182

07/17/2018 at 01:39PM

17
#88 - Andrew Peterson / @FungalRaincloud

07/28/2018 at 10:26PM

17
#89 - Artsiom Kashkou / @pochka15

08/01/2018 at 03:09PM

17
#90 - O / @O34721877

08/08/2018 at 03:02AM