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

3882 active golfers, 18801 entries

Leaderboard (lowest score wins):
14
#721 - thegoncharov / @thegoncharov

12/30/2020 at 07:16AM

14
#722 - Zhenkai W. / @Zhenkai_W

01/02/2021 at 02:34AM

14
#723 - Duncan / @Duncan31503119

01/07/2021 at 01:00AM

14
#724 - A A A / @37fatos

01/07/2021 at 01:01AM

14
#725 - logtxt / @logtxt1

01/10/2021 at 05:41AM

14
#726 - Marion Oldman / @ThatBigCock

01/16/2021 at 08:38PM

14
#727 - Horst / @Horst91706815

01/20/2021 at 11:34AM

14
#728 - Michael Ye / @mly32michael

01/24/2021 at 04:33PM

14
#729 - omahn / @omahn

01/25/2021 at 10:43PM

14
#730 - OtterPy / @OtterPy

01/26/2021 at 05:21PM

14
#731 - Vgrbwat / @vgrbwat

06/02/2021 at 05:05AM

14
#732 - sean choi / @joosting

06/03/2021 at 02:18AM

14
#733 - Georg Bökman / @BokmanGeorg

07/02/2021 at 03:45PM

14
#734 - Alex / @Ergho

07/13/2021 at 10:26PM

14
#735 - Anupam Kumar / @anupam3bittu

07/24/2021 at 02:40AM

14
#736 - Michel Viktor / @tomkpz

07/26/2021 at 03:34PM

14
#737 - lydxn / @lydxn1

07/29/2021 at 10:45PM

14
#738 - あき / @Aki_Peaceful

08/22/2021 at 12:24PM

14
#739 - mevmev / @mevmev8

09/23/2021 at 12:39AM

14
#740 - }(⇒){ / @TangerinePlank

11/07/2021 at 01:31PM

14
#741 - Max / @Max17868626

11/16/2021 at 03:35AM

14
#742 - Flimsy Giraffe / @flimsy_giraffe

11/27/2021 at 06:18PM

14
#743 - Sammit / @somemeatjain

01/22/2022 at 01:41PM

14
#744 - D. 👋 / @DCT_cpp

02/09/2022 at 06:20PM

14
#745 - shahanavaz m / @shahanavazm

02/16/2022 at 02:46PM

14
#746 - dorianm / @dorianm

05/09/2022 at 12:38AM

14
#747 - Mohammad Zandsalimy / @ahama92

05/17/2022 at 03:51AM

14
#748 - russellzhaomao / @russellzhaomao

05/27/2022 at 07:53AM

14
#749 - Buatvimgolf / @buatvimgolf

07/05/2022 at 08:57AM

14
#750 - Dmitry Antonyuk / @dantonuke

07/07/2022 at 03:22AM