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

3022 active golfers, 14188 entries

Leaderboard (lowest score wins):
31
#2881 - neodisco / @neodisco

09/25/2018 at 11:10AM

31
#2882 - Valeriy Pushkar / @valeriy_pushkar

10/15/2018 at 01:13PM

31
#2883 - Steve Greene / @Sud0Steve0

11/01/2018 at 02:10AM

31
#2884 - Bart Barnard / @BartBarnard

11/21/2018 at 10:31AM

31
#2885 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:39AM

31
#2886 - Mitchell Hanberg / @mitchhanberg

03/19/2019 at 08:38PM

31
#2887 - Chadd Chambers / @dos_dees

07/03/2019 at 06:11AM

32
#2888 - Luke / @toy_lang_smell

12/28/2016 at 10:15PM

32
#2889 - kli6891 / @kli6891

01/24/2017 at 04:10AM

32
#2890 - brandon salmon / @Exiledz

08/13/2017 at 04:16AM

32
#2891 - Ferran / @ferrandinandus

09/25/2017 at 12:17PM

32
#2892 - Justin Sitarz / @justinsitarz

12/20/2017 at 05:36PM

32
#2893 - Olivier0d0 💡 / @olivierodo

03/29/2018 at 12:52PM

32
#2894 - Mark Anderson / @manderson_uk

05/04/2018 at 10:21AM

32
#2895 - olivier lemoigne / @olivierlemoigne

05/04/2018 at 12:39PM

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

06/20/2018 at 08:17AM

32
#2897 - Ben Rudolph / @_benrudolph

08/01/2018 at 05:41AM

32
#2898 - Kevin Cooler / @KevinCooler

08/10/2018 at 12:27AM

32
#2899 - Ketan Agrawal / @_ketan0_

09/25/2018 at 04:32PM

32
#2900 - Chris Hughes / @ChristofHughes

10/06/2018 at 09:11PM

32
#2901 - urandom / @ttyrandom

10/20/2018 at 06:20AM

32
#2902 - Jacob Mortensen / @jwmortensen

12/10/2018 at 08:32PM

32
#2903 - Jan B. / @bracki

04/08/2019 at 12:48PM

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

05/13/2019 at 06:32AM

32
#2905 - Clint Caudle / @ClintCaudle

07/22/2019 at 04:35AM

33
#2906 - Marc Seibert / @interzone_cc

05/04/2016 at 03:59PM

33
#2907 - Sukovec / @Sukovec

05/11/2016 at 02:06PM

33
#2908 - Kerry Todyruik / @KTodyruik

05/17/2016 at 02:25AM

33
#2909 - zabelly / @IsabellyFF

04/20/2018 at 09:07PM

33
#2910 - minjikim / @minjiki38685196

10/12/2018 at 03:46AM