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

3404 active golfers, 16287 entries

Leaderboard (lowest score wins):
23
#2731 - vim_ninja / @NinjaVim

08/19/2019 at 03:40AM

23
#2732 - Stefan Krist / @nerdyness_sk

08/20/2019 at 08:24PM

23
#2733 - David / @davidrapsey

08/20/2019 at 10:54PM

23
#2734 - ARK / @ARK69712394

08/27/2019 at 02:54PM

23
#2735 - chriscian / @christianfarani

08/31/2019 at 03:39AM

23
#2736 - Iggy / @iggredible

09/06/2019 at 02:20AM

23
#2737 - ░C░o░o░p░e░r░ ░L░u░c░e░ / @16cluce

09/06/2019 at 03:41PM

23
#2738 - Gammelin Guillaume / @ggammelin

09/18/2019 at 09:29AM

23
#2739 - Ollin Boer Bohan / @madebyollin

09/24/2019 at 09:48PM

23
#2740 - brypto / @hiimbenjy

09/30/2019 at 04:35AM

23
#2741 - Bruno Machado / @brunosmmachado

10/20/2019 at 11:53AM

23
#2742 - Korgan / @Korgan36725554

11/20/2019 at 05:42PM

23
#2743 - David / @dalbertom

12/01/2019 at 05:05PM

23
#2744 - Coby Drexler / @CobyDrexler

12/12/2019 at 12:34AM

23
#2745 - John Prescott / @wladeczek44

12/12/2019 at 08:03PM

23
#2746 - John Grove / @grovejt

12/16/2019 at 06:57PM

23
#2747 - 鏡崎ましろ / @KagamisakiMsr

12/26/2019 at 08:22AM

23
#2748 - Noah Golub / @NoahGolub2

12/27/2019 at 07:33AM

23
#2749 - None / @sh1chuang

12/30/2019 at 10:00AM

23
#2750 - Lars Haalck / @larshulk

01/08/2020 at 10:15AM

23
#2751 - 5m0r14x / @5m0r14x

01/10/2020 at 09:48PM

23
#2752 - oponkork / @oponkork

01/11/2020 at 05:26AM

23
#2753 - Kirill Maltsev / @kirill_maltsev

01/17/2020 at 09:14PM

23
#2754 - Taamas / @Teatrero5

01/18/2020 at 11:04AM

23
#2755 - bob / @solacium1493

01/18/2020 at 07:15PM

23
#2756 - Larry Adames / @LarryAdames

01/19/2020 at 01:05AM

23
#2757 - Mark Brouwers / @fryght

01/20/2020 at 03:02PM

23
#2758 - Xiangzhuo Meng / @MengXiangzhuo

01/31/2020 at 01:53PM

23
#2759 - Falafel Palapel / @falafelpalapel

02/11/2020 at 06:57PM

23
#2760 - Pietrino Atzeni / @beoboo

02/16/2020 at 09:17PM