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

2705 active golfers, 12428 entries

Leaderboard (lowest score wins):
31
#2581 - Alexander Gratner / @gratner3

10/12/2017 at 06:39PM

31
#2582 - Michael Heyman / @michaelheyman

11/16/2017 at 02:13AM

31
#2583 - Cawan Porto / @cawanporto

12/27/2017 at 08:11PM

31
#2584 - Vincent Dahmen / @wahrwolf

03/29/2018 at 12:16PM

31
#2585 - neodisco / @neodisco

09/25/2018 at 11:10AM

31
#2586 - Valeriy Pushkar / @valeriy_pushkar

10/15/2018 at 01:13PM

31
#2587 - Steve Greene / @Sud0Steve0

11/01/2018 at 02:10AM

31
#2588 - Bart Barnard / @BartBarnard

11/21/2018 at 10:31AM

31
#2589 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:39AM

31
#2590 - Mitchell Hanberg / @mitchhanberg

03/19/2019 at 08:38PM

32
#2591 - Luke / @toy_lang_smell

12/28/2016 at 10:15PM

32
#2592 - kli6891 / @kli6891

01/24/2017 at 04:10AM

32
#2593 - brandon salmon / @Exiledz

08/13/2017 at 04:16AM

32
#2594 - Ferran / @ferrandinandus

09/25/2017 at 12:17PM

32
#2595 - Justin Sitarz / @justinsitarz

12/20/2017 at 05:36PM

32
#2596 - Olivier0d0 💡 / @olivierodo

03/29/2018 at 12:52PM

32
#2597 - Mark Anderson / @manderson_uk

05/04/2018 at 10:21AM

32
#2598 - olivier lemoigne / @olivierlemoigne

05/04/2018 at 12:39PM

32
#2599 - 転職系えかはす( ˇωˇ ) / @Ekahs_2

06/20/2018 at 08:17AM

32
#2600 - Ben Rudolph / @_benrudolph

08/01/2018 at 05:41AM

32
#2601 - Kevin Cooler / @KevinCooler

08/10/2018 at 12:27AM

32
#2602 - Ketan Agrawal / @_ketan0_

09/25/2018 at 04:32PM

32
#2603 - Chris Hughes / @ChristofHughes

10/06/2018 at 09:11PM

32
#2604 - urandom / @ttyrandom

10/20/2018 at 06:20AM

32
#2605 - Jacob Mortensen / @jwmortensen

12/10/2018 at 08:32PM

32
#2606 - Jan B. / @bracki

04/08/2019 at 12:48PM

32
#2607 - Диплодок Денис / @l0sts0u1

05/13/2019 at 06:32AM

33
#2608 - Marc Seibert / @interzone_cc

05/04/2016 at 03:59PM

33
#2609 - Sukovec / @Sukovec

05/11/2016 at 02:06PM

33
#2610 - Kerry Todyruik / @KTodyruik

05/17/2016 at 02:25AM