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

3025 active golfers, 14214 entries

Leaderboard (lowest score wins):
27
#2761 - Austin Whaley / @BuddhaWhale

08/01/2018 at 07:55PM

27
#2762 - ggghhhttt / @ggghhhttt6

08/30/2018 at 07:01AM

27
#2763 - 安藤 / @andou2106

09/03/2018 at 01:41PM

27
#2764 - Apbsub / @apbsub

09/30/2018 at 01:39AM

27
#2765 - DiegoVA / @Diego41054734

12/11/2018 at 12:41AM

27
#2766 - adir ohayon / @AdirKip

01/07/2019 at 11:02PM

27
#2767 - Mac Goever / @MacGoever

01/27/2019 at 08:43PM

27
#2768 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 07:05PM

27
#2769 - woddy cyconer / @woddy1

04/22/2019 at 11:47AM

27
#2770 - R / @rvan3210

05/01/2019 at 04:36AM

27
#2771 - IHateTweeting999 / @ITweeting999

05/02/2019 at 10:43PM

27
#2772 - David McDonald / @dmcdona

05/15/2019 at 08:42AM

27
#2773 - Zach E-R / @Tweet_First

05/16/2019 at 04:48PM

27
#2774 - Juraj Skvarla / @Athlet

05/30/2019 at 02:12PM

27
#2775 - Roberto Carraretto / @robcarraretto

05/30/2019 at 07:47PM

27
#2776 - Rwithik Manoj / @RwithikM

06/06/2019 at 02:38PM

27
#2777 - Березницкий Вадим / @vad1mster

07/06/2019 at 05:38PM

27
#2778 - Артур Кашаев / @KashaevArthur

07/08/2019 at 08:36AM

27
#2779 - Andy Gnias / @GniTheSciGuy

07/25/2019 at 11:31PM

27
#2780 - Mark Winckle / @Winckle

08/23/2019 at 09:56PM

27
#2781 - Brian / @atav32

08/31/2019 at 12:40AM

27
#2782 - Kjaku / @Kondziorf

09/04/2019 at 07:41PM

27
#2783 - Yasky / @Yaasky

10/23/2019 at 07:49PM

27
#2784 - Nico W. / @AirlessAtmo

11/12/2019 at 01:05PM

28
#2785 - Jörg Herbst / @terrible_herbst

06/04/2016 at 07:55PM

28
#2786 - Richard Laub / @RWLaub91

07/22/2016 at 03:05AM

28
#2787 - lucas / @rept357

08/24/2016 at 01:43PM

28
#2788 - Patrick J McDonough / @snake_VsCamel

09/05/2016 at 03:09AM

28
#2789 - Christoph Wong / @ctophwong

10/15/2016 at 11:07AM

28
#2790 - Benoît Labaere / @b_labaere

01/03/2017 at 09:18PM