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 173 remaining solutions by signing in and submitting your own entry
#174 Jay Knight / jayknight - Score: 28 - 05/03/18 @ 16:32
2lqqma<CR>lde`ap2lq9@q2hr,<CR>ddZZ

0 comments


#175 frank p / icedearth55 - Score: 28 - 05/11/18 @ 14:49
2lqqma<CR>lde`ap2lq9@q2hr,<CR>ddZZ

0 comments


#176 Jonathan Camilleri / Too_Many_Taken - Score: 28 - 05/24/18 @ 13:06
lmajqq`ade``P3lq9@qhhr,kddZZ

0 comments


#177 Kris Ezra / kris_ezra - Score: 28 - 06/13/18 @ 04:16
jwmaqqde<C-O>f,p`aq9@qea,j<Esc>jddZZ

0 comments


#178 Agung Tiso Sorlawan / Tisorlawan - Score: 29 - 07/18/17 @ 17:03
f,qqmm<CR>ldf,`mp;q9@qla,j<Esc>jddZZ

0 comments


#179 Gurukandhamoorthi / Gurukandhamoor1 - Score: 29 - 07/18/17 @ 17:06
jxklqqmm<CR>df,`mlplq9@qkJr,hxZZ

0 comments


#180 William Dunand / wdunand - Score: 29 - 07/24/17 @ 01:08
jlqqi<C-Y><C-Y><Esc>ki  <Esc>jllq9@qhhr,kddZZ

0 comments


#181 Cheer / yougec - Score: 29 - 08/11/17 @ 02:34
jxklqqmm<CR>df,`mlplq9@qkJr,hxZZ

0 comments


#182 ken ore / ken60625 - Score: 29 - 08/18/17 @ 15:21
jxklqqmm<CR>df,`mlplq9@qkJr,hxZZ

0 comments


#183 SirVimGolf / SirVimGolf - Score: 29 - 08/23/17 @ 16:28
f,qqma<CR>ldf,`ap;q9@qea,j<Esc>jddZZ

0 comments


#184 Jason / linlin110 - Score: 29 - 08/24/17 @ 00:52
%hqqjvhyklp4h<Esc>q9@qllr,jdd:wq<CR>

0 comments


#185 Zel / Zel98836552 - Score: 29 - 09/07/17 @ 21:24
jxklqqmm<CR>df,`mlplq9@qkJr,hxZZ

0 comments


#186 jirgn / jirgn - Score: 29 - 09/16/17 @ 17:58
qqf,mm2Gldf,`mpq8@qla,j<Esc>jddZZ

0 comments


#187 Matt Rixman / MattRixman - Score: 29 - 10/10/17 @ 21:22
jxklqqmm<CR>df,`mlplq9@qkJr,hxZZ

0 comments


#188 HC / soarersiuhc - Score: 29 - 10/21/17 @ 00:10
jxklqqmm<CR>df,`mlplq9@qkJr,hxZZ

0 comments


#189 watermelon man / lonelyrollingdr - Score: 29 - 11/05/17 @ 03:41
jxklqqmm<CR>df,`mlplq9@qkJr,hxZZ

0 comments


#190 Veljko Dimic / v2dimic - Score: 29 - 02/06/18 @ 22:37
f,qqmm<CR>ldf,`mp;q9@qla,j<Esc>jddZZ

0 comments


#191 GreenPinguin / GreenPinguin2 - Score: 29 - 03/08/18 @ 13:54
f,qqmm<CR>ldf,`mp;q9@qla,j<Esc>jddZZ

0 comments


#192 Jon Simpson / NodeStreamer - Score: 29 - 03/22/18 @ 22:12
jlqqi<C-Y><C-Y><Esc>ki  <Esc>jllq9@qhhr,kddZZ

0 comments


#193 黒澤亮二 / rjkuro - Score: 30 - 07/18/17 @ 12:53
$hqqjhy2wklp4bq9@qwwr,<Esc>jdd:wq<CR>

0 comments


#194 AleksandarTrifunovic / akstrfn - Score: 30 - 07/18/17 @ 16:53
f,qqmm<CR>ldf,`mpf,q9@qla,j<Esc><CR>ddZZ

0 comments


#195 Ewoud Smeur / Ewoud90 - Score: 30 - 07/19/17 @ 11:46
f,qqmm<CR>ldf,`mpf,q9@qla,j<Esc>jddZZ

0 comments


#196 Stephan Bugnon / stephanbugnon - Score: 30 - 07/19/17 @ 16:51
jx-qqf,mh+df,`hpq9@q$i,j<Esc>jddZZ

0 comments


#197 Harsh Kumar / datsleepyguy - Score: 30 - 07/21/17 @ 15:29
f,qqmm<CR>ldf,`mpf,q9@qla,j<Esc><CR>ddZZ

0 comments


