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

2946 active golfers, 13705 entries

Leaderboard (lowest score wins):
25
#2581 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 11:14PM

25
#2582 - Anton Permenev / @a_permenev

10/29/2018 at 04:34PM

25
#2583 - Awakening George / @GeorgeC_monster

12/23/2018 at 10:18PM

25
#2584 - Prem Oza / @OzaPrem

01/03/2019 at 11:42AM

25
#2585 - jdw / @jdw76778810

01/24/2019 at 12:46AM

25
#2586 - Fabian Bull / @peri4n

01/28/2019 at 12:38AM

25
#2587 - Colby Brown / @colbyabrown

02/11/2019 at 02:49AM

25
#2588 - Ashley Harvey / @ashleyharvey87

03/06/2019 at 07:30AM

25
#2589 - Inf Loop / @infl00p

03/22/2019 at 06:56PM

25
#2590 - Magnus Israel / @Mangust1

04/16/2019 at 07:13PM

25
#2591 - berp / @blerpaderp

04/19/2019 at 08:03PM

25
#2592 - EliTheCoder / @elithecoder

04/29/2019 at 11:26PM

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

05/20/2019 at 01:38PM

25
#2594 - Rohit Kumar Jena / @rohitrango

06/30/2019 at 10:14AM

25
#2595 - mirsemen / @mirsemen1

07/14/2019 at 10:39AM

25
#2596 - Riftere / @riftere11

08/04/2019 at 11:34PM

25
#2597 - Chris Shorrock / @EbinFlow

08/15/2019 at 03:04PM

25
#2598 - Hot Take / @hottake69

08/17/2019 at 08:05PM

25
#2599 - Simon Andermatt / @SimonAndermatt

08/23/2019 at 08:08PM

25
#2600 - Jason Birchall / @jsonBirchall

09/23/2019 at 08:35AM

25
#2601 - Mats Faugli / @matsfaugli

09/23/2019 at 11:48AM

25
#2602 - Miko / @_m_ik_o_

09/24/2019 at 06:36PM

25
#2603 - Josefina Alconada / @jochiAlconada

10/03/2019 at 10:49AM

25
#2604 - Zviad Mgaloblishvili / @ZMgaloblishvili

10/10/2019 at 08:36PM

25
#2605 - Vladimir Leskov / @vladimirlesk

10/12/2019 at 11:45AM

26
#2606 - Joe McKenney / @mckenney00

04/05/2016 at 04:34AM

26
#2607 - jamesmcm03 / @jamesmcm03

04/14/2016 at 02:38PM

26
#2608 - Andy / @mayuyu48a

04/20/2016 at 04:16AM

26
#2609 - Alec Benzer / @alecbenzer

05/03/2016 at 01:41AM

26
#2610 - Nicola Coretti / @NiCoRetti

05/30/2016 at 07:59AM