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):
22
#151 - Pascal / @herr_planlos

08/25/2017 at 08:31AM

22
#152 - Sean Moogan / @Moogarillo

09/22/2017 at 04:55PM

22
#153 - Stefan Knudsen / @knud32

10/08/2017 at 01:57AM

22
#154 - Martin Pedersen / @M4R7iNP

12/29/2017 at 03:44PM

22
#155 - deepak / @utopianmonk

01/17/2018 at 02:33PM

22
#156 - matthew brett / @matthewbrett

03/26/2018 at 08:26AM

22
#157 - Finn Francis / @FinnFrancis

10/30/2018 at 11:03PM

23
#158 - えるざっぷ / @_elzup_

07/26/2017 at 03:49AM

23
#159 - Rachel Murray / @RachelMurray11

08/28/2017 at 11:42AM

23
#160 - Hans Yelek / @hans_yelek

08/30/2017 at 03:07AM

23
#161 - Graham Bates / @gigabates

09/16/2017 at 08:49PM

23
#162 - Tim / @timothyscosta

03/30/2018 at 05:17PM

23
#163 - mass / @mass256

07/06/2018 at 08:04AM

23
#164 - Roberto Martínez / @nilp0inter

08/20/2018 at 10:33PM

23
#165 - 🌀🦋Miriam Retka🦋🌀 / @miriamretka

08/21/2018 at 10:49PM

24
#166 - Thomas Steinbach / @thomasstei

07/19/2017 at 03:32PM

24
#167 - Hans Vennegoor / @HansVennegoor

08/24/2017 at 04:56PM

24
#168 - Mr. F / @Flur1n

10/04/2017 at 01:42PM

24
#169 - Vaughan 〠 / @nyx_mmix

02/27/2018 at 07:28AM

24
#170 - Михаил Фуфин / @MishaFufin

04/10/2018 at 06:19PM

24
#171 - Weston Neal / @wtneal

09/05/2018 at 11:42PM

25
#172 - Hu Ho Xu / @huhoxu

07/24/2017 at 08:51PM

25
#173 - Lonnon Foster / @lonnon

08/04/2017 at 04:24PM

25
#174 - Brony PlusOne / @BronyPlusOne

08/04/2017 at 11:06PM

25
#175 - Marc Grimpo / @MarcGrimpo

08/26/2017 at 03:08AM

25
#176 - Cyhors / @Cyhors

09/14/2017 at 07:18AM

25
#177 - Alonzo / @tolver_a

09/17/2017 at 09:56AM

25
#178 - Bradley M. Small / @BradleySmall

11/21/2017 at 07:48PM

25
#179 - Jack Magnus / @jadomag

08/04/2018 at 08:45PM

26
#180 - Rowan Tree / @RowanTr88447528

07/20/2017 at 05:25AM