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

2837 active golfers, 13051 entries

Leaderboard (lowest score wins):
25
#2491 - Dieter Adriaenssens / @dcadriaenssens

04/14/2018 at 08:00PM

25
#2492 - Skidd0 / @mcskidd0

05/03/2018 at 10:44PM

25
#2493 - Pablo Orduna / @OrdunaPablo

05/12/2018 at 03:31PM

25
#2494 - Colin Hart / @ColinTheRobot

06/06/2018 at 05:50PM

25
#2495 - Yann VERY / @yannvery

06/25/2018 at 11:02AM

25
#2496 - niwatoco / @yoshitune9

07/16/2018 at 02:18PM

25
#2497 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 09:33PM

25
#2498 - a / @UseForVim

10/03/2018 at 07:19PM

25
#2499 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 11:14PM

25
#2500 - Anton Permenev / @a_permenev

10/29/2018 at 04:34PM

25
#2501 - Awakening George / @GeorgeC_monster

12/23/2018 at 10:18PM

25
#2502 - Prem Oza / @OzaPrem

01/03/2019 at 11:42AM

25
#2503 - jdw / @jdw76778810

01/24/2019 at 12:46AM

25
#2504 - Fabian Bull / @peri4n

01/28/2019 at 12:38AM

25
#2505 - Colby Brown / @colbyabrown

02/11/2019 at 02:49AM

25
#2506 - Ashley Harvey / @ashleyharvey87

03/06/2019 at 07:30AM

25
#2507 - Inf Loop / @infl00p

03/22/2019 at 06:56PM

25
#2508 - Magnus Israel / @Mangust1

04/16/2019 at 07:13PM

25
#2509 - berp / @blerpaderp

04/19/2019 at 08:03PM

25
#2510 - EliTheCoder / @elithecoder

04/29/2019 at 11:26PM

25
#2511 - 心がポッキー / @lawliteqed

05/20/2019 at 01:38PM

25
#2512 - Rohit Kumar Jena / @rohitrango

06/30/2019 at 10:14AM

25
#2513 - mirsemen / @mirsemen1

07/14/2019 at 10:39AM

25
#2514 - Riftere / @riftere11

08/04/2019 at 11:34PM

25
#2515 - Chris Shorrock / @EbinFlow

08/15/2019 at 03:04PM

25
#2516 - Hot Take / @hottake69

08/17/2019 at 08:05PM

25
#2517 - theBecwar / @thebecwar

08/18/2019 at 12:56PM

26
#2518 - Joe McKenney / @mckenney00

04/05/2016 at 04:34AM

26
#2519 - jamesmcm03 / @jamesmcm03

04/14/2016 at 02:38PM

26
#2520 - Andy / @mayuyu48a

04/20/2016 at 04:16AM