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):
31
#3691 - Timo Böhm / @TimoBohm

11/25/2019 at 10:21AM

31
#3692 - Aaron / @_Lordofthevoid_

12/16/2019 at 07:29PM

32
#3693 - Luke / @toy_lang_smell

12/28/2016 at 10:15PM

32
#3694 - kli6891 / @kli6891

01/24/2017 at 04:10AM

32
#3695 - brandon salmon / @Exiledz

08/13/2017 at 04:16AM

32
#3696 - Ferran / @ferrandinandus

09/25/2017 at 12:17PM

32
#3697 - Justin Sitarz / @justinsitarz

12/20/2017 at 05:36PM

32
#3698 - Olivier0d0 💡 / @olivierodo

03/29/2018 at 12:52PM

32
#3699 - Mark Anderson / @manderson_uk

05/04/2018 at 10:21AM

32
#3700 - olivier lemoigne / @olivierlemoigne

05/04/2018 at 12:39PM

32
#3701 - 転職系えかはす( ˇωˇ ) / @Ekahs_2

06/20/2018 at 08:17AM

32
#3702 - Ben Rudolph / @_benrudolph

08/01/2018 at 05:41AM

32
#3703 - Kevin Cooler / @KevinCooler

08/10/2018 at 12:27AM

32
#3704 - Ketan Agrawal / @_ketan0_

09/25/2018 at 04:32PM

32
#3705 - Chris Hughes / @ChristofHughes

10/06/2018 at 09:11PM

32
#3706 - urandom / @ttyrandom

10/20/2018 at 06:20AM

32
#3707 - Jacob Mortensen / @jwmortensen

12/10/2018 at 08:32PM

32
#3708 - Jan B. / @bracki

04/08/2019 at 12:48PM

32
#3709 - Диплодок Денис / @l0sts0u1

05/13/2019 at 06:32AM

32
#3710 - Clint Caudle / @ClintCaudle

07/22/2019 at 04:35AM

32
#3711 - afk / @Allan_FK

01/14/2020 at 02:53PM

32
#3712 - Nguyen Van Bac / @taybacvt

01/18/2020 at 02:53PM

32
#3713 - 彭文明 / @k5BIQKzx3aRT9Jb

07/03/2020 at 09:30AM

32
#3714 - Ryan / @Ryan63088464

09/13/2020 at 07:44AM

32
#3715 - fff / @fff51460170

01/13/2021 at 02:41AM

32
#3716 - Alexander Groth / @alexander-walkingtreegames

05/23/2024 at 10:20AM

32
#3717 - Badita Marin-Georgian / @GeorgianBadita

11/26/2024 at 11:12PM

33
#3718 - Marc Seibert / @interzone_cc

05/04/2016 at 03:59PM

33
#3719 - Sukovec / @Sukovec

05/11/2016 at 02:06PM

33
#3720 - Kerry Todyruik / @KTodyruik

05/17/2016 at 02:25AM