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

2498 active golfers, 11373 entries

Leaderboard (lowest score wins):
16
#601 - Ng Sek Long / @NgSekLong

02/09/2019 at 01:43PM

16
#602 - sjcomp / @sjcomp

02/20/2019 at 01:47PM

16
#603 - sisi100 / @s1si100

02/24/2019 at 03:08PM

16
#604 - hn9u / @hn9u

02/25/2019 at 05:31PM

16
#605 - ahm4711 / @ahm4711

03/01/2019 at 02:36PM

16
#606 - maq / @maq41476369

03/05/2019 at 01:26PM

16
#607 - Svetlin PENKOV / @SvetlinPenkov

03/11/2019 at 11:37AM

16
#608 - Ivo Tripunovic / @ivo_tripunovic

03/14/2019 at 09:03AM

16
#609 - longB / @longB77353628

03/20/2019 at 08:07AM

17
#610 - Cristian Lupașcu / @clupasq

03/30/2016 at 10:08AM

17
#611 - Kai Yuan / @kentyuan

03/30/2016 at 10:22AM

17
#612 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 09:48PM

17
#613 - Patrick Elliott / @thatcsguy

03/30/2016 at 10:48PM

17
#614 - Jon Krause / @jkrause314

03/30/2016 at 11:20PM

17
#615 - glepha / @glepha_vim

03/31/2016 at 06:00AM

17
#616 - Defts = DvToons / @defts

03/31/2016 at 07:15AM

17
#617 - Mister Knister / @vimgolf_ctrl_x

03/31/2016 at 07:26AM

17
#618 - Smylers / @Smylers2

03/31/2016 at 08:01AM

17
#619 - Jan Bundesmann / @janbundesmann

03/31/2016 at 01:44PM

17
#620 - axnyff / @axnyff

04/01/2016 at 03:33PM

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

04/02/2016 at 04:08PM

17
#622 - Philiphone / @Philiphone

04/03/2016 at 07:26AM

17
#623 - Vaughn Cato / @vaughncato

04/03/2016 at 05:00PM

17
#624 - Maria Shaldibina / @marynixie

04/04/2016 at 03:18AM

17
#625 - Luca Niccolini / @lvc4

04/06/2016 at 04:52AM

17
#626 - Dimitar Dimitrov / @kurkale6ka

04/06/2016 at 10:38AM

17
#627 - benthemeek / @benthemeek

04/07/2016 at 10:38PM

17
#628 - Shawn Wallis / @bote52469207

04/08/2016 at 02:39AM

17
#629 - f00b8tr / @f00b8tr5

04/09/2016 at 02:03AM

17
#630 - E Both / @enboth

04/12/2016 at 06:19PM