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

2705 active golfers, 12428 entries

Leaderboard (lowest score wins):
26
#2431 - Rich Hanes / @georgebastille

10/15/2017 at 06:40PM

26
#2432 - kunseikunsei / @kunseikunsei1

10/25/2017 at 11:54AM

26
#2433 - Sébastien Canart / @kokotchY

10/28/2017 at 08:29AM

26
#2434 - Scott Helm / @scott_helm

11/07/2017 at 11:42PM

26
#2435 - Jacob Merizian / @jmerizia

12/11/2017 at 10:41PM

26
#2436 - Adam Townsend / @despendesigns

01/26/2018 at 03:31AM

26
#2437 - TachyG / @Tachypsychique

01/29/2018 at 11:58AM

26
#2438 - Daniel de Vries / @devries_d

02/14/2018 at 09:12PM

26
#2439 - Amanj Sherwany / @amanjpro

03/04/2018 at 05:49PM

26
#2440 - jan4o / @jan4o_2

03/13/2018 at 10:56PM

26
#2441 - Sean Earle / @Hell_Rok

05/03/2018 at 03:26AM

26
#2442 - ikigai / @ikigai27357012

06/17/2018 at 01:28PM

26
#2443 - Sérgio Mucciaccia / @SMucciaccia

07/17/2018 at 04:22PM

26
#2444 - Jordan 🌈 / @JordanCallumA

07/31/2018 at 04:55PM

26
#2445 - Pierre Dorbais / @chdorb

08/09/2018 at 11:56AM

26
#2446 - Alex Mitchell / @alexthemitchell

09/21/2018 at 09:30PM

26
#2447 - skamelone / @skamelone

10/01/2018 at 10:57PM

26
#2448 - Jake Schurch / @jake_schurch

10/30/2018 at 07:28PM

26
#2449 - Calvin Fong / @LordyBaka

11/03/2018 at 08:34AM

26
#2450 - Wadikur Rahman / @Wadikur

11/11/2018 at 02:47PM

26
#2451 - Elias Daler / @EliasDaler

03/12/2019 at 03:18PM

26
#2452 - Jonathan / @jberglinds

03/14/2019 at 03:12PM

26
#2453 - Simon Rycroft / @sirycroftmusic

03/26/2019 at 05:33PM

26
#2454 - Richard / @Richard92158035

04/12/2019 at 02:38PM

26
#2455 - venkatakrishnan / @venkatk_

04/15/2019 at 02:38AM

26
#2456 - おけ / @ok8omk

05/28/2019 at 04:16AM

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

05/31/2019 at 12:40PM

26
#2458 - SnakyPoutz / @snakypoutz

06/06/2019 at 08:28AM

26
#2459 - Ayzen / @Ayzen

06/06/2019 at 09:17AM

27
#2460 - Tim Green / @iamtimgreen

03/30/2016 at 03:37AM