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

431 active golfers, 2312 entries

Leaderboard (lowest score wins):
17
#151 - Deepak Talan / @d02d33pak

04/07/2020 at 05:03PM

17
#152 - Skywalker 666 / @MemeMasterXXI

04/17/2020 at 02:50AM

17
#153 - Moatvald / @moatvald

04/24/2020 at 07:33AM

17
#154 - iBhagwan / @iiBhagwan

05/11/2020 at 11:21PM

17
#155 - Bob Streams / @BobStreams1

06/02/2020 at 08:45AM

17
#156 - otfsenter / @otfsenter

06/04/2020 at 04:03PM

17
#157 - smlbrngr / @smlbrngr

06/15/2020 at 02:25PM

17
#158 - mocihan / @mocihan

06/28/2020 at 10:37AM

17
#159 - Martin Bielik / @mabielik

09/05/2020 at 09:30PM

17
#160 - speisz / @speiszc

09/29/2020 at 10:27PM

17
#161 - RaylanFox / @RaylanFox

10/08/2020 at 08:05AM

17
#162 - roudens / @roudens2

12/19/2020 at 08:22AM

17
#163 - Duncan / @Duncan31503119

01/07/2021 at 02:58AM

17
#164 - Michel Viktor / @tomkpz

08/10/2021 at 05:15AM

17
#165 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 05:27PM

18
#166 - Joonas Pihlajamaa / @jokkebk

07/19/2017 at 12:55PM

18
#167 - Song Zheng / @songz

07/19/2017 at 08:32PM

18
#168 - Maricris Bonzo / @seemcat

07/19/2017 at 11:41PM

18
#169 - Etienne Dilocker / @etiennedi

07/20/2017 at 07:42PM

18
#170 - Cristian Lupașcu / @clupasq

07/21/2017 at 06:41AM

18
#171 - Robert Mosher / @rcmosher

07/21/2017 at 02:26PM

18
#172 - devoh / @devvohh

07/27/2017 at 05:10PM

18
#173 - adeel hussain / @adeelhussain

07/28/2017 at 04:40AM

18
#174 - dadav 🥀 / @__dadav__

08/14/2017 at 07:54PM

18
#175 - Andrew Hlavats / @farthestworld

08/15/2017 at 08:02PM

18
#176 - dayshade / @dayshade_7

08/30/2017 at 04:09PM

18
#177 - 郑晓东 / @DGivxLTVopiOQap

09/13/2017 at 09:16AM

18
#178 - elmoloves / @ElmoLovesSilly

09/20/2017 at 06:08PM

18
#179 - Brian Hall / @_bruab_

09/25/2017 at 03:17PM

18
#180 - garry quested / @GQuested

09/26/2017 at 09:11AM