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

3025 active golfers, 14214 entries

Leaderboard (lowest score wins):
19
#1531 - Adam Stephen / @2_71828

07/13/2019 at 06:33PM

19
#1532 - pjoe / @pjoe

07/20/2019 at 04:50AM

19
#1533 - Drew Gottlieb / @Drew_Gottlieb

07/20/2019 at 05:15AM

19
#1534 - Renato Müller Rosa / @ItsmeGordo

07/24/2019 at 05:54PM

19
#1535 - Dominik Przywara / @PrzywaraDominik

07/29/2019 at 09:01PM

19
#1536 - Mr_Djez / @DjezMr

08/05/2019 at 07:48PM

19
#1537 - Will Durney / @WillDurney

08/13/2019 at 06:54PM

19
#1538 - Chris Maher / @chrismaherthe

08/15/2019 at 03:11AM

19
#1539 - Travis Abram / @imaginal

08/17/2019 at 04:56AM

19
#1540 - Paul Inc / @hiniol1982

08/24/2019 at 06:04PM

19
#1541 - Masi Valkonen / @masivalkonen

08/27/2019 at 10:22PM

19
#1542 - JS / @jjohsan

08/28/2019 at 12:50PM

19
#1543 - Marcin Krajewski / @mkrajewski_

08/29/2019 at 09:33AM

19
#1544 - Preetham Maiya / @PreethamMaiya

08/31/2019 at 02:19PM

19
#1545 - 홍순우 / @eU9gM5Bvtj1UNpc

09/02/2019 at 12:44AM

19
#1546 - Zach Ingbretsen / @ZIngbretsen

09/06/2019 at 05:01PM

19
#1547 - lucca augusto / @LuccaAugusto6

09/08/2019 at 01:37PM

19
#1548 - Yannick Gladow / @y_gldw

09/16/2019 at 07:05PM

19
#1549 - Pogues 123 / @123Pogues

09/17/2019 at 12:26AM

19
#1550 - Viktor Styrud / @ViktorStyrud

09/18/2019 at 11:30AM

19
#1551 - Jonathan Lozinski / @jlozinski

09/18/2019 at 01:29PM

19
#1552 - Jonathan Yong / @yongrenjie

09/19/2019 at 01:13PM

19
#1553 - Trapier Marshall / @aoeuser

09/26/2019 at 03:59AM

19
#1554 - gigorok / @gigorok

10/04/2019 at 11:41AM

19
#1555 - Lycal / @Lycal3

10/13/2019 at 11:51AM

19
#1556 - tuck cursed on rerB / @19emtuck

10/13/2019 at 09:19PM

19
#1557 - Константин / @pillar_vandyke

10/17/2019 at 05:49AM

19
#1558 - Dantes / @YoManu513_

10/18/2019 at 12:24AM

19
#1559 - roemermeier / @roemermeier

10/19/2019 at 02:17PM

19
#1560 - Vojtěch Pejša / @7Vojta7

10/22/2019 at 07:21PM