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

312 active golfers, 1515 entries

Leaderboard (lowest score wins):
20
#151 - Martin H Juliussen / @martinjuliussen

05/11/2018 at 08:23PM

20
#152 - Norbert / @mullno

06/24/2018 at 12:53PM

20
#153 - daniel / @daniel31464605

08/29/2018 at 06:07AM

21
#154 - Anne Pacalet / @_Anne_P

07/18/2017 at 12:08PM

21
#155 - Jacob Buete / @JBuete

07/19/2017 at 04:24AM

21
#156 - Benoit Benoit / @Benoit_Tgt

07/20/2017 at 06:27PM

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

07/24/2017 at 12:51AM

21
#158 - Xavier Laviron / @XavierLaviron

07/25/2017 at 12:02PM

21
#159 - bencvim / @bencvim

09/01/2017 at 12:40AM

21
#160 - Zoltan Both / @bothzoli

10/28/2017 at 08:16AM

21
#161 - Kubek2k / @kubek2k

03/23/2018 at 10:36PM

21
#162 - Levi Self / @LeviRSelf

11/19/2018 at 11:55PM

21
#163 - Sören Schellhoff / @Jackokomm

11/21/2018 at 03:29PM

21
#164 - Scott / @chil2

04/01/2019 at 08:49PM

21
#165 - Titouan Teyssier / @TitouanT_

04/18/2019 at 08:28PM

22
#166 - Tom Taylor / @larsonsduck

07/18/2017 at 02:50PM

22
#167 - Vedro / @Vedro03557622

07/27/2017 at 09:12PM

22
#168 - Christian Stammen / @c0smiq

07/28/2017 at 01:46PM

22
#169 - Da1whotaints / @da1whotaints

07/29/2017 at 11:23PM

22
#170 - Baine Wedlock / @BaineWedlock

08/10/2017 at 04:06PM

22
#171 - Pascal / @herr_planlos

08/25/2017 at 08:31AM

22
#172 - Sean Moogan / @Moogarillo

09/22/2017 at 04:55PM

22
#173 - Stefan Knudsen / @knud32

10/08/2017 at 01:57AM

22
#174 - Martin Pedersen / @M4R7iNP

12/29/2017 at 03:44PM

22
#175 - deepak / @utopianmonk

01/17/2018 at 02:33PM

22
#176 - matthew brett / @matthewbrett

03/26/2018 at 08:26AM

22
#177 - Finn Francis / @FinnFrancis

10/30/2018 at 11:03PM

22
#178 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 03:03AM

23
#179 - えるざっぷ / @_elzup_

07/26/2017 at 03:49AM

23
#180 - Rachel Murray / @RachelMurray11

08/28/2017 at 11:42AM