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

3073 active golfers, 14454 entries

Leaderboard (lowest score wins):
19
#1591 - Thomas Churchman / @Beskhue

12/14/2019 at 12:03PM

20
#1592 - Harry Venables / @HarryVenables

04/07/2016 at 11:10AM

20
#1593 - Max Sherman / @johnislarry

04/16/2016 at 10:02PM

20
#1594 - Oddlydrawn / @Oddlydrawn

04/19/2016 at 03:56PM

20
#1595 - Mikael Saltzman / @MikaelSaltzman

04/29/2016 at 11:47AM

20
#1596 - aestetix / @aestetix

05/01/2016 at 09:22PM

20
#1597 - Eero-Antero Säisä / @jakolasku

05/02/2016 at 01:24PM

20
#1598 - Nate Cornell / @NateCornell

05/02/2016 at 10:58PM

20
#1599 - Steven Moazami / @mong8se

05/08/2016 at 01:26AM

20
#1600 - Sam Cristall / @sbcristall

05/09/2016 at 11:20PM

20
#1601 - damon kelley / @damonkelley

05/12/2016 at 04:31PM

20
#1602 - Peter Labus / @PeterLabus

05/16/2016 at 10:00PM

20
#1603 - Andres Araya / @arayaandresfco

05/17/2016 at 12:57AM

20
#1604 - Linfeng Li·李林峰 / @llinfeng

06/08/2016 at 05:37PM

20
#1605 - ijemmy / @ijemmy

06/09/2016 at 09:53AM

20
#1606 - malet / @Malet

06/24/2016 at 03:41PM

20
#1607 - Banos / @deep_spoon

06/26/2016 at 03:45PM

20
#1608 - IHanafusa / @FuwattoFlower

06/30/2016 at 11:08AM

20
#1609 - Alejandro Claro / @alejandroclaro

07/09/2016 at 06:43PM

20
#1610 - Ealhad / @Ealhad

07/13/2016 at 10:26PM

20
#1611 - Ben Baker-Smith / @Bit_Synthesis

07/17/2016 at 05:29AM

20
#1612 - richard / @wulianxuyang

07/22/2016 at 06:19AM

20
#1613 - Sarang Khim / @sarang_khim

08/02/2016 at 03:13AM

20
#1614 - Ratmonkey / @Ratm0nkey

08/04/2016 at 08:39PM

20
#1615 - Marek Wawrzos / @putisPenser

08/08/2016 at 07:41AM

20
#1616 - Daniel and Valerie / @daniel_and_val

08/09/2016 at 08:20AM

20
#1617 - Baptiste Vannesson / @Badacadabra

08/23/2016 at 10:56PM

20
#1618 - Dannver / @dannverwu

09/04/2016 at 08:02AM

20
#1619 - nixi3 / @Nixi3cc

09/05/2016 at 03:44AM

20
#1620 - ILikeVim / @VimIsCool

09/05/2016 at 01:59PM