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):
17
#91 - Benjamin Kiesl / @BenjaminKiesl

10/12/2018 at 12:32PM

17
#92 - Sebastian Korten / @FlashKorten

10/13/2018 at 11:30AM

17
#93 - Andreas Nordahl / @andreasnordahl

11/27/2018 at 08:50AM

17
#94 - Jonathan Cabezas / @John_Harkan

11/27/2018 at 12:49PM

17
#95 - Anant Mishra / @anantanni22

12/12/2018 at 08:01AM

17
#96 - abgalphabet / @abgalphabet

01/15/2019 at 03:29PM

17
#97 - 默罕默德 / @Rt6RjEAJ987Woes

02/16/2019 at 12:37PM

17
#98 - enji / @enji_ja

03/19/2019 at 04:33PM

17
#99 - Parsa Amini / @ParsaAmini

03/20/2019 at 07:06PM

17
#100 - james_bunch / @james_bunch

04/14/2019 at 08:03PM

17
#101 - alekfed / @alek_fed

04/15/2019 at 06:47AM

17
#102 - Gitsnik / @dracyrys

04/22/2019 at 11:36AM

17
#103 - Sherab Giovannini / @shaddycls

05/02/2019 at 10:20PM

17
#104 - ささ / @nick11033

05/16/2019 at 12:59PM

18
#105 - Joonas Pihlajamaa / @jokkebk

07/19/2017 at 12:55PM

18
#106 - Song Zheng / @songz

07/19/2017 at 08:32PM

18
#107 - Vim Girl / @vim_girl

07/19/2017 at 11:41PM

18
#108 - Etienne Dilocker / @etiennedi

07/20/2017 at 07:42PM

18
#109 - Cristian Lupașcu / @clupasq

07/21/2017 at 06:41AM

18
#110 - Robert Mosher / @rcmosher

07/21/2017 at 02:26PM

18
#111 - devoh / @devvohh

07/27/2017 at 05:10PM

18
#112 - adeel hussain / @adeelhussain

07/28/2017 at 04:40AM

18
#113 - Daniel / @0x9ABC

08/14/2017 at 07:54PM

18
#114 - Andrew Hlavats / @farthestworld

08/15/2017 at 08:02PM

18
#115 - dayshade / @dayshade_7

08/30/2017 at 04:09PM

18
#116 - 郑晓东 / @DGivxLTVopiOQap

09/13/2017 at 09:16AM

18
#117 - elmoloves / @ElmoLovesSilly

09/20/2017 at 06:08PM

18
#118 - Brian Hall / @_bruab_

09/25/2017 at 03:17PM

18
#119 - garry quested / @GQuested

09/26/2017 at 09:11AM

18
#120 - Sergio / @voyeg3r

09/26/2017 at 03:13PM