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

280 active golfers, 1297 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

17
#9 - Gabriel Siqueira / @Gabriel_HSiq

07/20/2017 at 04:25PM

17
#10 - Urtica dioica / @udioica

07/20/2017 at 05:50PM

17
#11 - John Braxler / @braxler

07/20/2017 at 05:54PM

17
#12 - Smylers / @Smylers2

07/20/2017 at 06:16PM

17
#13 - Sandra Rojo Duarte / @SandraRojoDuart

07/20/2017 at 06:39PM

17
#14 - Juan Colacelli / @juancolacelli

07/20/2017 at 10:55PM

17
#15 - Dan Simmons / @simmons_dan

07/21/2017 at 02:33PM

17
#16 - brandon salmon / @Exiledz

07/23/2017 at 07:23AM

17
#17 - Petro Тrouq / @zulolosi

07/23/2017 at 04:05PM

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

07/23/2017 at 04:29PM

17
#19 - Saki Gw / @Sakigw

07/24/2017 at 01:59PM

17
#20 - flykule / @flykule

07/26/2017 at 03:27AM

17
#21 - Karol Łukaszewicz / @Karolukaszewicz

07/31/2017 at 10:51AM

17
#22 - Blake Tereau / @BlakeTereau

07/31/2017 at 01:40PM

17
#23 - Will / @obiwan__k3n00bi

08/02/2017 at 07:02AM

17
#24 - huho / @huho_xu

08/03/2017 at 07:36PM

17
#25 - Vaughn Cato / @vaughncato

08/05/2017 at 04:51PM

17
#26 - Plop plop / @plopplopplop6

08/07/2017 at 08:39PM

17
#27 - Ky Statham / @ijustwannacode

08/09/2017 at 07:25PM

17
#28 - Birger / @Birger_Ni

08/10/2017 at 12:22PM

17
#29 - Floris van Liere / @FlorisvanLiere

08/16/2017 at 09:25PM

17
#30 - Sumit Agrawal / @sumitagrawal

08/18/2017 at 04:33PM