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

3013 active golfers, 14126 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

15
#574 - Piotr Walkusz / @piotrwalkusz1

08/11/2018 at 07:43PM

15
#575 - A E / @aechirps

09/11/2018 at 01:30AM

15
#576 - Robin De Mol / @RobinDeMol

09/14/2018 at 10:11AM

15
#577 - Vasil Mikhalenya / @bazillek

09/21/2018 at 07:30PM

15
#578 - Sebastian Korten / @FlashKorten

10/12/2018 at 04:28PM

15
#579 - Commi / @hellocommi

11/23/2018 at 07:29PM

15
#580 - 波波 / @sbob87

01/04/2019 at 06:08AM

15
#581 - Fl4t / @Fl4t

01/07/2019 at 08:02PM

15
#582 - Federico / @gselsette

01/23/2019 at 12:11AM

15
#583 - Daniel Steinberg / @dstein64

01/29/2019 at 05:59AM

15
#584 - Andy / @andm1992

02/28/2019 at 09:14PM

15
#585 - zh0ng / @zh00ng

03/06/2019 at 07:49AM

15
#586 - T A / @SirAviles

03/17/2019 at 09:57PM

15
#587 - Francois Urquhart / @LostUrquhart

05/12/2019 at 08:35PM

15
#588 - Nick Anishenko / @NAnishenko

05/21/2019 at 10:37AM

15
#589 - Adam Soltys / @adamsoltys

06/07/2019 at 03:15AM

15
#590 - Ben / @ben_g_thomas

06/22/2019 at 10:02AM

15
#591 - Adam Katz / @AdamKat01277576

07/30/2019 at 02:28PM

15
#592 - sooqua / @sooqua

08/07/2019 at 04:31PM

15
#593 - ameebo / @meebwish546

08/09/2019 at 08:43PM

15
#594 - Marco Mannucci / @markomannux

08/23/2019 at 08:52AM

15
#595 - Christian / @paierlep

08/30/2019 at 09:59PM

15
#596 - Madelyn Freed / @EcoBummer

09/04/2019 at 04:17PM

15
#597 - Baine Wedlock / @BaineWedlock

09/06/2019 at 10:07AM

15
#598 - dicekest / @dicekest

09/14/2019 at 03:19PM

15
#599 - Cassandra / @kascein

09/17/2019 at 06:37AM

15
#600 - Khamnhoui-Boulom / @k_nhoui

09/17/2019 at 03:08PM