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

2084 active golfers, 9281 entries

Leaderboard (lowest score wins):
14
#1 - Urtica dioica / @udioica

03/31/2016 at 01:43AM

14
#2 - lilach adir / @leelaRed

03/31/2016 at 06:36AM

14
#3 - John Braxler / @braxler

03/31/2016 at 12:43PM

14
#4 - Diego Garcia ⚒ / @drgarcia1986

04/02/2016 at 10:30PM

14
#5 - shein / @skriyka

04/07/2016 at 05:24PM

14
#6 - Marcin Radomski / @_dextero

04/09/2016 at 10:49AM

14
#7 - Phan Hai Phong / @haiphong_phan

04/13/2016 at 03:38PM

14
#8 - ほんとvaca / @hontovaca

04/13/2016 at 09:52PM

14
#9 - Camusensei / @Camusensei

04/14/2016 at 06:14AM

14
#10 - JinHwan Choi / @jinhwanlazy

04/14/2016 at 09:20AM

14
#11 - Foo Bar / @computerhelpma2

04/15/2016 at 01:43AM

14
#12 - Champion Pierre / @Pierre_darkirus

04/15/2016 at 03:55PM

14
#13 - Domingue Justin / @_jdomingue

04/17/2016 at 06:23PM

14
#14 - actionless / @actionless13

04/20/2016 at 08:01AM

14
#15 - Johnny Zhou / @JohnnyZhou01

04/24/2016 at 12:33PM

14
#16 - Tom Harada / @p10q

04/25/2016 at 05:34AM

14
#17 - Olivia Tharp / @tehlivi

04/27/2016 at 09:51PM

14
#18 - Andres Hazard / @andreshazard

04/28/2016 at 04:04AM

14
#19 - Hoang Tran / @hoangtx_master

04/29/2016 at 03:57PM

14
#20 - Adam Leach / @qazwsxal

04/29/2016 at 07:50PM

14
#21 - Ben Sherman / @bensherman

04/30/2016 at 05:10AM

14
#22 - mebubo / @mebubo

05/01/2016 at 10:31AM

14
#23 - Kawin Nikomborirak / @nikomborirak

05/02/2016 at 05:11AM

14
#24 - Frederik Jerløv / @fjerlv

05/02/2016 at 09:17AM

14
#25 - Bob Boberson / @BobersonBob7

05/02/2016 at 10:09AM

14
#26 - Adv_Zxy / @adv_zxy

05/02/2016 at 02:03PM

14
#27 - Luke Powell / @luxgladius

05/02/2016 at 03:22PM

14
#28 - Lim Chun Leng / @chunleng

05/02/2016 at 04:42PM

14
#29 - John Goes / @johnwgoes

05/03/2016 at 05:44AM

14
#30 - Darren Tsung / @darrentsung

05/04/2016 at 12:50AM