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

3013 active golfers, 14126 entries

Leaderboard (lowest score wins):
27
#2731 - Allen Gooch / @mojochao

09/18/2016 at 09:25PM

27
#2732 - Clalani / @clalania

10/13/2016 at 05:27PM

27
#2733 - Dušan Baran / @dudoslaf

10/25/2016 at 07:18PM

27
#2734 - rainer b / @roinnerr

11/20/2016 at 04:43PM

27
#2735 - Maciej Mionskowski / @maciekmm_

02/22/2017 at 11:22AM

27
#2736 - Shreyas / @shreyasjag

03/02/2017 at 08:56PM

27
#2737 - Matthieu Honel / @ocus

03/10/2017 at 04:04PM

27
#2738 - Ayush Sachdeva / @ayush000

06/05/2017 at 04:41PM

27
#2739 - Netznarkose / @netznarkose

08/24/2017 at 03:24PM

27
#2740 - Lohan Bodevan / @lohanbodevan

08/25/2017 at 07:09PM

27
#2741 - rui / @dolare12

09/27/2017 at 03:11AM

27
#2742 - Thor Döör / @thordoor

10/26/2017 at 12:12PM

27
#2743 - Spacesh1p / @spacesh1pdev

01/02/2018 at 03:11PM

27
#2744 - phucvin / @phucvin

02/14/2018 at 03:51PM

27
#2745 - Ryan Bas / @ryanbas21

06/26/2018 at 07:12PM

27
#2746 - Prithu Goswami / @prithu524

07/05/2018 at 06:07AM

27
#2747 - jestem króliczkiem / @karlicoss

07/11/2018 at 07:02PM

27
#2748 - Andrew Ouzts / @andrew_ouzts

07/22/2018 at 05:01AM

27
#2749 - Austin Whaley / @BuddhaWhale

08/01/2018 at 07:55PM

27
#2750 - ggghhhttt / @ggghhhttt6

08/30/2018 at 07:01AM

27
#2751 - 安藤 / @andou2106

09/03/2018 at 01:41PM

27
#2752 - Apbsub / @apbsub

09/30/2018 at 01:39AM

27
#2753 - DiegoVA / @Diego41054734

12/11/2018 at 12:41AM

27
#2754 - adir ohayon / @AdirKip

01/07/2019 at 11:02PM

27
#2755 - Mac Goever / @MacGoever

01/27/2019 at 08:43PM

27
#2756 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 07:05PM

27
#2757 - woddy cyconer / @woddy1

04/22/2019 at 11:47AM

27
#2758 - R / @rvan3210

05/01/2019 at 04:36AM

27
#2759 - IHateTweeting999 / @ITweeting999

05/02/2019 at 10:43PM

27
#2760 - David McDonald / @dmcdona

05/15/2019 at 08:42AM