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

2391 active golfers, 10849 entries

Leaderboard (lowest score wins):
16
#571 - guxbug / @guxbug1

12/18/2018 at 03:19PM

16
#572 - beew71493 / @beew71493

12/18/2018 at 07:59PM

16
#573 - Kris Ezra / @kris_ezra

12/19/2018 at 07:53PM

16
#574 - Brendan Holmes / @bdholmes

12/28/2018 at 05:33PM

16
#575 - Jose Villalta 👨‍💻 / @PhilosoGeekDad

12/31/2018 at 05:44PM

16
#576 - William Robson / @wnrbs

01/02/2019 at 12:39AM

16
#577 - Jonas / @ex1c

01/07/2019 at 05:10PM

16
#578 - abgalphabet / @abgalphabet

01/12/2019 at 12:57PM

16
#579 - Mangeart Yoric / @yoricm

01/14/2019 at 03:11PM

17
#580 - Cristian Lupașcu / @clupasq

03/30/2016 at 10:08AM

17
#581 - Kai Yuan / @kentyuan

03/30/2016 at 10:22AM

17
#582 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 09:48PM

17
#583 - Patrick Elliott / @thatcsguy

03/30/2016 at 10:48PM

17
#584 - Jon Krause / @jkrause314

03/30/2016 at 11:20PM

17
#585 - glepha / @glepha_vim

03/31/2016 at 06:00AM

17
#586 - Defts = DvToons / @defts

03/31/2016 at 07:15AM

17
#587 - Mister Knister / @vimgolf_ctrl_x

03/31/2016 at 07:26AM

17
#588 - Smylers / @Smylers2

03/31/2016 at 08:01AM

17
#589 - Jan Bundesmann / @janbundesmann

03/31/2016 at 01:44PM

17
#590 - axnyff / @axnyff

04/01/2016 at 03:33PM

17
#591 - Brendan Op 't Root / @OptrootB

04/02/2016 at 04:08PM

17
#592 - Philiphone / @Philiphone

04/03/2016 at 07:26AM

17
#593 - Vaughn Cato / @vaughncato

04/03/2016 at 05:00PM

17
#594 - Maria Shaldibina / @marynixie

04/04/2016 at 03:18AM

17
#595 - Luca Niccolini / @lvc4

04/06/2016 at 04:52AM

17
#596 - Dimitar Dimitrov / @kurkale6ka

04/06/2016 at 10:38AM

17
#597 - benthemeek / @benthemeek

04/07/2016 at 10:38PM

17
#598 - Shawn Wallis / @bote52469207

04/08/2016 at 02:39AM

17
#599 - f00b8tr / @f00b8tr5

04/09/2016 at 02:03AM

17
#600 - E Both / @enboth

04/12/2016 at 06:19PM