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):
17
#721 - Alexey / @AlexeyKarpelev

09/01/2016 at 06:31AM

17
#722 - John Jacob / @johnrjacob

09/06/2016 at 12:49AM

17
#723 - Chris / @Gaunah_

09/07/2016 at 11:48AM

17
#724 - Balazeal / @Balazeal

09/29/2016 at 06:54AM

17
#725 - yorkbai / @baiyqmzqbl

10/10/2016 at 10:57AM

17
#726 - i5513 / @i5513

10/16/2016 at 09:17PM

17
#727 - Rafuaeru / @fuckingnickname

10/25/2016 at 04:05AM

17
#728 - Bill Ruddock / @biinari

10/25/2016 at 04:40AM

17
#729 - やぎ / @ryagiuchi

10/27/2016 at 05:57PM

17
#730 - Santiclause / @Santiclause

10/28/2016 at 10:14PM

17
#731 - GiggleGeeks / @GiggleGeeks

11/01/2016 at 10:55PM

17
#732 - Jonathan Lao-Kan / @jlaokan

11/08/2016 at 11:09PM

17
#733 - gauthier / @hiergaut

11/09/2016 at 04:20PM

17
#734 - Matti Sairanen / @MattiSairanen

11/13/2016 at 05:58PM

17
#735 - vimgolf_temp / @TestVimgolf

11/13/2016 at 07:22PM

17
#736 - timerella® / @timerella

11/16/2016 at 01:27AM

17
#737 - Łukasz Gromadkiewicz / @sakulTW

11/22/2016 at 02:24PM

17
#738 - th / @tithrx

12/01/2016 at 04:28PM

17
#739 - Markus Flatscher / @mflat

12/05/2016 at 02:53AM

17
#740 - Liam S Ismail / @AC01Y

12/06/2016 at 03:59AM

17
#741 - Pierre Maoui / @poupougnac

12/17/2016 at 05:13PM

17
#742 - chocolate / @chocola81394123

12/18/2016 at 09:59AM

17
#743 - DatBoi / @DatBoi42585694

12/20/2016 at 10:48PM

17
#744 - Ashish Anand / @RealAshishAnand

12/29/2016 at 03:05PM

17
#745 - Nxgr / @Nxgr_l

01/05/2017 at 03:17PM

17
#746 - David ROBIN / @DavidRobin48

01/09/2017 at 04:38PM

17
#747 - John Turner / @turnerOnTheGrid

01/23/2017 at 12:28AM

17
#748 - Young Seok Tony Kim / @tonyapplekim

01/24/2017 at 03:59PM

17
#749 - Avian Y / @y_avian

01/30/2017 at 07:15PM

17
#750 - setNull / @dadaojiemo

02/05/2017 at 01:25PM