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

402 active golfers, 2088 entries

Leaderboard (lowest score wins):
39
#361 - Sébastien Roccaserra / @sroccaserra

01/26/2019 at 01:23AM

39
#362 - Anthony Catterwell / @ACatterwell

03/11/2019 at 12:29AM

39
#363 - shota_ogswr / @shota_ogasawara

11/24/2019 at 03:42PM

41
#364 - Karl Hepler / @oldtimeguitar

07/26/2017 at 03:12PM

41
#365 - Ryan Coopersmith / @RyanCoopersmit1

07/29/2017 at 04:35PM

41
#366 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 03:25AM

41
#367 - abhijeet patil / @abhijeetptl5

09/02/2020 at 09:01PM

44
#368 - vito / @vito49999722

08/17/2020 at 07:36PM

45
#369 - Meg Blub / @BlubMeg

08/06/2017 at 03:06PM

45
#370 - Тёма / @Timon_Surikat

01/31/2019 at 05:10PM

45
#371 - john ford / @johnfor65634499

04/24/2019 at 09:23PM

45
#372 - Jonathan Jeffrey / @projjects

12/06/2019 at 03:56PM

45
#373 - mp / @mp28812322

07/18/2020 at 04:26AM

47
#374 - Martin Huter / @marhat87

03/18/2020 at 07:30AM

47
#375 - Zestv / @fuesii

03/18/2020 at 08:31AM

48
#376 - ♜ Pepe Doval / @pepellou

07/18/2017 at 05:00PM

48
#377 - Zachary Neubert / @Mr_Saturn16347

07/19/2017 at 06:55PM

48
#378 - Geoff / @RealGeoffErwin

09/28/2017 at 07:23PM

48
#379 - TimMcGuire / @mcguire

12/27/2018 at 11:43AM

48
#380 - mirsemen / @mirsemen1

07/16/2019 at 03:30AM

50
#381 - Forrest Dworsky / @ForrestDworsky

08/01/2017 at 05:20PM

50
#382 - Noah Epstein / @NoahJEpstein

04/15/2019 at 04:41AM

52
#383 - かりうむ / @ka1l

11/15/2017 at 11:51AM

52
#384 - JimmyGymglish / @JGymglish

01/15/2020 at 08:56AM

54
#385 - diwa / @Di_nate_

11/23/2018 at 08:53AM

54
#386 - Mustapha Hamoui / @Beirutspring

05/21/2020 at 09:15PM

56
#387 - Kaydo Alders / @Yousousen

03/14/2018 at 06:07PM

56
#388 - Kevin Cooler / @KevinCooler

08/10/2018 at 04:31PM

56
#389 - Herman Stavelin / @HsBruker

04/24/2019 at 08:06PM

56
#390 - Jason / @roosjason

04/20/2020 at 03:47AM