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 3581 remaining solutions by signing in and submitting your own entry
#3582 호도르 / @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

3582 active golfers, 17289 entries

Leaderboard (lowest score wins):
18
#1411 - Dionysus / @user101user

05/07/2020 at 02:33AM

18
#1412 - Jeff Cui / @jeffacce

05/12/2020 at 07:59AM

18
#1413 - Day / @demigirl_day

05/14/2020 at 10:10PM

18
#1414 - Andreas Buhr / @andreas_buhr

05/26/2020 at 11:26AM

18
#1415 - Bob / @Bob37174065

06/01/2020 at 01:18PM

18
#1416 - James Skinner / @skinbad88

06/12/2020 at 07:37PM

18
#1417 - soundscope / @__soundscope__

06/29/2020 at 12:19AM

18
#1418 - Brennan Barker / @BrennanJBarker

07/04/2020 at 03:43PM

18
#1419 - HiJova / @Jova28190268

07/05/2020 at 02:54AM

18
#1420 - SardarJitensha / @SJitensha

07/07/2020 at 01:03PM

18
#1421 - Madelyn Freed / @demonaday

07/16/2020 at 11:47PM

18
#1422 - Benjamin Turner / @passionsplay

07/21/2020 at 03:58AM

18
#1423 - Chris Thompson / @ctmusicnz

07/28/2020 at 01:36AM

18
#1424 - Du Phan / @fehiepsi

08/03/2020 at 04:13PM

18
#1425 - haipeng li / @HaipengLie

08/08/2020 at 02:44PM

18
#1426 - Matthias / @Matthia78044730

08/10/2020 at 06:24PM

18
#1427 - s3cy / @s3cyxx

08/24/2020 at 02:54PM

18
#1428 - Skyler Dong / @skylerdong

08/31/2020 at 08:40AM

18
#1429 - Азамат / @azamat_tazhibay

09/01/2020 at 01:33PM

19
#1430 - Victor Haffreingue / @nobe_4

03/30/2016 at 06:42AM

19
#1431 - Daniel K. / @lan4k

03/30/2016 at 07:15AM

19
#1432 - ushumpei / @ushumpei_

03/30/2016 at 08:02AM

19
#1433 - Fraser Cormack / @frasercrmck

03/30/2016 at 01:45PM

19
#1434 - Walker Boh / @walker_boh

03/30/2016 at 02:56PM

19
#1435 - Mutter Mumble / @muttermumble

03/30/2016 at 03:15PM

19
#1436 - Sean A / @Llanion

03/30/2016 at 07:40PM

19
#1437 - Tyler / @tylerbindon

03/31/2016 at 02:59AM

19
#1438 - Ryan Troxler / @TroxlerRyan

03/31/2016 at 03:06AM

19
#1439 - Mike Waldner / @mawaldne

03/31/2016 at 05:57PM

19
#1440 - Alice Benign / @AliceBenign

03/31/2016 at 09:43PM