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

2762 active golfers, 12689 entries

Leaderboard (lowest score wins):
14
#511 - yuesezhihuo / @yuesezhihuo

04/23/2019 at 01:45PM

14
#512 - Grant / @grant_7788

04/25/2019 at 01:33PM

14
#513 - ImaNotgate / @INotgate

04/28/2019 at 02:05AM

14
#514 - Kai.Li / @KaiLi19

04/28/2019 at 03:03AM

14
#515 - Sherab Giovannini / @shaddycls

05/01/2019 at 02:14PM

14
#516 - Ítalo Vieira / @italoviieira

05/06/2019 at 02:00AM

14
#517 - tynanguerra / @tynanguerra

05/16/2019 at 04:27AM

14
#518 - maximilian / @maximil61408276

05/18/2019 at 08:37PM

14
#519 - Damian Rodriguez / @damianrr

05/20/2019 at 06:33PM

14
#520 - popexizhi / @popexizhi

05/22/2019 at 08:25AM

14
#521 - aggums / @touhoueurobeat

05/25/2019 at 08:56PM

14
#522 - Seunghun Lee / @earlbread

05/26/2019 at 09:52AM

14
#523 - Joo Ming / @JooMingJoo

06/06/2019 at 08:59PM

14
#524 - Ben M / @Sweet_Scientist

06/07/2019 at 01:45AM

14
#525 - Fernando Motta / @Fmmotta01

06/07/2019 at 11:53AM

14
#526 - BunFluffman / @BFluffman

06/07/2019 at 04:15PM

14
#527 - hielke / @hielke24840788

06/23/2019 at 12:01AM

14
#528 - Dan Yeaw / @danyeaw

06/30/2019 at 01:08AM

14
#529 - Julien Gormotte / @gormux

07/05/2019 at 09:00AM

14
#530 - as-night / @asnight2

07/05/2019 at 07:35PM

14
#531 - Witcher / @WitcherWitcherW

07/09/2019 at 08:37AM

14
#532 - Peter Demin / @peterdemin

07/10/2019 at 06:29PM

14
#533 - Tim / @BusingTim

07/14/2019 at 09:23AM

14
#534 - Chester Yap / @Chest_ErYap

07/14/2019 at 12:41PM

14
#535 - Kvazhir / @kvazhir

07/17/2019 at 01:12PM

15
#536 - Piotr Walkusz / @piotrwalkusz1

08/11/2018 at 07:43PM

15
#537 - A E / @aechirps

09/11/2018 at 01:30AM

15
#538 - Robin De Mol / @RobinDeMol

09/14/2018 at 10:11AM

15
#539 - Vasil Mikhalenya / @bazillek

09/21/2018 at 07:30PM

15
#540 - Sebastian Korten / @FlashKorten

10/12/2018 at 04:28PM