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

3898 active golfers, 18889 entries

Leaderboard (lowest score wins):
19
#1981 - Fluidjax / @fluidjax

06/05/2020 at 09:33PM

19
#1982 - jc52766 / @jc52766

06/11/2020 at 10:41PM

19
#1983 - khedd / @sinan_khedd

06/13/2020 at 05:04PM

19
#1984 - Reynald Havard / @rey_ha

06/15/2020 at 11:27PM

19
#1985 - hiker / @hiker12829244

06/24/2020 at 08:45AM

19
#1986 - Felix / @motorente

06/24/2020 at 12:51PM

19
#1987 - Eliseo / @Eliseohh_A

07/02/2020 at 03:50AM

19
#1988 - Deepak Talan / @d02d33pak

07/03/2020 at 10:45AM

19
#1989 - The Oalrus / @mizay7

07/03/2020 at 05:59PM

19
#1990 - L Z / @unidevel

07/06/2020 at 09:00AM

19
#1991 - jackmark / @jackmar14540583

07/11/2020 at 06:22AM

19
#1992 - VQvMoKsy / @QvKsy

07/29/2020 at 12:11PM

19
#1993 - Sam Houston / @shouston33

07/29/2020 at 10:37PM

19
#1994 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 09:25AM

19
#1995 - Leonard Wagner / @leonard2997

08/17/2020 at 11:30AM

19
#1996 - John Doe / @JohnDoe15459163

08/20/2020 at 02:36PM

19
#1997 - slimetsp / @_slimetsp

08/30/2020 at 11:13AM

19
#1998 - Nick Kirkby / @driftregion

08/31/2020 at 09:48AM

19
#1999 - alrito / @alrito6

09/05/2020 at 09:14PM

19
#2000 - Kurt Keller / @KurtKeller

09/08/2020 at 07:56PM

19
#2001 - Ramon Comellas / @rcomellas

09/19/2020 at 03:24PM

19
#2002 - vimgolfer / @vimgolfer18

09/25/2020 at 03:02PM

19
#2003 - BryanYan / @BryanGoesPlaces

09/30/2020 at 01:49AM

19
#2004 - Michael Bui / @Miik4chu

10/15/2020 at 04:50PM

19
#2005 - wilsonept / @wilsonept1

10/24/2020 at 08:03PM

19
#2006 - Demian Martinez / @demianuco

11/01/2020 at 11:11PM

19
#2007 - Rafal C. / @RafalC37709324

11/14/2020 at 02:38PM

19
#2008 - Noise Official / @zmunk19

11/29/2020 at 10:32AM

19
#2009 - Jordan Joe Watson / @jordanjoewatson

12/01/2020 at 08:52PM

19
#2010 - Andras / @vandras2003

12/04/2020 at 06:51PM