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

299 active golfers, 1417 entries

Leaderboard (lowest score wins):
21
#151 - Xavier Laviron / @XavierLaviron

07/25/2017 at 12:02PM

21
#152 - bencvim / @bencvim

09/01/2017 at 12:40AM

21
#153 - Zoltan Both / @bothzoli

10/28/2017 at 08:16AM

21
#154 - Kubek2k / @kubek2k

03/23/2018 at 10:36PM

21
#155 - Levi Self / @LeviRSelf

11/19/2018 at 11:55PM

21
#156 - Sören Schellhoff / @Jackokomm

11/21/2018 at 03:29PM

22
#157 - Tom Taylor / @larsonsduck

07/18/2017 at 02:50PM

22
#158 - Vedro / @Vedro03557622

07/27/2017 at 09:12PM

22
#159 - Christian Stammen / @c0smiq

07/28/2017 at 01:46PM

22
#160 - Da1whotaints / @da1whotaints

07/29/2017 at 11:23PM

22
#161 - Baine Wedlock / @BaineWedlock

08/10/2017 at 04:06PM

22
#162 - Pascal / @herr_planlos

08/25/2017 at 08:31AM

22
#163 - Sean Moogan / @Moogarillo

09/22/2017 at 04:55PM

22
#164 - Stefan Knudsen / @knud32

10/08/2017 at 01:57AM

22
#165 - Martin Pedersen / @M4R7iNP

12/29/2017 at 03:44PM

22
#166 - deepak / @utopianmonk

01/17/2018 at 02:33PM

22
#167 - matthew brett / @matthewbrett

03/26/2018 at 08:26AM

22
#168 - Finn Francis / @FinnFrancis

10/30/2018 at 11:03PM

22
#169 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 03:03AM

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

07/26/2017 at 03:49AM

23
#171 - Rachel Murray / @RachelMurray11

08/28/2017 at 11:42AM

23
#172 - Hans Yelek / @hans_yelek

08/30/2017 at 03:07AM

23
#173 - Graham Bates / @gigabates

09/16/2017 at 08:49PM

23
#174 - Tim / @timothyscosta

03/30/2018 at 05:17PM

23
#175 - mass / @mass256

07/06/2018 at 08:04AM

23
#176 - Roberto Martínez / @nilp0inter

08/20/2018 at 10:33PM

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

08/21/2018 at 10:49PM

23
#178 - Korgan / @Korgan36725554

11/29/2018 at 04:28PM

24
#179 - Thomas Steinbach / @thomasstei

07/19/2017 at 03:32PM

24
#180 - Hans Vennegoor / @HansVennegoor

08/24/2017 at 04:56PM