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

3882 active golfers, 18801 entries

Leaderboard (lowest score wins):
37
#3781 - DQMSL対戦募集ツイートbot / @foronlinegamer

03/13/2018 at 02:37AM

37
#3782 - Artsiom Kashkou / @pochka15

07/09/2018 at 05:49PM

37
#3783 - Jakub Tesárek / @JakubTesarek

07/24/2018 at 12:47PM

37
#3784 - Ernesto Fornaciari / @ernesto11a

10/24/2019 at 01:03PM

37
#3785 - finn.mertens / @finnmer22139082

03/12/2020 at 06:44AM

37
#3786 - Joe Farnsworth / @JoeFarnsworth

03/22/2020 at 06:40PM

37
#3787 - सागर पौडेल / @SagarP04d31

06/23/2020 at 02:59PM

37
#3788 - abhijeet patil / @abhijeetptl5

09/02/2020 at 05:56PM

37
#3789 - Pavlo Hadzheha / @PHadzheha

01/31/2021 at 05:51PM

38
#3790 - Cameron Dershem / @jerknextdoor

10/04/2016 at 11:44PM

38
#3791 - The9ain / @the9ain

08/03/2018 at 02:29AM

38
#3792 - Cole Hudson / @colejhudson

11/21/2018 at 05:47PM

38
#3793 - Carsano / @DamienFbn

03/03/2019 at 09:36PM

38
#3794 - James Perry Hartman / @JauntyJPH

03/27/2019 at 12:09PM

38
#3795 - Juan Francisco Bertona / @Weed1an

10/11/2019 at 09:57AM

38
#3796 - August Nejudne / @AugustNejudne

12/14/2019 at 09:30AM

38
#3797 - Martin Landsem / @landsematwork

06/15/2020 at 10:33AM

38
#3798 - Simon Bernard / @dolphinburger77

04/19/2022 at 03:46AM

39
#3799 - Ayberk Yılmaz / @thelatesttrick

12/28/2016 at 09:28PM

39
#3800 - eleonora V Genechten / @eleonoraV_G

05/03/2018 at 07:40PM

39
#3801 - Urso / @UrsoAcademy

01/31/2019 at 08:16PM

39
#3802 - Marco Cárdenas / @mgtcardenas

03/09/2019 at 06:51PM

39
#3803 - Sam A. Horvath-Hunt / @SamHH95

08/18/2019 at 10:44AM

39
#3804 - Ishi / @HalloWard1

03/08/2020 at 09:57AM

40
#3805 - kai / @klc1989110

08/27/2016 at 12:42AM

40
#3806 - kyusuke / @8140i2865_3

04/06/2018 at 04:50AM

40
#3807 - Féfé Aviat / @FefeMavia

05/06/2018 at 12:49PM

40
#3808 - Paris Yee / @pyee__

08/16/2018 at 08:40PM

40
#3809 - Brent Woo / @BrentPWoo

02/28/2019 at 02:51AM

40
#3810 - Cas / @cascer1

02/06/2020 at 02:59PM