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

448 active golfers, 2417 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

16
#21 - skamgolf / @skamgolf

12/02/2019 at 04:54AM

16
#22 - mowglian / @mowglian

01/21/2020 at 03:34PM

16
#23 - howanto / @ho_wan_

02/22/2020 at 12:21PM

16
#24 - countime / @countime1

03/10/2020 at 06:15AM

16
#25 - Oleg / @colega

03/22/2020 at 12:12PM

16
#26 - edvrds / @edvrds

04/19/2020 at 04:40PM

16
#27 - Arthur Goodman / @ArthurGoodman3

05/01/2020 at 06:57PM

16
#28 - Manish Baghel / @ManishBaghelz

05/14/2020 at 08:48AM

16
#29 - 于吉星 / @fishermryn

05/27/2020 at 10:43AM

16
#30 - Valdimar / @genkobar

06/07/2020 at 09:13PM