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

346 active golfers, 1738 entries

Leaderboard (lowest score wins):
16
#1 - Jon Krause / @jkrause314

09/08/2018 at 09:37AM

16
#2 - royer / @RoyerMoyer1

09/24/2018 at 06:19PM

16
#3 - a / @UseForVim

10/06/2018 at 12:28PM

16
#4 - Tuomas Jokioja / @TJokioja

10/16/2018 at 07:51AM

16
#5 - Dax / @zacoxi

10/22/2018 at 12:39PM

16
#6 - Adam / @askoufish

10/23/2018 at 09:57PM

16
#7 - name / @name65894813

11/18/2018 at 08:29PM

16
#8 - Mihai / @mihaicristiant

11/30/2018 at 03:13PM

16
#9 - Ackman Syntax Error / @AckmanSux

12/24/2018 at 11:51AM

16
#10 - Turkey Man / @lvturkeyman

02/20/2019 at 06:53AM

16
#11 - k24w24 / @k24w24

03/30/2019 at 11:40AM

16
#12 - Grant / @grant_7788

04/28/2019 at 12:49PM

16
#13 - Miłosz Łakomy / @foobar01123

06/19/2019 at 05:23AM

16
#14 - Joe Fahnestock🌵 / @Joecupojoe

08/01/2019 at 07:16PM

16
#15 - sooqua / @sooqua

08/08/2019 at 07:35PM

16
#16 - Martin Delille / @martinodelilo

08/23/2019 at 03:36PM

16
#17 - Cassandra / @kascein

09/17/2019 at 04:12PM

16
#18 - Viktor Styrud / @ViktorStyrud

10/04/2019 at 06:26AM

16
#19 - Chen-Hung Wu / @utah12005

10/06/2019 at 06:04PM

16
#20 - Ivan Volosyuk / @IvanVolosyuk

10/30/2019 at 12:45PM

17
#21 - Gabriel Siqueira / @Gabriel_HSiq

07/20/2017 at 04:25PM

17
#22 - Urtica dioica / @udioica

07/20/2017 at 05:50PM

17
#23 - John Braxler / @braxler

07/20/2017 at 05:54PM

17
#24 - Smylers / @Smylers2

07/20/2017 at 06:16PM

17
#25 - Sandra Rojo Duarte / @SandraRojoDuart

07/20/2017 at 06:39PM

17
#26 - Juan Colacelli / @juancolacelli

07/20/2017 at 10:55PM

17
#27 - Dan Simmons / @simmons_dan

07/21/2017 at 02:33PM

17
#28 - brandon salmon / @Exiledz

07/23/2017 at 07:23AM

17
#29 - Petro Тrouq / @zulolosi

07/23/2017 at 04:05PM

17
#30 - Михаил Доронин / @Boris_B_London

07/23/2017 at 04:29PM