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):
25
#2401 - Fabian Bull / @peri4n

01/28/2019 at 12:38AM

25
#2402 - Colby Brown / @colbyabrown

02/11/2019 at 02:49AM

25
#2403 - Ashley Harvey / @ashleyharvey87

03/06/2019 at 07:30AM

25
#2404 - Inf Loop / @infl00p

03/22/2019 at 06:56PM

25
#2405 - Magnus Israel / @Mangust1

04/16/2019 at 07:13PM

25
#2406 - berp / @blerpaderp

04/19/2019 at 08:03PM

25
#2407 - EliTheCoder / @elithecoder

04/29/2019 at 11:26PM

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

05/20/2019 at 01:38PM

26
#2409 - Joe McKenney / @mckenney00

04/05/2016 at 04:34AM

26
#2410 - jamesmcm03 / @jamesmcm03

04/14/2016 at 02:38PM

26
#2411 - Andy / @mayuyu48a

04/20/2016 at 04:16AM

26
#2412 - Alec Benzer / @alecbenzer

05/03/2016 at 01:41AM

26
#2413 - Nicola Coretti / @NiCoRetti

05/30/2016 at 07:59AM

26
#2414 - Jez Prime / @jezprime

07/27/2016 at 12:21PM

26
#2415 - F S / @0HdqEYLDZIXXZwj

08/09/2016 at 10:13AM

26
#2416 - Luc Mazardo / @lxtrmz

08/10/2016 at 10:21PM

26
#2417 - Rizart Dokollari / @rdokollari

09/14/2016 at 12:24PM

26
#2418 - Søren / @natlampen

09/20/2016 at 04:04PM

26
#2419 - Tomáš Vik / @vicek22

11/05/2016 at 10:52PM

26
#2420 - Rahul Gupta 🎹 / @pezcoder

11/11/2016 at 07:10PM

26
#2421 - Mick Killianey / @mkillianey

12/27/2016 at 08:28PM

26
#2422 - Nate / @nbrown04

01/07/2017 at 09:07PM

26
#2423 - Filype Pereira / @FilypePereira

01/30/2017 at 10:08AM

26
#2424 - Summer Dhwoj Acharya / @techgaun

04/19/2017 at 06:06PM

26
#2425 - R3s1stanc3 / @r3s1stanc3_

04/23/2017 at 08:38AM

26
#2426 - Way Yan / @WayYan35002527

05/07/2017 at 02:30AM

26
#2427 - William Dankspeare / @will_dankspeare

06/29/2017 at 05:45PM

26
#2428 - David Tilly / @dhtilly

08/12/2017 at 05:43AM

26
#2429 - Steve / @thearctican

08/14/2017 at 05:52PM

26
#2430 - Austin Harrison / @BarbaricSaint

08/23/2017 at 05:39PM