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):
48
#211 - Jeff / RealJeffIrwin

09/28/2017 at 07:23PM

50
#212 - Forrest Dworsky / ForrestDworsky

08/01/2017 at 05:20PM

52
#213 - かりうむ / ka1l

11/15/2017 at 11:51AM

56
#214 - Kaydo Alders / Yousousen

03/14/2018 at 06:07PM

74
#215 - Miki Tebeka / tebeka

07/19/2017 at 03:35PM

91
#216 - fuku1026 / fukusuke1026

07/18/2017 at 02:34PM

227
#217 - Tony Ren / STXSoulMine

08/04/2017 at 04:30PM