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):
22
#1981 - cubemike / @cubemike

03/22/2019 at 03:55PM

22
#1982 - Nicolas Daval / @ndaval

04/07/2019 at 05:00PM

22
#1983 - Abe Cede / @A_be_Cede

04/12/2019 at 09:01AM

22
#1984 - Roman Vrublevskiy / @R0manza

04/23/2019 at 10:20PM

22
#1985 - JvdB01 / @JvdB001

05/08/2019 at 05:32PM

22
#1986 - Καράτε Μόνο / @karate_mono

05/10/2019 at 06:51PM

22
#1987 - TheMagzuz / @DamMarkus

05/14/2019 at 01:00PM

22
#1988 - dtjong / @dtjong2

06/07/2019 at 06:41PM

23
#1989 - Samuel Walladge / @srwalladge

03/30/2016 at 03:59AM

23
#1990 - AleksandarTrifunovic / @akstrfn

03/30/2016 at 08:51AM

23
#1991 - Kevin Ilphrin Pellet / @Kilphrin

03/30/2016 at 09:14PM

23
#1992 - Niru Maheswaranathan / @niru_m

04/03/2016 at 10:19PM

23
#1993 - Karolis / @k_lesevicius

04/10/2016 at 01:57PM

23
#1994 - Nathan Schulte / @nmschulte

04/11/2016 at 07:55PM

23
#1995 - Juampy NR / @juampynr

04/14/2016 at 09:32AM

23
#1996 - Tj / @yrddy

04/19/2016 at 10:41AM

23
#1997 - payoub / @pay0ub

04/20/2016 at 12:30AM

23
#1998 - Gabriel Florit / @gabrielflorit

04/20/2016 at 04:24AM

23
#1999 - Feras / @faldah

04/24/2016 at 12:58AM

23
#2000 - Kevin R / @TheKevinthDay

04/25/2016 at 08:49PM

23
#2001 - soccerprotip - blog / @soccerprotip

04/30/2016 at 09:52AM

23
#2002 - Sebastián Mancilla / @smancill_m

05/05/2016 at 12:56AM

23
#2003 - mike / @bal6219

05/05/2016 at 08:54AM

23
#2004 - Tom / @CronutFacts

05/07/2016 at 01:27AM

23
#2005 - Subhash Shah / @subhashshah

05/10/2016 at 04:58AM

23
#2006 - imlinder / @imLinder

05/11/2016 at 11:22AM

23
#2007 - Zhao Bin / @ZhaoBin2

06/07/2016 at 03:48PM

23
#2008 - Alec Newman / @alecnwmn904

06/07/2016 at 09:07PM

23
#2009 - EVGENIY SEMENOV / @r0cketboy

06/16/2016 at 01:20PM

23
#2010 - Leavim / @LeavimTain

06/19/2016 at 03:14PM