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):
22
#121 - Sean Moogan / Moogarillo

09/22/2017 at 04:55PM

22
#122 - Stefan Knudsen / knud32

10/08/2017 at 01:57AM

22
#123 - Martin Pedersen / M4R7iNP

12/29/2017 at 03:44PM

22
#124 - deepak / utopianmonk

01/17/2018 at 02:33PM

22
#125 - matthew brett / matthewbrett

03/26/2018 at 08:26AM

23
#126 - えるざっぷ / _elzup_

07/26/2017 at 03:49AM

23
#127 - Rachel Murray / RachelMurray11

08/28/2017 at 11:42AM

23
#128 - Hans Yelek / hans_yelek

08/30/2017 at 03:07AM

23
#129 - Graham Bates / gigabates

09/16/2017 at 08:49PM

23
#130 - Tim / timothyscosta

03/30/2018 at 05:17PM

24
#131 - Thomas Steinbach / thomasstei

07/19/2017 at 03:32PM

24
#132 - Hans Vennegoor / HansVennegoor

08/24/2017 at 04:56PM

24
#133 - Mr. F / Flur1n

10/04/2017 at 01:42PM

24
#134 - Vaughan 〠 / nyx_mmix

02/27/2018 at 07:28AM

24
#135 - Михаил Фуфин / MishaFufin

04/10/2018 at 06:19PM

25
#136 - Hu Ho Xu / huhoxu

07/24/2017 at 08:51PM

25
#137 - Lonnon Foster / lonnon

08/04/2017 at 04:24PM

25
#138 - Brony PlusOne / BronyPlusOne

08/04/2017 at 11:06PM

25
#139 - Marc Grimpo / MarcGrimpo

08/26/2017 at 03:08AM

25
#140 - Cyhors / Cyhors

09/14/2017 at 07:18AM

25
#141 - Alonzo / tolver_a

09/17/2017 at 09:56AM

25
#142 - Bradley M. Small / BradleySmall

11/21/2017 at 07:48PM

26
#143 - Rowan Tree / RowanTr88447528

07/20/2017 at 05:25AM

26
#144 - TweetDreams / TweetMusicians

07/26/2017 at 05:59AM

26
#145 - Jorge / jherreso

07/26/2017 at 06:14AM

26
#146 - Ryan Patterson / CGamesPlay

08/18/2017 at 02:56AM

26
#147 - David / Latiku

08/25/2017 at 01:22PM

26
#148 - herbage / herbage2

09/21/2017 at 10:48PM

26
#149 - Elton Kamami / pixel_grid

10/07/2017 at 10:21PM

26
#150 - ryuugekisya / ryuugekisya

11/04/2017 at 09:56AM