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

3494 active golfers, 16834 entries

Leaderboard (lowest score wins):
14
#571 - CF / @CF42231856

11/04/2019 at 02:18PM

14
#572 - てら@FighTimerで作業記録 / @sorahako0515

11/06/2019 at 10:03AM

14
#573 - Sebastien Premont / @spremont

11/12/2019 at 05:14PM

14
#574 - Jangsea Park / @jangsea

11/16/2019 at 02:16AM

14
#575 - Henry / @henry_codes

11/17/2019 at 10:42PM

14
#576 - Mark / @markfilus

11/21/2019 at 05:31PM

14
#577 - bassnecter / @lothedr

11/23/2019 at 08:09AM

14
#578 - Eviber / @youvaaaaa

11/26/2019 at 04:19PM

14
#579 - galanaki / @galanaki

11/27/2019 at 04:38AM

14
#580 - bruiser / @bruiserwins

11/30/2019 at 10:36AM

14
#581 - David Barker / @dashleybarker

12/07/2019 at 03:37PM

14
#582 - Sergi Castro / @sergicastro2001

12/08/2019 at 02:58PM

14
#583 - sapir malka / @sapir5522

12/23/2019 at 02:19PM

14
#584 - rirze / @SourabhWasTaken

12/24/2019 at 08:17PM

14
#585 - Delon / @delonleonard

12/25/2019 at 02:39AM

14
#586 - zqi / @zq11110320

12/27/2019 at 05:54AM

14
#587 - JimmyGymglish / @JGymglish

12/27/2019 at 01:10PM

14
#588 - Maksim / @its_terra

12/30/2019 at 05:26PM

14
#589 - Tyler Culdler / @culdler

01/08/2020 at 03:01AM

14
#590 - Stefan Bjarnason / @stefanttb

01/12/2020 at 11:52PM

14
#591 - John / @Guyer250

01/19/2020 at 12:59AM

14
#592 - Flowepmed S. Sirch / @iluvfugu

01/19/2020 at 02:29AM

14
#593 - Bachelor / @bachelorwang

02/04/2020 at 10:48AM

14
#594 - Robber Toe / @robbertoe

02/06/2020 at 01:34AM

14
#595 - Kyle X. Clark / @KyXr_Clark

02/09/2020 at 11:10PM

14
#596 - 骑空士阿为 / @wuwe19

02/12/2020 at 03:22PM

14
#597 - jrddp / @jrddp0

02/12/2020 at 06:38PM

14
#598 - yhetsugiHMC / @yhetsugi

02/13/2020 at 02:15AM

14
#599 - Anthony BERNARD / @TweetTontony

02/15/2020 at 08:23PM

14
#600 - 川島史也@マイクロサービス開発 / @fumiyakk

02/16/2020 at 08:34AM