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

3667 active golfers, 17704 entries

Leaderboard (lowest score wins):
26
#3241 - TachyG / @Tachypsychique

01/29/2018 at 11:58AM

26
#3242 - Daniel de Vries / @devries_d

02/14/2018 at 09:12PM

26
#3243 - Amanj Sherwany / @amanjpro

03/04/2018 at 05:49PM

26
#3244 - jan4o / @jan4o_2

03/13/2018 at 10:56PM

26
#3245 - Sean Earle / @Hell_Rok

05/03/2018 at 03:26AM

26
#3246 - ikigai / @ikigai27357012

06/17/2018 at 01:28PM

26
#3247 - Sérgio Mucciaccia / @SMucciaccia

07/17/2018 at 04:22PM

26
#3248 - Jordan 🌈 / @JordanCallumA

07/31/2018 at 04:55PM

26
#3249 - Pierre Dorbais / @chdorb

08/09/2018 at 11:56AM

26
#3250 - Alex Mitchell / @alexthemitchell

09/21/2018 at 09:30PM

26
#3251 - skamelone / @skamelone

10/01/2018 at 10:57PM

26
#3252 - Jake Schurch / @jake_schurch

10/30/2018 at 07:28PM

26
#3253 - Calvin Fong / @LordyBaka

11/03/2018 at 08:34AM

26
#3254 - Wadikur Rahman / @Wadikur

11/11/2018 at 02:47PM

26
#3255 - Elias Daler / @EliasDaler

03/12/2019 at 03:18PM

26
#3256 - Jonathan / @jberglinds

03/14/2019 at 03:12PM

26
#3257 - Simon Rycroft / @sirycroftmusic

03/26/2019 at 05:33PM

26
#3258 - Richard / @Richard92158035

04/12/2019 at 02:38PM

26
#3259 - venkatakrishnan / @venkatk_

04/15/2019 at 02:38AM

26
#3260 - おけ / @ok8omk

05/28/2019 at 04:16AM

26
#3261 - Алексей Торрин / @forkiy

05/31/2019 at 12:40PM

26
#3262 - SnakyPoutz / @snakypoutz

06/06/2019 at 08:28AM

26
#3263 - Ayzen / @Ayzen

06/06/2019 at 09:17AM

26
#3264 - Trevor Langston / @sunkenroad

07/03/2019 at 12:40AM

26
#3265 - Christopher Currens / @chriscurrens

07/22/2019 at 05:13PM

26
#3266 - David Elkouss / @d_elkouss

07/31/2019 at 04:48PM

26
#3267 - Guillaume leon / @Le_Zappellin

08/26/2019 at 04:32PM

26
#3268 - Daisuke Ito / @itodais

08/27/2019 at 01:25PM

26
#3269 - dpetrovic_vimgolf / @DpetrovicV

08/27/2019 at 01:30PM

26
#3270 - Sebastian Thomas / @SebastianTh0mas

08/30/2019 at 01:18PM