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):
26
#181 - TweetDreams / @TweetMusicians

07/26/2017 at 05:59AM

26
#182 - Jorge / @jherreso

07/26/2017 at 06:14AM

26
#183 - Ryan Patterson / @CGamesPlay

08/18/2017 at 02:56AM

26
#184 - David / @Latiku

08/25/2017 at 01:22PM

26
#185 - herbage / @herbage2

09/21/2017 at 10:48PM

26
#186 - Elton Kamami / @pixel_grid

10/07/2017 at 10:21PM

26
#187 - ryuugekisya / @ryuugekisya

11/04/2017 at 09:56AM

26
#188 - Pereant osores / @viniciusxp

12/11/2017 at 07:04AM

26
#189 - Jacky / @MrBearPan

03/27/2018 at 05:46AM

26
#190 - nomsayin / @nomsayin

04/16/2018 at 12:09AM

26
#191 - 名為ZYL / @me10zyl

06/07/2018 at 02:14AM

26
#192 - Gemille Ford / @gemilleford

07/02/2018 at 05:54PM

26
#193 - Pfhor / @PfhorShark

08/06/2018 at 07:47PM

27
#194 - Paul Sonkoly / @Phaul

08/15/2017 at 08:16AM

27
#195 - Anton Popov / @agraver

10/06/2017 at 07:05PM

27
#196 - Chris Atanasian / @ChrisAtanasian

10/09/2017 at 06:19PM

27
#197 - Philippe / @cloonn1

11/03/2017 at 09:36PM

27
#198 - Philipp Aeschbach / @ihbmifqerg

11/09/2017 at 04:36PM

27
#199 - James Houghton / @jamesthoughton

12/14/2017 at 06:58AM

27
#200 - Marcos Almeida / @almeidamarcos_

04/13/2018 at 11:20PM

28
#201 - Denis Kaluznyy / @Spy_Denis

07/18/2017 at 12:26PM

28
#202 - Anton Styagun / @astyagun

07/18/2017 at 02:29PM

28
#203 - blamitter ✏️ / @blamitter

07/18/2017 at 05:31PM

28
#204 - Gavin Faris / @gavin_faris

08/25/2017 at 07:15PM

28
#205 - Daniel Wang / @npbool

08/29/2017 at 11:39AM

28
#206 - Jay Honnold / @zombywafflez

08/29/2017 at 09:33PM

28
#207 - sehe / @sehetw

10/10/2017 at 01:26PM

28
#208 - Petar Saulic / @gorillawarfare9

11/04/2017 at 11:49PM

28
#209 - Tommaso Leonardi / @tom_leon

11/28/2017 at 03:58PM

28
#210 - Kim Hwa Joong / @hanmwoi

12/21/2017 at 12:47PM