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

2826 active golfers, 12990 entries

Leaderboard (lowest score wins):
26
#2551 - Elias Daler / @EliasDaler

03/12/2019 at 03:18PM

26
#2552 - Jonathan / @jberglinds

03/14/2019 at 03:12PM

26
#2553 - Simon Rycroft / @sirycroftmusic

03/26/2019 at 05:33PM

26
#2554 - Richard / @Richard92158035

04/12/2019 at 02:38PM

26
#2555 - venkatakrishnan / @venkatk_

04/15/2019 at 02:38AM

26
#2556 - おけ / @ok8omk

05/28/2019 at 04:16AM

26
#2557 - Алексей Торрин / @forkiy

05/31/2019 at 12:40PM

26
#2558 - SnakyPoutz / @snakypoutz

06/06/2019 at 08:28AM

26
#2559 - Ayzen / @Ayzen

06/06/2019 at 09:17AM

26
#2560 - Trevor Langston / @sunkenroad

07/03/2019 at 12:40AM

26
#2561 - Christopher Currens / @chriscurrens

07/22/2019 at 05:13PM

26
#2562 - David Elkouss / @d_elkouss

07/31/2019 at 04:48PM

27
#2563 - Tim Green / @iamtimgreen

03/30/2016 at 03:37AM

27
#2564 - Marcel Puyat / @MarcelPuyat

04/25/2016 at 06:58AM

27
#2565 - Lior Rozen / @lixroz

05/02/2016 at 10:14PM

27
#2566 - Gummibjorn / @EgliMario

05/03/2016 at 11:01AM

27
#2567 - Woojin Joe / @JoeWooJin

07/06/2016 at 12:28PM

27
#2568 - Matt Wahner / @MattWahner

08/20/2016 at 05:36AM

27
#2569 - William Dyson / @WillDyson3

08/31/2016 at 01:17PM

27
#2570 - Matt Michnal / @mgm702

09/12/2016 at 10:16PM

27
#2571 - Allen Gooch / @mojochao

09/18/2016 at 09:25PM

27
#2572 - Clalani / @clalania

10/13/2016 at 05:27PM

27
#2573 - Dušan Baran / @dudoslaf

10/25/2016 at 07:18PM

27
#2574 - rainer b / @roinnerr

11/20/2016 at 04:43PM

27
#2575 - Maciej Mionskowski / @maciekmm_

02/22/2017 at 11:22AM

27
#2576 - Shreyas / @shreyasjag

03/02/2017 at 08:56PM

27
#2577 - Matthieu Honel / @ocus

03/10/2017 at 04:04PM

27
#2578 - Ayush Sachdeva / @ayush000

06/05/2017 at 04:41PM

27
#2579 - Netznarkose / @netznarkose

08/24/2017 at 03:24PM

27
#2580 - Lohan Bodevan / @lohanbodevan

08/25/2017 at 07:09PM