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):
24
#181 - Mr. F / @Flur1n

10/04/2017 at 01:42PM

24
#182 - Vaughan 〠 / @nyx_mmix

02/27/2018 at 07:28AM

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

04/10/2018 at 06:19PM

24
#184 - Weston Neal / @wtneal

09/05/2018 at 11:42PM

24
#185 - Titouan Teyssier / @TitouanT_

03/08/2019 at 10:45AM

24
#186 - Amado Antonini / @AmadoAntonini

03/17/2019 at 12:32PM

25
#187 - Hu Ho Xu / @huhoxu

07/24/2017 at 08:51PM

25
#188 - Lonnon Foster / @lonnon

08/04/2017 at 04:24PM

25
#189 - Brony PlusOne / @BronyPlusOne

08/04/2017 at 11:06PM

25
#190 - Marc Grimpo / @MarcGrimpo

08/26/2017 at 03:08AM

25
#191 - Cyhors / @Cyhors

09/14/2017 at 07:18AM

25
#192 - Alonzo / @tolver_a

09/17/2017 at 09:56AM

25
#193 - Bradley M. Small / @BradleySmall

11/21/2017 at 07:48PM

25
#194 - Jack Magnus / @jadomag

08/04/2018 at 08:45PM

25
#195 - tenteke / @kuskus3

02/17/2019 at 04:56AM

26
#196 - Rowan Tree / @RowanTr88447528

07/20/2017 at 05:25AM

26
#197 - TweetDreams / @TweetMusicians

07/26/2017 at 05:59AM

26
#198 - Jorge / @jherreso

07/26/2017 at 06:14AM

26
#199 - Ryan Patterson / @CGamesPlay

08/18/2017 at 02:56AM

26
#200 - David / @Latiku

08/25/2017 at 01:22PM

26
#201 - herbage / @herbage2

09/21/2017 at 10:48PM

26
#202 - Elton Kamami / @pixel_grid

10/07/2017 at 10:21PM

26
#203 - ryuugekisya / @ryuugekisya

11/04/2017 at 09:56AM

26
#204 - Pereant osores / @viniciusxp

12/11/2017 at 07:04AM

26
#205 - Jacky / @MrBearPan

03/27/2018 at 05:46AM

26
#206 - nomsayin / @nomsayin

04/16/2018 at 12:09AM

26
#207 - 名為ZYL / @me10zyl

06/07/2018 at 02:14AM

26
#208 - Gemille Ford / @gemilleford

07/02/2018 at 05:54PM

26
#209 - Pfhor / @PfhorShark

08/06/2018 at 07:47PM

26
#210 - PJ Frazer / @pj_frazer

12/02/2018 at 02:12AM