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 270 remaining solutions by signing in and submitting your own entry
#271 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

271 active golfers, 1237 entries

Leaderboard (lowest score wins):
19
#121 - ajsantander / @_ajsantander

11/07/2018 at 08:16PM

20
#122 - kungfuchad / @kungfuchad

07/18/2017 at 11:44AM

20
#123 - Jan Bundesmann / @janbundesmann

07/18/2017 at 02:04PM

20
#124 - tPenguinLTG / @tpenguinltg

07/19/2017 at 12:54PM

20
#125 - Eric Potter / @pottereric

07/19/2017 at 02:48PM

20
#126 - Joe Reddington / @joereddington

07/20/2017 at 05:36AM

20
#127 - William Mox Drossard / @sadeden

07/21/2017 at 08:59AM

20
#128 - jl / @jl4096

07/21/2017 at 08:32PM

20
#129 - Preben Guldberg / @wielder

07/23/2017 at 07:36PM

20
#130 - Jonathan Eidsness / @jonathaneidsnes

07/24/2017 at 06:58PM

20
#131 - Bruce Park / @bpark0

08/14/2017 at 01:07AM

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

09/12/2017 at 02:17AM

20
#133 - ylletyll / @ylletyll

10/01/2017 at 04:08PM

20
#134 - Martin H Juliussen / @martinjuliussen

05/11/2018 at 08:23PM

20
#135 - Norbert / @mullno

06/24/2018 at 12:53PM

20
#136 - daniel / @daniel31464605

08/29/2018 at 06:07AM

21
#137 - Anne Pacalet / @_Anne_P

07/18/2017 at 12:08PM

21
#138 - Jacob Buete / @JBuete

07/19/2017 at 04:24AM

21
#139 - Benoit Tigeot / @Benoit_Tgt

07/20/2017 at 06:27PM

21
#140 - PandaScript (Thanh Le) / @PandaScriptCom

07/24/2017 at 12:51AM

21
#141 - Xavier Laviron / @XavierLaviron

07/25/2017 at 12:02PM

21
#142 - bencvim / @bencvim

09/01/2017 at 12:40AM

21
#143 - Zoltan Both / @bothzoli

10/28/2017 at 08:16AM

21
#144 - Kubek2k / @kubek2k

03/23/2018 at 10:36PM

21
#145 - Levi Self / @LeviRSelf

11/19/2018 at 11:55PM

22
#146 - Tom Taylor / @larsonsduck

07/18/2017 at 02:50PM

22
#147 - Vedro / @Vedro03557622

07/27/2017 at 09:12PM

22
#148 - Christian Stammen / @c0smiq

07/28/2017 at 01:46PM

22
#149 - Da1whotaints / @da1whotaints

07/29/2017 at 11:23PM

22
#150 - Baine Wedlock / @BaineWedlock

08/10/2017 at 04:06PM