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

271 active golfers, 1237 entries

Leaderboard (lowest score wins):
18
#91 - Vim Girl / @vim_girl

07/19/2017 at 11:41PM

18
#92 - Etienne Dilocker / @etiennedi

07/20/2017 at 07:42PM

18
#93 - Cristian Lupașcu / @clupasq

07/21/2017 at 06:41AM

18
#94 - Robert Mosher / @rcmosher

07/21/2017 at 02:26PM

18
#95 - devoh / @devvohh

07/27/2017 at 05:10PM

18
#96 - adeel hussain / @adeelhussain

07/28/2017 at 04:40AM

18
#97 - Daniel / @0x9ABC

08/14/2017 at 07:54PM

18
#98 - Andrew Hlavats / @farthestworld

08/15/2017 at 08:02PM

18
#99 - dayshade / @dayshade_7

08/30/2017 at 04:09PM

18
#100 - 郑晓东 / @DGivxLTVopiOQap

09/13/2017 at 09:16AM

18
#101 - elmoloves / @ElmoLovesSilly

09/20/2017 at 06:08PM

18
#102 - Brian Hall / @_bruab_

09/25/2017 at 03:17PM

18
#103 - garry quested / @GQuested

09/26/2017 at 09:11AM

18
#104 - Sergio / @voyeg3r

09/26/2017 at 03:13PM

18
#105 - Ben Hill / @KaizenSoze70

10/10/2017 at 05:28PM

18
#106 - popo5colo / @popo5colo1

10/31/2017 at 09:05AM

18
#107 - BouboulouVimGolf / @BouboulouVG

10/31/2017 at 05:45PM

18
#108 - r8923vqnu89wcnar / @r8923vqnu89wcn1

11/20/2017 at 12:08PM

18
#109 - Kerson Hsiao / @KersonHsiao

12/07/2017 at 02:17AM

18
#110 - Henrique Malheiro / @rike09

02/10/2018 at 07:13PM

18
#111 - Bart Reynolds / @bartums

02/28/2018 at 12:10PM

18
#112 - LC / @leeren

03/01/2018 at 07:51AM

18
#113 - Pablo / @suspekt007

04/07/2018 at 09:07AM

18
#114 - Francesco Sacchi / @depsir

07/16/2018 at 09:19PM

18
#115 - yqu212 / @yqu212

07/27/2018 at 08:18AM

18
#116 - Rajesh Sharma / @deepredsky

07/30/2018 at 06:36PM

18
#117 - Jeff / @sir_wiggles3

09/08/2018 at 01:40AM

18
#118 - François Marais / @maraisf

10/14/2018 at 03:49PM

18
#119 - Nir Givon / @nir_givon

11/11/2018 at 03:18PM

19
#120 - Owen / @owengeorge_

09/20/2017 at 12:36PM