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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

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

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

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

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

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

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

0 comments

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

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

88 active golfers, 290 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

18
#24 - Joonas Pihlajamaa / jokkebk

07/19/2017 at 12:55PM

18
#25 - Song Zheng / songz

07/19/2017 at 08:32PM

18
#26 - Vim Girl / vim_girl

07/19/2017 at 11:41PM

18
#27 - Etienne Dilocker / etiennedi

07/20/2017 at 07:42PM

18
#28 - Cristian Lupașcu / clupasq

07/21/2017 at 06:41AM

18
#29 - Robert Mosher / rcmosher

07/21/2017 at 02:26PM

18
#30 - devoh / devvohh

07/27/2017 at 05:10PM

18
#31 - adeel hussain / adeelhussain

07/28/2017 at 04:40AM

18
#32 - Daniel / 0x9ABC

08/14/2017 at 07:54PM

18
#33 - Andrew Hlavats / farthestworld

08/15/2017 at 08:02PM

20
#34 - kungfuchad / kungfuchad

07/18/2017 at 11:44AM

20
#35 - Jan Bundesmann / ixjab

07/18/2017 at 02:04PM

20
#36 - Brian Hall / _bruab_

07/18/2017 at 03:44PM

20
#37 - tPenguinLTG / tpenguinltg

07/19/2017 at 12:54PM

20
#38 - Eric Potter / pottereric

07/19/2017 at 02:48PM

20
#39 - Joe Reddington / joereddington

07/20/2017 at 05:36AM

20
#40 - William Mox Drossard / sadeden

07/21/2017 at 08:59AM

20
#41 - jl / jl4096

07/21/2017 at 08:32PM

20
#42 - Preben Guldberg / wielder

07/23/2017 at 07:36PM

20
#43 - Jonathan Eidsness / jonathaneidsnes

07/24/2017 at 06:58PM

20
#44 - Bruce Park / bpark0

08/14/2017 at 01:07AM

21
#45 - Anne Pacalet / _Anne_P

07/18/2017 at 12:08PM

21
#46 - Jacob Buete / JBuete

07/19/2017 at 04:24AM

21
#47 - Benoit Tigeot / Benoit_Tgt

07/20/2017 at 06:27PM

21
#48 - thanh le / thadeuszlay

07/24/2017 at 12:51AM

21
#49 - Xavier Laviron / XavierLaviron

07/25/2017 at 12:02PM

22
#50 - Tom Taylor / larsonsduck

07/18/2017 at 02:50PM

22
#51 - Vedro / Vedro03557622

07/27/2017 at 09:12PM

22
#52 - Christian Stammen / c0smiq

07/28/2017 at 01:46PM

22
#53 - Da1whotaints / da1whotaints

07/29/2017 at 11:23PM

22
#54 - Baine Wedlock / BaineWedlock

08/10/2017 at 04:06PM

23
#55 - えるざっぷ / _elzup_

07/26/2017 at 03:49AM

24
#56 - Thomas Steinbach / thomasstei

07/19/2017 at 03:32PM

25
#57 - Hu Ho Xu / huhoxu

07/24/2017 at 08:51PM

25
#58 - Lonnon Foster / lonnon

08/04/2017 at 04:24PM

25
#59 - Brony PlusOne / BronyPlusOne

08/04/2017 at 11:06PM

26
#60 - Rowan Tree / RowanTr88447528

07/20/2017 at 05:25AM

26
#61 - TweetDreams / TweetMusicians

07/26/2017 at 05:59AM

26
#62 - Jorge / jherreso

07/26/2017 at 06:14AM

26
#63 - Ryan Patterson / CGamesPlay

08/18/2017 at 02:56AM

27
#64 - Paul Sonkoly / Phaul

08/15/2017 at 08:16AM

28
#65 - Denis Kaluznyy / Spy_Denis

07/18/2017 at 12:26PM

28
#66 - Anton Styagun / astyagun

07/18/2017 at 02:29PM

28
#67 - blamitter / blamitter

07/18/2017 at 05:31PM

29
#68 - Agung Tiso Sorlawan / Tisorlawan

07/18/2017 at 05:03PM

29
#69 - Gurukandhamoorthi / Gurukandhamoor1

07/18/2017 at 05:06PM

29
#70 - William Dunand / wdunand

07/24/2017 at 01:08AM

29
#71 - Cheer / yougec

08/11/2017 at 02:34AM

29
#72 - ken ore / ken60625

08/18/2017 at 03:21PM

30
#73 - 黒澤亮二 / rjkuro

07/18/2017 at 12:53PM

30
#74 - AleksandarTrifunovic / akstrfn

07/18/2017 at 04:53PM

30
#75 - Ewoud Smeur / Ewoud90

07/19/2017 at 11:46AM

30
#76 - Stephan Bugnon / stephanbugnon

07/19/2017 at 04:51PM

30
#77 - Harsh Kumar / datsleepyguy

07/21/2017 at 03:29PM

30
#78 - Cyrus Nikolaidis / CyrusNikolaidis

08/20/2017 at 06:55PM

34
#79 - matthew / mdespuits

08/21/2017 at 04:36PM

41
#80 - Karl Hepler / oldtimeguitar

07/26/2017 at 03:12PM

41
#81 - Ryan Coopersmith / RyanCoopersmit1

07/29/2017 at 04:35PM

45
#82 - Meg Blub / BlubMeg

08/06/2017 at 03:06PM

48
#83 - ♜ Pepe Doval / pepellou

07/18/2017 at 05:00PM

48
#84 - Zachary Neubert / Mr_Saturn16347

07/19/2017 at 06:55PM

50
#85 - Forrest Dworsky / ForrestDworsky

08/01/2017 at 05:20PM

74
#86 - Miki Tebeka / tebeka

07/19/2017 at 03:35PM

91
#87 - fuku1026 / fukusuke1026

07/18/2017 at 02:34PM

227
#88 - Tony Ren / STXSoulMine

08/04/2017 at 04:30PM