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

2756 active golfers, 12650 entries

Leaderboard (lowest score wins):
20
#1441 - Ben Baker-Smith / @Bit_Synthesis

07/17/2016 at 05:29AM

20
#1442 - richard / @wulianxuyang

07/22/2016 at 06:19AM

20
#1443 - Sarang Khim / @sarang_khim

08/02/2016 at 03:13AM

20
#1444 - Ratmonkey / @Ratm0nkey

08/04/2016 at 08:39PM

20
#1445 - Marek Wawrzos / @putisPenser

08/08/2016 at 07:41AM

20
#1446 - Daniel and Valerie / @daniel_and_val

08/09/2016 at 08:20AM

20
#1447 - Baptiste Vannesson / @Badacadabra

08/23/2016 at 10:56PM

20
#1448 - Dannver / @dannverwu

09/04/2016 at 08:02AM

20
#1449 - nixi3 / @Nixi3cc

09/05/2016 at 03:44AM

20
#1450 - ILikeVim / @VimIsCool

09/05/2016 at 01:59PM

20
#1451 - Alexander / @vlasyuk_a

09/06/2016 at 10:21AM

20
#1452 - Anoop Kumar / @anooplive

09/09/2016 at 05:53PM

20
#1453 - Ben Burlingham / @BenBurlingham

09/11/2016 at 02:44AM

20
#1454 - Shahaf A / @Av3r4ge

09/12/2016 at 10:00PM

20
#1455 - Jörg Meyer / @JoergMy

10/01/2016 at 04:10PM

20
#1456 - Christian Rondeau / @c_rondeau

10/14/2016 at 03:24AM

20
#1457 - Nikita Gritsai / @GritsaiNikita

10/16/2016 at 01:38PM

20
#1458 - Кирилл / @cyril_sad

10/17/2016 at 08:18AM

20
#1459 - John Hassell / @jhassell

10/21/2016 at 02:59PM

20
#1460 - KangHun Seo / @shirano80

10/22/2016 at 06:10AM

20
#1461 - Kim Grytøyr / @kimgrytoyr

10/23/2016 at 07:38PM

20
#1462 - Bastiaan Deknudt / @Tionkje

10/25/2016 at 07:32PM

20
#1463 - Stefan Knudsen / @knud32

10/29/2016 at 01:32AM

20
#1464 - 3514 / @1PGU4eRolvpMmN2

11/05/2016 at 03:40PM

20
#1465 - Jonathan C. Dietrich / @jcdietrich

11/18/2016 at 09:43PM

20
#1466 - Rodolfo Palma Otero / @rpalmao

11/20/2016 at 04:22AM

20
#1467 - Ryan Marcotte / @ryanjmarcotte

11/23/2016 at 11:19PM

20
#1468 - Vojtěch Vobr / @vvobr

12/03/2016 at 06:18PM

20
#1469 - leelddd / @leelddd

12/07/2016 at 07:49AM

20
#1470 - Mathieu Larouche / @matdube

12/14/2016 at 07:11PM