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

3882 active golfers, 18801 entries

Leaderboard (lowest score wins):
25
#3331 - Austin Ware / @AustinWare17

03/12/2018 at 05:32PM

25
#3332 - JULITE / @JULIPTU

03/20/2018 at 07:38PM

25
#3333 - Anonymous / @Anonymous31658

03/27/2018 at 03:08AM

25
#3334 - Hello Mr Nameless / @HelloB348500

04/14/2018 at 01:34PM

25
#3335 - Dieter Adriaenssens / @dcadriaenssens

04/14/2018 at 08:00PM

25
#3336 - Skidd0 / @mcskidd0

05/03/2018 at 10:44PM

25
#3337 - Pablo Orduna / @OrdunaPablo

05/12/2018 at 03:31PM

25
#3338 - Colin Hart / @ColinTheRobot

06/06/2018 at 05:50PM

25
#3339 - Yann VERY / @yannvery

06/25/2018 at 11:02AM

25
#3340 - niwatoco / @yoshitune9

07/16/2018 at 02:18PM

25
#3341 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 09:33PM

25
#3342 - a / @UseForVim

10/03/2018 at 07:19PM

25
#3343 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 11:14PM

25
#3344 - Anton Permenev / @a_permenev

10/29/2018 at 04:34PM

25
#3345 - Awakening George / @GeorgeC_monster

12/23/2018 at 10:18PM

25
#3346 - Prem Oza / @OzaPrem

01/03/2019 at 11:42AM

25
#3347 - jdw / @jdw76778810

01/24/2019 at 12:46AM

25
#3348 - @peri4n@mathstodon.xyz / @peri4n

01/28/2019 at 12:38AM

25
#3349 - Colby Brown / @colbyabrown

02/11/2019 at 02:49AM

25
#3350 - Ashley Harvey / @ashleyharvey87

03/06/2019 at 07:30AM

25
#3351 - Inf Loop / @infl00p

03/22/2019 at 06:56PM

25
#3352 - Magnus Israel / @Mangust1

04/16/2019 at 07:13PM

25
#3353 - berp / @blerpaderp

04/19/2019 at 08:03PM

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

05/20/2019 at 01:38PM

25
#3355 - Rohit Jena / @rohitrango

06/30/2019 at 10:14AM

25
#3356 - mirsemen / @mirsemen1

07/14/2019 at 10:39AM

25
#3357 - Riftere / @riftere11

08/04/2019 at 11:34PM

25
#3358 - Chris Shorrock / @EbinFlow

08/15/2019 at 03:04PM

25
#3359 - Hot Take / @hottake69

08/17/2019 at 08:05PM

25
#3360 - Simon Andermatt / @SimonAndermatt

08/23/2019 at 08:08PM