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

366 active golfers, 1852 entries

Leaderboard (lowest score wins):
17
#121 - duyanh.y4n.pham / @PhamY4n

06/12/2019 at 03:00PM

17
#122 - Chester Yap / @Chest_ErYap

07/21/2019 at 09:37PM

17
#123 - Adam Hartz / @awareofnow

08/26/2019 at 01:46AM

17
#124 - therealgeysenberg / @therealgeysenb1

09/17/2019 at 01:13PM

17
#125 - Adrian Craciun / @adi_craciun

10/03/2019 at 06:29PM

17
#126 - Mario Olofo / @mario_olofo

10/22/2019 at 01:21AM

17
#127 - yousef Ibrahim / @YucefIbrahim

10/25/2019 at 12:27PM

17
#128 - Lory / @Lory46845742

11/07/2019 at 01:45PM

17
#129 - Dan Kilman / @dan_kilman

12/26/2019 at 10:56AM

17
#130 - Maksim / @its_terra

01/01/2020 at 08:13PM

17
#131 - floyd / @floyd10086

03/13/2020 at 04:49AM

17
#132 - Toby Hawkins / @Toby_Hawkins

03/17/2020 at 01:25AM

17
#133 - Deepak Talan / @d02d33pak

04/07/2020 at 05:03PM

18
#134 - Joonas Pihlajamaa / @jokkebk

07/19/2017 at 12:55PM

18
#135 - Song Zheng / @songz

07/19/2017 at 08:32PM

18
#136 - Vim Girl / @vim_girl

07/19/2017 at 11:41PM

18
#137 - Etienne Dilocker / @etiennedi

07/20/2017 at 07:42PM

18
#138 - Cristian Lupașcu / @clupasq

07/21/2017 at 06:41AM

18
#139 - Robert Mosher / @rcmosher

07/21/2017 at 02:26PM

18
#140 - devoh / @devvohh

07/27/2017 at 05:10PM

18
#141 - adeel hussain / @adeelhussain

07/28/2017 at 04:40AM

18
#142 - Daniel / @0x9ABC

08/14/2017 at 07:54PM

18
#143 - Andrew Hlavats / @farthestworld

08/15/2017 at 08:02PM

18
#144 - dayshade / @dayshade_7

08/30/2017 at 04:09PM

18
#145 - 郑晓东 / @DGivxLTVopiOQap

09/13/2017 at 09:16AM

18
#146 - elmoloves / @ElmoLovesSilly

09/20/2017 at 06:08PM

18
#147 - Brian Hall / @_bruab_

09/25/2017 at 03:17PM

18
#148 - garry quested / @GQuested

09/26/2017 at 09:11AM

18
#149 - Sergio / @voyeg3r

09/26/2017 at 03:13PM

18
#150 - Ben Hill / @KaizenSoze70

10/10/2017 at 05:28PM