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

2886 active golfers, 13381 entries

Leaderboard (lowest score wins):
31
#2761 - Mitchell Hanberg / @mitchhanberg

03/19/2019 at 08:38PM

31
#2762 - Chadd Chambers / @dos_dees

07/03/2019 at 06:11AM

32
#2763 - Luke / @toy_lang_smell

12/28/2016 at 10:15PM

32
#2764 - kli6891 / @kli6891

01/24/2017 at 04:10AM

32
#2765 - brandon salmon / @Exiledz

08/13/2017 at 04:16AM

32
#2766 - Ferran / @ferrandinandus

09/25/2017 at 12:17PM

32
#2767 - Justin Sitarz / @justinsitarz

12/20/2017 at 05:36PM

32
#2768 - Olivier0d0 💡 / @olivierodo

03/29/2018 at 12:52PM

32
#2769 - Mark Anderson / @manderson_uk

05/04/2018 at 10:21AM

32
#2770 - olivier lemoigne / @olivierlemoigne

05/04/2018 at 12:39PM

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

06/20/2018 at 08:17AM

32
#2772 - Ben Rudolph / @_benrudolph

08/01/2018 at 05:41AM

32
#2773 - Kevin Cooler / @KevinCooler

08/10/2018 at 12:27AM

32
#2774 - Ketan Agrawal / @_ketan0_

09/25/2018 at 04:32PM

32
#2775 - Chris Hughes / @ChristofHughes

10/06/2018 at 09:11PM

32
#2776 - urandom / @ttyrandom

10/20/2018 at 06:20AM

32
#2777 - Jacob Mortensen / @jwmortensen

12/10/2018 at 08:32PM

32
#2778 - Jan B. / @bracki

04/08/2019 at 12:48PM

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

05/13/2019 at 06:32AM

32
#2780 - Clint Caudle / @ClintCaudle

07/22/2019 at 04:35AM

33
#2781 - Marc Seibert / @interzone_cc

05/04/2016 at 03:59PM

33
#2782 - Sukovec / @Sukovec

05/11/2016 at 02:06PM

33
#2783 - Kerry Todyruik / @KTodyruik

05/17/2016 at 02:25AM

33
#2784 - zabelly / @IsabellyFF

04/20/2018 at 09:07PM

33
#2785 - minjikim / @minjiki38685196

10/12/2018 at 03:46AM

33
#2786 - zaperrer / @zaperrer

10/26/2018 at 01:49AM

33
#2787 - Toby R / @TobyRet

10/31/2018 at 09:47PM

33
#2788 - Shunichi Kanade / @shunkana

11/04/2018 at 01:19AM

33
#2789 - Zach Russell / @ZacharyRRussell

02/07/2019 at 03:57AM

33
#2790 - LoKi_gamer / @LoKigamer19

03/22/2019 at 05:17PM