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

3467 active golfers, 16689 entries

Leaderboard (lowest score wins):
23
#2791 - Bruno Machado / @brunosmmachado

10/20/2019 at 11:53AM

23
#2792 - Korgan / @Korgan36725554

11/20/2019 at 05:42PM

23
#2793 - David / @dalbertom

12/01/2019 at 05:05PM

23
#2794 - Coby Drexler / @CobyDrexler

12/12/2019 at 12:34AM

23
#2795 - John Prescott / @wladeczek44

12/12/2019 at 08:03PM

23
#2796 - John Grove / @grovejt

12/16/2019 at 06:57PM

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

12/26/2019 at 08:22AM

23
#2798 - Noah Golub / @NoahGolub2

12/27/2019 at 07:33AM

23
#2799 - None / @sh1chuang

12/30/2019 at 10:00AM

23
#2800 - Lars Haalck / @larshulk

01/08/2020 at 10:15AM

23
#2801 - 5m0r14x / @5m0r14x

01/10/2020 at 09:48PM

23
#2802 - oponkork / @oponkork

01/11/2020 at 05:26AM

23
#2803 - Kirill Maltsev / @kirill_maltsev

01/17/2020 at 09:14PM

23
#2804 - Taamas / @Teatrero5

01/18/2020 at 11:04AM

23
#2805 - bob / @solacium1493

01/18/2020 at 07:15PM

23
#2806 - Larry Adames / @LarryAdames

01/19/2020 at 01:05AM

23
#2807 - Mark Brouwers / @fryght

01/20/2020 at 03:02PM

23
#2808 - Xiangzhuo Meng / @MengXiangzhuo

01/31/2020 at 01:53PM

23
#2809 - Falafel Palapel / @falafelpalapel

02/11/2020 at 06:57PM

23
#2810 - Pietrino Atzeni / @beoboo

02/16/2020 at 09:17PM

23
#2811 - Jonathan.N.Carrot / @JonathanNCarrot

02/27/2020 at 07:42AM

23
#2812 - Гошка Иванов / @b_goshka

03/11/2020 at 10:51AM

23
#2813 - Richard Pape / @Drippydik187

04/05/2020 at 02:10PM

23
#2814 - Kelvin Meyer / @Kelvin_Meyer15

04/09/2020 at 12:17PM

23
#2815 - Кунин Александр / @skyksandr

04/16/2020 at 05:12PM

23
#2816 - Fabian Ahbeck / @FAhbeck

04/22/2020 at 09:39PM

23
#2817 - Tzero Ocne / @TzeroOcne

05/08/2020 at 11:16AM

23
#2818 - vimgolf_throwaway / @vimgolfthrowaw1

05/14/2020 at 09:37PM

23
#2819 - C++くん(元店長) / @_shop_one

06/28/2020 at 08:07AM

23
#2820 - 薛乾明 / @xueqianming200

06/29/2020 at 04:34AM