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):
28
#211 - TpouHuK / @TpouHuK_

01/27/2018 at 08:31AM

28
#212 - Scott Kidder / @scottkidder

03/15/2018 at 05:05PM

28
#213 - Jay Knight / @jayknight

05/03/2018 at 04:32PM

28
#214 - frank p / @icedearth55

05/11/2018 at 02:49PM

28
#215 - Jonathan Camilleri / @Too_Many_Taken

05/24/2018 at 01:06PM

28
#216 - Kris Ezra / @kris_ezra

06/13/2018 at 04:16AM

28
#217 - Guilherme Costa / @guidohcosta

07/21/2018 at 11:58AM

29
#218 - Agung Tiso Sorlawan / @Tisorlawan

07/18/2017 at 05:03PM

29
#219 - Gurukandhamoorthi / @Gurukandhamoor1

07/18/2017 at 05:06PM

29
#220 - William Dunand / @wdunand

07/24/2017 at 01:08AM

29
#221 - Cheer / @yougec

08/11/2017 at 02:34AM

29
#222 - ken ore / @ken60625

08/18/2017 at 03:21PM

29
#223 - SirVimGolf / @SirVimGolf

08/23/2017 at 04:28PM

29
#224 - Jason / @linlin110

08/24/2017 at 12:52AM

29
#225 - Zel / @Zel98836552

09/07/2017 at 09:24PM

29
#226 - jirgn / @jirgn

09/16/2017 at 05:58PM

29
#227 - Matt Rixman / @MattRixman

10/10/2017 at 09:22PM

29
#228 - HC / @soarersiuhc

10/21/2017 at 12:10AM

29
#229 - watermelon man / @lonelyrollingdr

11/05/2017 at 03:41AM

29
#230 - Veljko Dimic / @v2dimic

02/06/2018 at 10:37PM

29
#231 - GreenPinguin / @GreenPinguin2

03/08/2018 at 01:54PM

29
#232 - Jon Simpson / @NodeStreamer

03/22/2018 at 10:12PM

29
#233 - Dave Brda / @BrdaDave

10/27/2018 at 02:44AM

30
#234 - 黒澤亮二 / @rjkuro

07/18/2017 at 12:53PM

30
#235 - AleksandarTrifunovic / @akstrfn

07/18/2017 at 04:53PM

30
#236 - Ewoud Smeur / @Ewoud90

07/19/2017 at 11:46AM

30
#237 - Stephan Bugnon / @stephanbugnon

07/19/2017 at 04:51PM

30
#238 - Harsh Kumar / @datsleepyguy

07/21/2017 at 03:29PM

30
#239 - Cyrus Nikolaidis / @CyrusNikolaidis

08/20/2017 at 06:55PM

30
#240 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 12:46PM