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):
29
#181 - Cheer / yougec

08/11/2017 at 02:34AM

29
#182 - ken ore / ken60625

08/18/2017 at 03:21PM

29
#183 - SirVimGolf / SirVimGolf

08/23/2017 at 04:28PM

29
#184 - Jason / linlin110

08/24/2017 at 12:52AM

29
#185 - Zel / Zel98836552

09/07/2017 at 09:24PM

29
#186 - jirgn / jirgn

09/16/2017 at 05:58PM

29
#187 - Matt Rixman / MattRixman

10/10/2017 at 09:22PM

29
#188 - HC / soarersiuhc

10/21/2017 at 12:10AM

29
#189 - watermelon man / lonelyrollingdr

11/05/2017 at 03:41AM

29
#190 - Veljko Dimic / v2dimic

02/06/2018 at 10:37PM

29
#191 - GreenPinguin / GreenPinguin2

03/08/2018 at 01:54PM

29
#192 - Jon Simpson / NodeStreamer

03/22/2018 at 10:12PM

30
#193 - 黒澤亮二 / rjkuro

07/18/2017 at 12:53PM

30
#194 - AleksandarTrifunovic / akstrfn

07/18/2017 at 04:53PM

30
#195 - Ewoud Smeur / Ewoud90

07/19/2017 at 11:46AM

30
#196 - Stephan Bugnon / stephanbugnon

07/19/2017 at 04:51PM

30
#197 - Harsh Kumar / datsleepyguy

07/21/2017 at 03:29PM

30
#198 - Cyrus Nikolaidis / CyrusNikolaidis

08/20/2017 at 06:55PM

30
#199 - Marcin Paliwoda / eukaliptuss

08/25/2017 at 12:46PM

30
#200 - Rodrigo Santa Cruz / rstcruzo

10/16/2017 at 04:26AM

31
#201 - Ricardo Santos / TWidXugA

11/21/2017 at 11:35PM

34
#202 - matthew / mdespuits

08/21/2017 at 04:36PM

35
#203 - Mathias Dahlhaus / mgdahlhaus

08/26/2017 at 11:54AM

35
#204 - h43z / h43z

09/30/2017 at 09:24PM

36
#205 - Ruben De Smet / rubdos

11/08/2017 at 05:54PM

41
#206 - Karl Hepler / oldtimeguitar

07/26/2017 at 03:12PM

41
#207 - Ryan Coopersmith / RyanCoopersmit1

07/29/2017 at 04:35PM

45
#208 - Meg Blub / BlubMeg

08/06/2017 at 03:06PM

48
#209 - ♜ Pepe Doval / pepellou

07/18/2017 at 05:00PM

48
#210 - Zachary Neubert / Mr_Saturn16347

07/19/2017 at 06:55PM