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):
35
#3751 - 茶々豆 / @chachamame0420

10/19/2018 at 12:48PM

35
#3752 - 陳欣俞 / @newfishg

11/15/2018 at 05:39AM

35
#3753 - Matador Funkmann / @MFunkmann

05/14/2019 at 11:18PM

35
#3754 - Matt / @m4tty1c3

07/25/2019 at 07:19PM

35
#3755 - Tosiaki / @Tosiaki1

09/16/2019 at 01:39PM

35
#3756 - 煮沸的白開水 / @season_303030

12/01/2019 at 03:52PM

35
#3757 - Golfer9001 / @golfer9001

01/26/2020 at 07:52PM

35
#3758 - Sam Christensen / @samuelchriste

11/24/2020 at 04:20AM

35
#3759 - mathieu524287 / @mathieu524287

12/20/2020 at 12:05PM

35
#3760 - guidoguidoguido / @un_nome_stupido

04/28/2021 at 10:51AM

36
#3761 - Nir S / @N1RS

04/07/2016 at 09:40AM

36
#3762 - Mike Krason / @mfkrason

10/27/2016 at 07:50PM

36
#3763 - Nihal Narayanan / @nihaloct31

09/10/2017 at 12:18PM

36
#3764 - – / @nabn_

04/27/2018 at 10:07AM

36
#3765 - Christoph Heim / @iLords

07/28/2018 at 11:14AM

36
#3766 - Jason Aeh / @JasonAeh

07/30/2018 at 06:14PM

36
#3767 - Stefan Schneider / @hinogi

09/05/2018 at 11:25AM

36
#3768 - alaric27 / @alaric272

01/08/2019 at 09:15AM

36
#3769 - Inge Becht / @IngeBecht

01/08/2019 at 06:24PM

36
#3770 - Marko Z / @MarkoZ24828260

03/13/2019 at 03:43PM

36
#3771 - imnottheonlyspy / @imnottheonlyspy

04/25/2019 at 12:43PM

36
#3772 - Spencer Anderson / @Narbulus

03/19/2020 at 08:31PM

36
#3773 - x / @am_zzz_zzz

05/11/2020 at 05:34AM

36
#3774 - Muffin / @Muffin91707986

09/03/2020 at 10:02PM

36
#3775 - でよ / @tada_kun8

01/21/2023 at 05:32AM

37
#3776 - Veeral Patel / @torrex18

08/22/2016 at 03:53AM

37
#3777 - king_zorba / @StrangeZorba

09/21/2016 at 07:18PM

37
#3778 - James Burns / @James_Ian_Burns

10/28/2016 at 01:39PM

37
#3779 - SpermWhale / @AwhaleThatCodes

04/28/2017 at 12:36PM

37
#3780 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 07:08PM