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 56fb2e75ccffcc0009026473

One number per line

Just give me the numbers.

Start file
- One number per line -
-----------------------
2,3,5,7,
11,13,17,
19,23,29,
End file
2
3
5
7
11
13
17
19
23
29

View Diff

Your target is 14. I don't think this one will last 24 hours. :)

Hopefully it's a good addition to the challenge set though. Enjoy.

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 3466 remaining solutions by signing in and submitting your own entry
#3467 호도르 / @5jhDIioJ2FEnDbB - Score: 327 - 07/26/18 @ 06:28
dfd<Esc>kjkd2dlhlx<CR>ku:norm ax<Esc><Esc>kjkxi<CR><Esc>.uuua<BS><CR><Esc>.uuuuuud2<Esc><Esc><Esc><Esc>d2d<Esc><Esc><Esc>jkl:%s <BS>/,/\n/g<BS><BS><BS><BS>\ <BS>n/g<CR>u<Esc><Esc><Esc><Esc>:%s /,/\\n/g<CR>ukjlklhkjk:%s /,/\<BS><CR>/g<CR>u:<Up><Left><Left><Left><BS><BS>cr<CR><Esc>ukjlk:<Up><Left><Left><Left>:<BS><Right><Right><Right><BS><BS><BS><BS><BS><BS>\s/g<BS><BS><BS><BS>/g<BS><BS>\r/g<CR>u<Up><Up><Up><Up>:<Up><CR>u<Esc>llllllllggjkluuuuuuudj<Esc>ud22d<Esc>uud2d<Esc>l:%s/,/[<BS>\r/g<CR>:g ^$<BS>$<Esc>uu<C-R><Esc><Esc>:5<BS>%s /.<BS>,/\g<BS>r/g<cr><BS><BS><BS>CR><CR><Up>:<Up><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>:<Up><BS><BS><BS><BS><CR>:g<BS> <BS>g /^$/g<BS>dd/<BS><BS><CR>ZZ

0 comments


Created by: @udioica

3467 active golfers, 16689 entries

Leaderboard (lowest score wins):
22
#2461 - Performa / @performa6400

11/27/2018 at 05:19PM

22
#2462 - Brian Donovan / @eventualbuddha

11/29/2018 at 04:21PM

22
#2463 - Shafiq Jetha / @sjetha

12/13/2018 at 10:54PM

22
#2464 - Vending Machine / @storyn26383

12/16/2018 at 06:53AM

22
#2465 - サボテン / @gen22334

12/19/2018 at 05:29PM

22
#2466 - Nate / @natedoran

01/06/2019 at 05:47AM

22
#2467 - hbdgr / @t_hbdgr

01/13/2019 at 09:27PM

22
#2468 - pirkes / @gPirkes

01/16/2019 at 01:43PM

22
#2469 - Blah Blah / @BlahBla08410389

01/19/2019 at 04:55PM

22
#2470 - 강현 / @Applesquiz

01/20/2019 at 04:27PM

22
#2471 - drswaghawk / @drswaghawk

01/20/2019 at 11:51PM

22
#2472 - 默罕默德 / @Rt6RjEAJ987Woes

01/21/2019 at 01:10PM

22
#2473 - Michael Aquilina / @mikeaquilina4

01/27/2019 at 10:21PM

22
#2474 - omahn / @omahn

02/08/2019 at 10:10PM

22
#2475 - cubemike / @cubemike

03/22/2019 at 03:55PM

22
#2476 - Abe Cede / @A_be_Cede

04/12/2019 at 09:01AM

22
#2477 - Roman Vrublevskiy / @R0manza

04/23/2019 at 10:20PM

22
#2478 - JvdB01 / @JvdB001

05/08/2019 at 05:32PM

22
#2479 - Καράτε Μόνο / @karate_mono

05/10/2019 at 06:51PM

22
#2480 - TheMagzuz / @DamMarkus

05/14/2019 at 01:00PM

22
#2481 - dtjong / @dtjong2

06/07/2019 at 06:41PM

22
#2482 - alaric27 / @alaric273

07/11/2019 at 08:44AM

22
#2483 - Sean Sullivan / @_seanyneutron

07/11/2019 at 06:26PM

22
#2484 - Isaak Meier / @IsaakMeier

08/19/2019 at 07:05PM

22
#2485 - theBecwar / @thebecwar

08/26/2019 at 05:05PM

22
#2486 - TechBurgers / @TechBurgers

10/05/2019 at 11:46AM

22
#2487 - Stevens Home / @StevendHome

10/09/2019 at 03:12PM

22
#2488 - Alexander v Trijffel / @avtnl

10/10/2019 at 11:00PM

22
#2489 - João Silva / @joaosilva155

10/22/2019 at 12:21PM

22
#2490 - Eleks Aggr / @AggrEleks

10/22/2019 at 12:48PM