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):
27
#3541 - P37vo4WS / @p37vo4

12/29/2020 at 08:42PM

27
#3542 - Nicholas Healy / @nickrhealy

12/29/2022 at 04:26PM

27
#3543 - Jordan Woods / @JordanW09204552

06/09/2023 at 04:14AM

27
#3544 - Olivier Bégassat / @zk_evm

06/12/2023 at 01:37AM

27
#3545 - Taylor Allred / @tcallred

04/24/2025 at 06:55PM

27
#3546 - Ryan Miller / @RPMiller

07/11/2025 at 10:16PM

28
#3547 - Jörg Herbst / @terrible_herbst

06/04/2016 at 07:55PM

28
#3548 - Richard Laub / @RWLaub91

07/22/2016 at 03:05AM

28
#3549 - lucas / @rept357

08/24/2016 at 01:43PM

28
#3550 - Patrick J McDonough / @snake_VsCamel

09/05/2016 at 03:09AM

28
#3551 - Christoph Wong / @ctophwong

10/15/2016 at 11:07AM

28
#3552 - Benoît Labaere / @b_labaere

01/03/2017 at 09:18PM

28
#3553 - Alex Moorman / @dabearsxander

01/05/2017 at 11:46PM

28
#3554 - racffee / @RacffedeRacffee

01/15/2017 at 05:29PM

28
#3555 - NG / @dueyfinster

02/07/2017 at 04:40PM

28
#3556 - Alec Zhang / @alecjzhang

04/18/2017 at 10:44PM

28
#3557 - raffitz / @raffitz

04/19/2017 at 05:25PM

28
#3558 - Alexander Gryson / @agryson

05/01/2017 at 01:48PM

28
#3559 - A1m / @A1mGG

06/05/2017 at 03:07AM

28
#3560 - The Jamaican Bobsled / @jamaicanbobsled

09/03/2017 at 01:21PM

28
#3561 - Barespamtak / @barespamtak

09/06/2017 at 08:57AM

28
#3562 - Geoff / @RealGeoffErwin

09/26/2017 at 10:15PM

28
#3563 - knut ytterhaug / @knutemann

03/23/2018 at 03:51PM

28
#3564 - Hellon Canella / @helloncanella

04/28/2018 at 04:06AM

28
#3565 - Boda / @Boda47528108

06/04/2018 at 09:51AM

28
#3566 - 无眠的夜狐狸 / @fox_ni

08/14/2018 at 07:16AM

28
#3567 - Tdawg / @Tdawg37048815

09/11/2018 at 08:19PM

28
#3568 - Shashank G Hegde / @shashankghegde

10/07/2018 at 07:09PM

28
#3569 - dogmeat / @dogmeat11

10/23/2018 at 11:48AM

28
#3570 - m472 / @m4729

10/26/2018 at 11:55PM