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

407 active golfers, 2131 entries

Leaderboard (lowest score wins):
23
#241 - Coruja Queridinha / @miriamretka

08/21/2018 at 10:49PM

23
#242 - Korgan / @Korgan36725554

11/29/2018 at 04:28PM

23
#243 - wanghbxxxx / @wanghbxxxx

04/07/2019 at 03:10AM

23
#244 - Sondre Lunde / @SondreSL

06/07/2019 at 02:10PM

23
#245 - vimgolfer / @vimgolfer7

09/28/2019 at 03:54PM

23
#246 - Benjamin Pelletier / @benjipelletier

10/07/2019 at 08:13PM

24
#247 - Thomas Steinbach / @thomasstei

07/19/2017 at 03:32PM

24
#248 - Hans Vennegoor / @HansVennegoor

08/24/2017 at 04:56PM

24
#249 - Mr. F / @Flur1n

10/04/2017 at 01:42PM

24
#250 - Vaughan 〠 / @nyx_mmix

02/27/2018 at 07:28AM

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

04/10/2018 at 06:19PM

24
#252 - Weston Neal / @wtneal

09/05/2018 at 11:42PM

24
#253 - Amado Antonini / @AmadoAntonini

03/17/2019 at 12:32PM

24
#254 - JonasS / @jonas42s

05/30/2019 at 10:38AM

24
#255 - Colby Brown / @colbyabrown

07/30/2019 at 03:45PM

24
#256 - John Otters / @OttersJohn

12/19/2019 at 08:46PM

24
#257 - Jason Neylon / @jasonneylon

01/06/2020 at 08:48PM

24
#258 - haipeng li / @HaipengLie

08/02/2020 at 02:23PM

24
#259 - Ivan Kwong / @IvanKwong5

10/11/2020 at 11:43AM

25
#260 - Hu Ho Xu / @huhoxu

07/24/2017 at 08:51PM

25
#261 - Lonnon Foster / @lonnon

08/04/2017 at 04:24PM

25
#262 - Brony PlusOne / @BronyPlusOne

08/04/2017 at 11:06PM

25
#263 - Marc Grimpo / @MarcGrimpo

08/26/2017 at 03:08AM

25
#264 - Cyhors / @Cyhors

09/14/2017 at 07:18AM

25
#265 - Alonzo / @tolver_a

09/17/2017 at 09:56AM

25
#266 - Bradley M. Small / @BradleySmall

11/21/2017 at 07:48PM

25
#267 - Jack Magnus / @jadomag

08/04/2018 at 08:45PM

25
#268 - tenteke / @kuskus3

02/17/2019 at 04:56AM

25
#269 - Lawrence Gray / @LawrenceGray23

10/19/2019 at 10:20PM

26
#270 - Rowan Tree / @RowanTr88447528

07/20/2017 at 05:25AM