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

2883 active golfers, 13373 entries

Leaderboard (lowest score wins):
28
#2671 - Alexander Gryson / @agryson

05/01/2017 at 01:48PM

28
#2672 - A1m / @A1mGG

06/05/2017 at 03:07AM

28
#2673 - The Jamaican Bobsled / @jamaicanbobsled

09/03/2017 at 01:21PM

28
#2674 - Barespamtak / @barespamtak

09/06/2017 at 08:57AM

28
#2675 - Geoff / @RealGeoffErwin

09/26/2017 at 10:15PM

28
#2676 - knut ytterhaug / @knutemann

03/23/2018 at 03:51PM

28
#2677 - Hellon Canella / @helloncanella

04/28/2018 at 04:06AM

28
#2678 - Boda / @Boda47528108

06/04/2018 at 09:51AM

28
#2679 - 无眠的夜狐狸 / @fox_ni

08/14/2018 at 07:16AM

28
#2680 - Tdawg / @Tdawg37048815

09/11/2018 at 08:19PM

28
#2681 - Shashank G Hegde / @shashankghegde

10/07/2018 at 07:09PM

28
#2682 - dogmeat / @dogmeat11

10/23/2018 at 11:48AM

28
#2683 - m472 / @m4729

10/26/2018 at 11:55PM

28
#2684 - Oren Koriat / @KoriatOren

12/06/2018 at 06:19PM

28
#2685 - Dennis Schneider / @Schneiderleiin

12/26/2018 at 04:56PM

28
#2686 - fady zohdy / @fadyzohdy

01/17/2019 at 07:46PM

28
#2687 - exqt / @_exqt_

03/11/2019 at 11:16AM

28
#2688 - john ford / @johnfor65634499

04/17/2019 at 10:23PM

28
#2689 - Michaël Lévesque-Dion / @mlevesquedion

04/26/2019 at 12:09AM

28
#2690 - Swapnil Vinay Dinkar / @swapnildinkar

04/27/2019 at 06:14PM

28
#2691 - りょ / @ryoo141

05/08/2019 at 03:36PM

28
#2692 - Am Jam / @LoneJam

06/07/2019 at 12:55AM

28
#2693 - Vim Golfer / @VimGolfer6

07/06/2019 at 03:24PM

28
#2694 - とうがらし / @XgaraI7

07/23/2019 at 12:40AM

28
#2695 - Hampus HAUFFMAN / @HampusHauffman

07/23/2019 at 08:50AM

28
#2696 - Fred Leclerc / @fredleclerc

07/24/2019 at 03:00PM

28
#2697 - Captain Proton / @CaptainProton5

08/01/2019 at 01:56PM

28
#2698 - Alexey Kuntsevich / @jezzarax

09/04/2019 at 09:56AM

29
#2699 - Srijan Khare / @srijankhare16

04/08/2016 at 12:34AM

29
#2700 - Christopher Wells / @ExcaliburZero_Z

04/19/2016 at 05:30PM