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

2498 active golfers, 11373 entries

Leaderboard (lowest score wins):
38
#2461 - Cole Hudson / @colejhudson

11/21/2018 at 05:47PM

38
#2462 - Carsano / @DamienFbn

03/03/2019 at 09:36PM

39
#2463 - Ayberk Yılmaz / @thelatesttrick

12/28/2016 at 09:28PM

39
#2464 - eleonora V Genechten / @eleonoraV_G

05/03/2018 at 07:40PM

39
#2465 - Urso / @UrsoAcademy

01/31/2019 at 08:16PM

39
#2466 - Marco Cárdenas / @mgtcardenas

03/09/2019 at 06:51PM

40
#2467 - kai / @klc1989110

08/27/2016 at 12:42AM

40
#2468 - kyusuke / @8140i2865_3

04/06/2018 at 04:50AM

40
#2469 - Féfé Aviat / @FefeMavia

05/06/2018 at 12:49PM

40
#2470 - Paris Yee / @pyee__

08/16/2018 at 08:40PM

40
#2471 - Brent Woo / @BrentPWoo

02/28/2019 at 02:51AM

41
#2472 - Korgan / @Korgan36725554

08/25/2018 at 02:18AM

42
#2473 - Lukas Kruemel / @KruemelKobold

10/06/2016 at 07:37AM

43
#2474 - OlivierLi / @LiZhongSin

11/16/2016 at 01:05AM

44
#2475 - shellfire32 / @shellfire32

11/25/2016 at 01:59PM

44
#2476 - HMSBoaty / @HMS_Boaty

10/30/2017 at 01:50PM

46
#2477 - junkemail9733 / @junkemail9733

06/08/2018 at 11:12PM

46
#2478 - Khoa Anh Nguyen / @ca0932

01/03/2019 at 08:08AM

47
#2479 - ldkjfjlskjdfsk / @lskjdfaljskdf

02/28/2018 at 03:54PM

48
#2480 - Ola Johansson / @oj_johansson

04/16/2018 at 02:04PM

50
#2481 - AJ de Leon / @aj_deleon

07/31/2018 at 11:27PM

52
#2482 - Cathal McGuire / @cmcguire79

08/28/2018 at 08:11AM

53
#2483 - Mitch / @miffstarr

12/15/2018 at 11:22AM

53
#2484 - TadikMaHladik / @TadikH

03/06/2019 at 10:54AM

54
#2485 - John Doe Jr / @bf4648

06/04/2017 at 05:15AM

54
#2486 - Tom Krush / @TomKrush

12/12/2017 at 03:45AM

55
#2487 - Andrew Hanlon / @AndrewDHanlon

10/12/2016 at 06:11PM

58
#2488 - Joël Christ / @jjlchrist

10/07/2016 at 01:08PM

59
#2489 - Charles D / @charliechin

09/19/2017 at 11:40PM

63
#2490 - Peter Lacey-Bordeaux / @placeybordeaux

06/21/2018 at 06:55PM