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
#31 - F / gofilby

09/26/2017 at 07:45PM

17
#32 - Luke Bryant / LukeBryant55

10/01/2017 at 06:40PM

17
#33 - Jon Wålstedt / jonwalstedt

10/01/2017 at 09:21PM

17
#34 - Stephen Betts / stephenbetts

10/04/2017 at 06:23PM

17
#35 - George Rabanca / grabanca

10/15/2017 at 06:25PM

17
#36 - Michail Pishchagin / mblsha

10/22/2017 at 03:25PM

17
#37 - Turkey Man / lvturkeyman

11/08/2017 at 01:11AM

17
#38 - Benoit Mortgat / Benoit_Mortgat

11/13/2017 at 08:57PM

17
#39 - oops / oopserror404

11/17/2017 at 04:24PM

17
#40 - Luis Pigueiras / LPigueiras

11/20/2017 at 12:11PM

17
#41 - BareTull / BareTull3

12/03/2017 at 10:50AM

17
#42 - 梧桐王子 / WutongYujie

12/05/2017 at 12:33PM

17
#43 - Joachim Wedin / joachim_wedin

12/12/2017 at 03:40PM

17
#44 - Sage san / sagesancast

12/18/2017 at 04:48PM

17
#45 - BarbaJol / drpproteus

12/30/2017 at 02:21PM

17
#46 - Alphonse Mariya / alfunx

01/08/2018 at 07:14PM

17
#47 - ParasamGateZero / ParasamGateZero

01/15/2018 at 01:47AM

17
#48 - Sergey Ryabko / RyabkoSergey

01/21/2018 at 07:22PM

17
#49 - Matthew Rademaker / radamakar

01/24/2018 at 02:42AM

17
#50 - Jacob Tailor / spydronex

01/25/2018 at 09:39PM

17
#51 - Arijus / argshook

02/02/2018 at 10:02AM

17
#52 - martin tourneboeuf / martintournebo1

02/07/2018 at 08:44PM

17
#53 - thadeuszlay / thadeuszlay

02/08/2018 at 04:27PM

17
#54 - bruno / LokoPoggi

02/24/2018 at 02:20AM

17
#55 - Guirec CORBEL / GuirecCorbel

02/27/2018 at 01:08AM

17
#56 - Steven Petsche / StevenPetsche

03/12/2018 at 04:50AM

17
#57 - Chris Sutton / cs1379320

03/12/2018 at 05:03AM

17
#58 - towc / MateiCopot

04/02/2018 at 10:11AM

17
#59 - DHM / DHM29978992

04/11/2018 at 06:53PM

17
#60 - Evgeny`s Kindle / EvgenyKindle

04/24/2018 at 08:23AM