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):
27
#2491 - adir ohayon / @AdirKip

01/07/2019 at 11:02PM

27
#2492 - Mac Goever / @MacGoever

01/27/2019 at 08:43PM

27
#2493 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 07:05PM

27
#2494 - 김형창 / @uVmEMZsCgcYvqZi

03/29/2019 at 03:21AM

27
#2495 - woddy cyconer / @woddy1

04/22/2019 at 11:47AM

27
#2496 - R / @rvan123

05/01/2019 at 04:36AM

27
#2497 - IHateTweeting999 / @ITweeting999

05/02/2019 at 10:43PM

27
#2498 - David McDonald / @dmcdona

05/15/2019 at 08:42AM

27
#2499 - Zach E-R / @Tweet_First

05/16/2019 at 04:48PM

27
#2500 - Juraj Skvarla / @Athlet

05/30/2019 at 02:12PM

27
#2501 - Roberto Carraretto / @robcarraretto

05/30/2019 at 07:47PM

27
#2502 - Rwithik Manoj / @RwithikM

06/06/2019 at 02:38PM

28
#2503 - Jörg Herbst / @terrible_herbst

06/04/2016 at 07:55PM

28
#2504 - Richard Laub / @RWLaub91

07/22/2016 at 03:05AM

28
#2505 - lucas / @rept357

08/24/2016 at 01:43PM

28
#2506 - Patrick J McDonough / @snake_VsCamel

09/05/2016 at 03:09AM

28
#2507 - Christoph Wong / @ctophwong

10/15/2016 at 11:07AM

28
#2508 - Benoît Labaere / @b_labaere

01/03/2017 at 09:18PM

28
#2509 - Alex Moorman / @dabearsxander

01/05/2017 at 11:46PM

28
#2510 - racffee / @RacffedeRacffee

01/15/2017 at 05:29PM

28
#2511 - NG / @dueyfinster

02/07/2017 at 04:40PM

28
#2512 - Alec Zhang / @alecjzhang

04/18/2017 at 10:44PM

28
#2513 - raffitz / @raffitz

04/19/2017 at 05:25PM

28
#2514 - Alexander Gryson / @agryson

05/01/2017 at 01:48PM

28
#2515 - A1m / @A1mGG

06/05/2017 at 03:07AM

28
#2516 - The Jamaican Bobsled / @jamaicanbobsled

09/03/2017 at 01:21PM

28
#2517 - Barespamtak / @barespamtak

09/06/2017 at 08:57AM

28
#2518 - Geoff / @RealGeoffErwin

09/26/2017 at 10:15PM

28
#2519 - knut ytterhaug / @knutemann

03/23/2018 at 03:51PM

28
#2520 - Hellon Canella / @helloncanella

04/28/2018 at 04:06AM