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 132 remaining solutions by signing in and submitting your own entry
#133 Cheer / yougec - Score: 29 - 08/11/17 @ 02:34
jxklqqmm<CR>df,`mlplq9@qkJr,hxZZ

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

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

0 comments

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

0 comments

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

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

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

#158 ♜ 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

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

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

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

#162 かりうむ / 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

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

0 comments

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

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

165 active golfers, 612 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

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

18
#43 - Joonas Pihlajamaa / jokkebk

07/19/2017 at 12:55PM

18
#44 - Song Zheng / songz

07/19/2017 at 08:32PM

18
#45 - Vim Girl / vim_girl

07/19/2017 at 11:41PM

18
#46 - Etienne Dilocker / etiennedi

07/20/2017 at 07:42PM

18
#47 - Cristian Lupașcu / clupasq

07/21/2017 at 06:41AM

18
#48 - Robert Mosher / rcmosher

07/21/2017 at 02:26PM

18
#49 - devoh / devvohh

07/27/2017 at 05:10PM

18
#50 - adeel hussain / adeelhussain

07/28/2017 at 04:40AM

18
#51 - Daniel / 0x9ABC

08/14/2017 at 07:54PM

18
#52 - Andrew Hlavats / farthestworld

08/15/2017 at 08:02PM

18
#53 - dayshade / dayshade_7

08/30/2017 at 04:09PM

18
#54 - 郑晓东 / DGivxLTVopiOQap

09/13/2017 at 09:16AM

18
#55 - elmoloves / ElmoLovesSilly

09/20/2017 at 06:08PM

18
#56 - Brian Hall / _bruab_

09/25/2017 at 03:17PM

18
#57 - garry quested / GQuested

09/26/2017 at 09:11AM

18
#58 - Sergio / voyeg3r

09/26/2017 at 03:13PM

18
#59 - Ben Hill / KaizenSoze70

10/10/2017 at 05:28PM

18
#60 - popo5colo / popo5colo1

10/31/2017 at 09:05AM

18
#61 - BouboulouVimGolf / BouboulouVG

10/31/2017 at 05:45PM

18
#62 - r8923vqnu89wcnar / r8923vqnu89wcn1

11/20/2017 at 12:08PM

18
#63 - Kerson Hsiao / KersonHsiao

12/07/2017 at 02:17AM

19
#64 - Owen / owengeorge_

09/20/2017 at 12:36PM

20
#65 - kungfuchad / kungfuchad

07/18/2017 at 11:44AM

20
#66 - Jan Bundesmann / ixjab

07/18/2017 at 02:04PM

20
#67 - tPenguinLTG / tpenguinltg

07/19/2017 at 12:54PM

20
#68 - Eric Potter / pottereric

07/19/2017 at 02:48PM

20
#69 - Joe Reddington / joereddington

07/20/2017 at 05:36AM

20
#70 - William Mox Drossard / sadeden

07/21/2017 at 08:59AM

20
#71 - jl / jl4096

07/21/2017 at 08:32PM

20
#72 - Preben Guldberg / wielder

07/23/2017 at 07:36PM

20
#73 - Jonathan Eidsness / jonathaneidsnes

07/24/2017 at 06:58PM

20
#74 - Bruce Park / bpark0

08/14/2017 at 01:07AM

20
#75 - Nguyễn Đăng Quang / bkhnjkt

09/12/2017 at 02:17AM

20
#76 - ylletyll / ylletyll

10/01/2017 at 04:08PM

21
#77 - Anne Pacalet / _Anne_P

07/18/2017 at 12:08PM

21
#78 - Jacob Buete / JBuete

07/19/2017 at 04:24AM

21
#79 - Benoit Tigeot / Benoit_Tgt

07/20/2017 at 06:27PM

21
#80 - thanh le / thadeuszlay

07/24/2017 at 12:51AM

21
#81 - Xavier Laviron / XavierLaviron

07/25/2017 at 12:02PM

21
#82 - bencvim / bencvim

09/01/2017 at 12:40AM

21
#83 - Zoltan Both / bothzoli

10/28/2017 at 08:16AM

22
#84 - Tom Taylor / larsonsduck

07/18/2017 at 02:50PM

22
#85 - Vedro / Vedro03557622

07/27/2017 at 09:12PM

22
#86 - Christian Stammen / c0smiq

07/28/2017 at 01:46PM

22
#87 - Da1whotaints / da1whotaints

07/29/2017 at 11:23PM

22
#88 - Baine Wedlock / BaineWedlock

08/10/2017 at 04:06PM

22
#89 - Pascal / herr_planlos

08/25/2017 at 08:31AM

22
#90 - Sean Moogan / Moogarillo

09/22/2017 at 04:55PM

22
#91 - Stefan Knudsen / knud32

10/08/2017 at 01:57AM

23
#92 - えるざっぷ / _elzup_

07/26/2017 at 03:49AM

23
#93 - Rachel Murray / RachelMurray11

08/28/2017 at 11:42AM

23
#94 - Hans Yelek / hans_yelek

08/30/2017 at 03:07AM

23
#95 - Graham Bates / gigabates

09/16/2017 at 08:49PM

24
#96 - Thomas Steinbach / thomasstei

07/19/2017 at 03:32PM

24
#97 - Hans Vennegoor / HansVennegoor

08/24/2017 at 04:56PM

24
#98 - Mr. F / Flur1n

10/04/2017 at 01:42PM

25
#99 - Hu Ho Xu / huhoxu

07/24/2017 at 08:51PM

25
#100 - Lonnon Foster / lonnon

08/04/2017 at 04:24PM

25
#101 - Brony PlusOne / BronyPlusOne

08/04/2017 at 11:06PM

25
#102 - Marc Grimpo / MarcGrimpo

08/26/2017 at 03:08AM

25
#103 - Cyhors / Cyhors

09/14/2017 at 07:18AM

25
#104 - Alonzo / tolver_a

09/17/2017 at 09:56AM

25
#105 - Bradley M. Small / BradleySmall

11/21/2017 at 07:48PM

26
#106 - Rowan Tree / RowanTr88447528

07/20/2017 at 05:25AM

26
#107 - TweetDreams / TweetMusicians

07/26/2017 at 05:59AM

26
#108 - Jorge / jherreso

07/26/2017 at 06:14AM

26
#109 - Ryan Patterson / CGamesPlay

08/18/2017 at 02:56AM

26
#110 - David / Latiku

08/25/2017 at 01:22PM

26
#111 - herbage / herbage2

09/21/2017 at 10:48PM

26
#112 - Elton Kamami / pixel_grid

10/07/2017 at 10:21PM

26
#113 - ryuugekisya / ryuugekisya

11/04/2017 at 09:56AM

26
#114 - Pereant osores / viniciusxp

12/11/2017 at 07:04AM

27
#115 - Paul Sonkoly / Phaul

08/15/2017 at 08:16AM

27
#116 - Anton Popov / agraver

10/06/2017 at 07:05PM

27
#117 - Chris Atanasian / ChrisAtanasian

10/09/2017 at 06:19PM

27
#118 - Philippe / cloonn1

11/03/2017 at 09:36PM

27
#119 - Philipp Aeschbach / ihbmifqerg

11/09/2017 at 04:36PM

28
#120 - Denis Kaluznyy / Spy_Denis

07/18/2017 at 12:26PM

28
#121 - Anton Styagun / astyagun

07/18/2017 at 02:29PM

28
#122 - blamitter / blamitter

07/18/2017 at 05:31PM

28
#123 - Gavin Faris / gavin_faris

08/25/2017 at 07:15PM

28
#124 - Daniel Wang / npbool

08/29/2017 at 11:39AM

28
#125 - Jay Honnold / zombywafflez

08/29/2017 at 09:33PM

28
#126 - sehe / sehetw

10/10/2017 at 01:26PM

28
#127 - Petar Saulic / gorillawarfare9

11/04/2017 at 11:49PM

28
#128 - Tommaso Leonardi / tom_leon

11/28/2017 at 03:58PM

28
#129 - Joachim Wedin / joachim_wedin

12/11/2017 at 07:59PM

29
#130 - Agung Tiso Sorlawan / Tisorlawan

07/18/2017 at 05:03PM

29
#131 - Gurukandhamoorthi / Gurukandhamoor1

07/18/2017 at 05:06PM

29
#132 - William Dunand / wdunand

07/24/2017 at 01:08AM

29
#133 - Cheer / yougec

08/11/2017 at 02:34AM

29
#134 - ken ore / ken60625

08/18/2017 at 03:21PM

29
#135 - SirVimGolf / SirVimGolf

08/23/2017 at 04:28PM

29
#136 - Jason / linlin110

08/24/2017 at 12:52AM

29
#137 - Zel / Zel98836552

09/07/2017 at 09:24PM

29
#138 - jirgn / jirgn

09/16/2017 at 05:58PM

29
#139 - Matt Rixman / MattRixman

10/10/2017 at 09:22PM

29
#140 - HC / soarersiuhc

10/21/2017 at 12:10AM

29
#141 - watermelon man / lonelyrollingdr

11/05/2017 at 03:41AM

30
#142 - 黒澤亮二 / rjkuro

07/18/2017 at 12:53PM

30
#143 - AleksandarTrifunovic / akstrfn

07/18/2017 at 04:53PM

30
#144 - Ewoud Smeur / Ewoud90

07/19/2017 at 11:46AM

30
#145 - Stephan Bugnon / stephanbugnon

07/19/2017 at 04:51PM

30
#146 - Harsh Kumar / datsleepyguy

07/21/2017 at 03:29PM

30
#147 - Cyrus Nikolaidis / CyrusNikolaidis

08/20/2017 at 06:55PM

30
#148 - Marcin Paliwoda / eukaliptuss

08/25/2017 at 12:46PM

30
#149 - Rodrigo Santa Cruz / rstcruzo

10/16/2017 at 04:26AM

31
#150 - Ricardo Santos / TWidXugA

11/21/2017 at 11:35PM

34
#151 - matthew / mdespuits

08/21/2017 at 04:36PM

35
#152 - Mathias Dahlhaus / mgdahlhaus

08/26/2017 at 11:54AM

35
#153 - h43z / h43z

09/30/2017 at 09:24PM

36
#154 - Ruben De Smet / rubdos

11/08/2017 at 05:54PM

41
#155 - Karl Hepler / oldtimeguitar

07/26/2017 at 03:12PM

41
#156 - Ryan Coopersmith / RyanCoopersmit1

07/29/2017 at 04:35PM

45
#157 - Meg Blub / BlubMeg

08/06/2017 at 03:06PM

48
#158 - ♜ Pepe Doval / pepellou

07/18/2017 at 05:00PM

48
#159 - Zachary Neubert / Mr_Saturn16347

07/19/2017 at 06:55PM

48
#160 - Jeff / RealJeffIrwin

09/28/2017 at 07:23PM

50
#161 - Forrest Dworsky / ForrestDworsky

08/01/2017 at 05:20PM

52
#162 - かりうむ / ka1l

11/15/2017 at 11:51AM

74
#163 - Miki Tebeka / tebeka

07/19/2017 at 03:35PM

91
#164 - fuku1026 / fukusuke1026

07/18/2017 at 02:34PM

227
#165 - Tony Ren / STXSoulMine

08/04/2017 at 04:30PM