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

2758 active golfers, 12667 entries

Leaderboard (lowest score wins):
21
#1651 - Zihan Zheng / @zhengzihan1996

04/22/2016 at 05:07PM

21
#1652 - Nicholas Marasco / @Zero_Toast

04/27/2016 at 07:30PM

21
#1653 - Sergio L. Montolio / @sergiomontolio

05/04/2016 at 07:10PM

21
#1654 - Vikhyat Korrapati / @vikhyatk

05/07/2016 at 11:42AM

21
#1655 - John Doe Sr. / @johndoe67890543

05/08/2016 at 11:40PM

21
#1656 - george iv / @geowa4

05/13/2016 at 01:29PM

21
#1657 - Christian Bay / @the_greenbourne

05/18/2016 at 11:04AM

21
#1658 - Thomas Jefferson / @thom_je_ff_sn

05/26/2016 at 09:17PM

21
#1659 - Peter Trotman / @pgtrots

06/05/2016 at 08:22PM

21
#1660 - Ram Tamtam / @ramtamtamtam

06/17/2016 at 02:38PM

21
#1661 - Lou Lin / @LouLinear

06/21/2016 at 08:03PM

21
#1662 - Amory Schlender / @schlamory

07/08/2016 at 03:50AM

21
#1663 - Quinn From The Pack / @fuck_saturn

07/22/2016 at 03:55AM

21
#1664 - Rosalie Tolentino / @rosatolen

08/15/2016 at 05:18PM

21
#1665 - amospalla / @amospalla

08/23/2016 at 06:04PM

21
#1666 - DavePirie / @PirieDave

08/30/2016 at 04:32PM

21
#1667 - Andres Osorio / @cosoriog

09/11/2016 at 10:26AM

21
#1668 - И К / @igorjan94

09/14/2016 at 12:40PM

21
#1669 - Aaron J. Radke / @radke

09/18/2016 at 04:13AM

21
#1670 - Alex Ulitin / @inventivealex

09/23/2016 at 02:20AM

21
#1671 - Daniel Bellenger / @DanielBellenger

09/24/2016 at 09:59PM

21
#1672 - René De Alvarado / @renedealvarado

09/27/2016 at 12:29PM

21
#1673 - @ / @kangur85

10/05/2016 at 10:48PM

21
#1674 - Pradeep Kumar / @pradeep6kumar

10/10/2016 at 02:46PM

21
#1675 - Tomas[Tomsik68] / @tomsik68

10/14/2016 at 09:52PM

21
#1676 - eozd / @e_ozd

10/23/2016 at 12:58PM

21
#1677 - Adrian K. Eriksen / @adrianke

10/24/2016 at 04:50PM

21
#1678 - Alexis Praga / @Fitzwy

10/28/2016 at 11:45AM

21
#1679 - Alpa_akm / @Alpa_akm

10/29/2016 at 02:57AM

21
#1680 - Shmelev Jaroslav / @hummelchen0

10/30/2016 at 12:52PM