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

239 active golfers, 1078 entries

Leaderboard (lowest score wins):
17
#1 - Gabriel Siqueira / @Gabriel_HSiq

07/20/2017 at 04:25PM

17
#2 - Urtica dioica / @udioica

07/20/2017 at 05:50PM

17
#3 - John Braxler / @braxler

07/20/2017 at 05:54PM

17
#4 - Smylers / @Smylers2

07/20/2017 at 06:16PM

17
#5 - Sandra Rojo Duarte / @SandraRojoDuart

07/20/2017 at 06:39PM

17
#6 - Juan Colacelli / @juancolacelli

07/20/2017 at 10:55PM

17
#7 - Dan Simmons / @simmons_dan

07/21/2017 at 02:33PM

17
#8 - brandon salmon / @Exiledz

07/23/2017 at 07:23AM

17
#9 - Petro Тrouq / @zulolosi

07/23/2017 at 04:05PM

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

07/23/2017 at 04:29PM

17
#11 - Saki Gw / @Sakigw

07/24/2017 at 01:59PM

17
#12 - flykule / @flykule

07/26/2017 at 03:27AM

17
#13 - Karol Łukaszewicz / @Karolukaszewicz

07/31/2017 at 10:51AM

17
#14 - Blake Tereau / @BlakeTereau

07/31/2017 at 01:40PM

17
#15 - Will / @obiwan__k3n00bi

08/02/2017 at 07:02AM

17
#16 - huho / @huho_xu

08/03/2017 at 07:36PM

17
#17 - Vaughn Cato / @vaughncato

08/05/2017 at 04:51PM

17
#18 - Plop plop / @plopplopplop6

08/07/2017 at 08:39PM

17
#19 - Ky Statham / @ijustwannacode

08/09/2017 at 07:25PM

17
#20 - Birger / @Birger_Ni

08/10/2017 at 12:22PM

17
#21 - Floris van Liere / @FlorisvanLiere

08/16/2017 at 09:25PM

17
#22 - Sumit Agrawal / @sumitagrawal

08/18/2017 at 04:33PM

17
#23 - Terry Ding / @TerryDing77

08/22/2017 at 09:33PM

17
#24 - Marcos de Oliveira / @MsOliveiraa

08/24/2017 at 01:39PM

17
#25 - Scott Smith / @Scottaino

08/24/2017 at 04:25PM

17
#26 - Darren Weston / @dazWestonUK

08/30/2017 at 01:31PM

17
#27 - zava / @znl1087

09/03/2017 at 01:56PM

17
#28 - aselaIllayaparachchi / @asela38

09/11/2017 at 08:14AM

17
#29 - exsaber / @exsaber508

09/22/2017 at 05:04AM

17
#30 - Karamfil / @lz1aai

09/24/2017 at 10:25PM