#198 Cyrus Nikolaidis / CyrusNikolaidis - Score: 30 - 08/20/17 @ 18:55
f,qqmm<CR>ldf,`mpf,q9@qla,j<Esc>jddZZ

0 comments


#199 Marcin Paliwoda / eukaliptuss - Score: 30 - 08/25/17 @ 12:46
jxkqq2lmc+d2l`cpq10@qF]r,jddZZ

0 comments


#200 Rodrigo Santa Cruz / rstcruzo - Score: 30 - 10/16/17 @ 04:26
dda1,<Esc>hyllqqf,p<C-A>yla,<Esc>q8@qhhxZZ

0 comments


#201 Ricardo Santos / TWidXugA - Score: 31 - 11/21/17 @ 23:35
jxklqqmm<CR>df,`mlplq9@qkJr,hx:wq<CR>

0 comments


#202 matthew / mdespuits - Score: 34 - 08/21/17 @ 16:36
jlmakmbqq`a2x`b2lPlmbq8@qa,j<Esc>jddZZ

0 comments


#203 Mathias Dahlhaus / mgdahlhaus - Score: 35 - 08/26/17 @ 11:54
}qahi<C-Y>,h<Esc>uqqa<Esc>q<Right>lqah<C-Y>i<C-Y>,<Esc>hhq9@adBZZ

0 comments


#204 h43z / h43z - Score: 35 - 09/30/17 @ 21:24
ljmmklqqmp`mdf,`pp2wq10@qddf0a,j<Esc>ZZ

0 comments


#205 Ruben De Smet / rubdos - Score: 36 - 11/08/17 @ 17:54
jxkllmbqaj02dl`bpllmbq9@ahhr,jdd:wq<CR>

0 comments


#206 Karl Hepler / oldtimeguitar - Score: 41 - 07/26/17 @ 15:12
a<CR><Esc>gJs<BS>,<Esc>0qqf,a<CR><Esc>q19@q<C-V>9kld2G$pk11gJjdGZZ

0 comments


#207 Ryan Coopersmith / RyanCoopersmit1 - Score: 41 - 07/29/17 @ 16:35
dd:let i=1<CR>qqa<C-R>=i<CR>,<Esc>ll:let i+=1<CR>q9@qF1xZZ

0 comments


#208 Meg Blub / BlubMeg - Score: 45 - 08/06/17 @ 15:06
ddli1,<Right><Right>2,<Right><Right>3,<Right><Right>4,<Right><Right>5,<Right><Right>6,<Right><Right>7,<Right><Right>8,<Right><Right>9,<Right><Right>0,<Esc>ZZ

0 comments


#209 ♜ Pepe Doval / pepellou - Score: 48 - 07/18/17 @ 17:00
2wlCa,2,b,3,c,4,d,5,e,6,f,7,g,8,h,9,i,0,j]<Esc>jddZZ

0 comments


#210 Zachary Neubert / Mr_Saturn16347 - Score: 48 - 07/19/17 @ 18:55
R[1,a,2,b,3,c,4,d,5,e,6,f,7,g,8,h,9,i,0,j]<Esc>jddZZ

0 comments


#211 Jeff / RealJeffIrwin - Score: 48 - 09/28/17 @ 19:23
jlqqi<C-C><C-C>y<Esc><Esc><Esc><C-Y><C-Y><C-Y><C-Y>q0ggjlqqi<C-Y><C-Y><Esc>ki  <Esc>jllq9@qhhr,kddZZ

0 comments


#212 Forrest Dworsky / ForrestDworsky - Score: 50 - 08/01/17 @ 17:20
R[1,a,2,b,3,c,4,d,5,e,6,f,7,g,8,h,9,i,0,j]<Esc>jdd:wq<CR>

0 comments


#213 かりうむ / ka1l - Score: 52 - 11/15/17 @ 11:51
<C-V>jx$<C-V>jxA,<Esc>ggqall<C-V>j$xjo<Esc>pq9@agg20J:s<BS>%s/ //g<CR>i[<Esc>A]<Esc>ZZ

0 comments


#214 Kaydo Alders / Yousousen - Score: 56 - 03/14/18 @ 18:07
f,aa,<Esc>;ab,<Esc>;ac,<Esc>;ad,<Esc>;ae,<Esc>;af,<Esc>;ag,<Esc>;ah,<Esc>;ai,<Esc>$i,j<Esc>jddZZ

0 comments


#215 Miki Tebeka / tebeka - Score: 74 - 07/19/17 @ 15:35
V:s/,/,a,/g<CR>7lrb4lrc4lrd4lre4lrf4lrgrlrirlrjrirgrlrg4lrh4lri2la, j<Esc>hxjddZZ

0 comments


#216 fuku1026 / fukusuke1026 - Score: 91 - 07/18/17 @ 14:34
dd:%s///g<Left><Left><Left>,<Right>,,<CR>li1,<Esc>llli2<Esc>lllli3<Esc>lllli4<Esc>lllli5<Esc>lllli6<Esc>lllli7<Esc>lllli8<Esc>lllli9<Esc>lllli10<Left><BS><Esc>:wq<CR>

0 comments


#217 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

217 active golfers, 939 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