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

410 active golfers, 2162 entries

Leaderboard (lowest score wins):
16
#31 - Jan Sturm / @JanSturm77

07/14/2020 at 03:18PM

16
#32 - majo senf / @majo_senf

08/04/2020 at 10:08AM

16
#33 - lamtt77 / @lamtt77

10/10/2020 at 01:26PM

16
#34 - Leland Paul Kusmer / @lelandpaul

10/28/2020 at 03:50PM

16
#35 - Ifeoluwa Lawal / @IfeLawl

10/28/2020 at 03:53PM

16
#36 - chocolate / @chocola81394123

11/29/2020 at 08:29AM

17
#37 - Gabriel Siqueira / @gabrielhsiq

07/20/2017 at 04:25PM

17
#38 - Urtica dioica / @udioica

07/20/2017 at 05:50PM

17
#39 - John Braxler / @braxler

07/20/2017 at 05:54PM

17
#40 - Smylers / @Smylers2

07/20/2017 at 06:16PM

17
#41 - Sandra Rojo Duarte / @SandraRojoDuart

07/20/2017 at 06:39PM

17
#42 - Juan Colacelli / @juancolacelli

07/20/2017 at 10:55PM

17
#43 - Dan Simmons / @simmons_dan

07/21/2017 at 02:33PM

17
#44 - brandon salmon / @Exiledz

07/23/2017 at 07:23AM

17
#45 - Petro Тrouq / @zulolosi

07/23/2017 at 04:05PM

17
#46 - Михаил Доронин / @Boris_B_London

07/23/2017 at 04:29PM

17
#47 - Saki Gw / @Sakigw

07/24/2017 at 01:59PM

17
#48 - flykule / @flykule

07/26/2017 at 03:27AM

17
#49 - Karol Łukaszewicz / @Karolukaszewicz

07/31/2017 at 10:51AM

17
#50 - Blake Tereau / @BlakeTereau

07/31/2017 at 01:40PM

17
#51 - Will / @obiwan__k3n00bi

08/02/2017 at 07:02AM

17
#52 - huho / @huho_xu

08/03/2017 at 07:36PM

17
#53 - Vaughn Cato / @vaughncato

08/05/2017 at 04:51PM

17
#54 - Plop plop / @plopplopplop6

08/07/2017 at 08:39PM

17
#55 - Ky Statham / @ijustwannacode

08/09/2017 at 07:25PM

17
#56 - Birger / @Birger_Ni

08/10/2017 at 12:22PM

17
#57 - Floris van Liere / @FlorisvanLiere

08/16/2017 at 09:25PM

17
#58 - Sumit Agrawal / @sumitagrawal

08/18/2017 at 04:33PM

17
#59 - Terry Ding / @TerryDing77

08/22/2017 at 09:33PM

17
#60 - Marcos de Oliveira / @MsOliveiraa

08/24/2017 at 01:39PM