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):
33
#3721 - zabelly / @IsabellyFF

04/20/2018 at 09:07PM

33
#3722 - minjikim / @minjiki38685196

10/12/2018 at 03:46AM

33
#3723 - zaperrer / @zaperrer

10/26/2018 at 01:49AM

33
#3724 - Zach Russell / @ZacharyRRussell

02/07/2019 at 03:57AM

33
#3725 - LoKi_gamer / @LoKigamer19

03/22/2019 at 05:17PM

33
#3726 - Joanna / @joannac_

05/12/2019 at 05:56AM

33
#3727 - kevinski / @kevinsk30746831

08/21/2019 at 06:12PM

33
#3728 - Patrik Görling / @whurval

10/14/2019 at 09:26AM

33
#3729 - Max Thomas / @eitas

12/27/2019 at 05:39PM

33
#3730 - Carl Smestad / @CarlSmes

03/30/2020 at 05:41PM

34
#3731 - Super Cheezy Guy / @_SuperCheezyGuy

04/10/2016 at 02:53AM

34
#3732 - German Robayo Paz / @germanrobayo33

08/25/2017 at 10:34PM

34
#3733 - rabbitear / @rabbitear

01/21/2018 at 12:25AM

34
#3734 - Dongha Lee / @mathicalee

05/06/2018 at 07:25PM

34
#3735 - Ali Mostafavi / @Ali_Mostafavi_

09/04/2018 at 04:59PM

34
#3736 - Dave Brda / @BrdaDave

09/28/2018 at 01:22AM

34
#3737 - Pumpkin Parapet / @PumpkinParapet

10/05/2018 at 07:06PM

34
#3738 - gWOLF3 / @GL3NNWOLF3

03/28/2019 at 04:52PM

34
#3739 - Gautham Velchuru / @skaehalk

09/30/2019 at 06:25AM

34
#3740 - Zachary Peterson / @zpeterson16

11/26/2019 at 03:54PM

34
#3741 - 김범준 / @kmbmjn

01/31/2020 at 12:08PM

34
#3742 - John Smith / @JohnSmi38307095

03/19/2021 at 02:03PM

34
#3743 - vimgolfer11111 / @vimgolfer183430

09/20/2023 at 07:31PM

35
#3744 - Sergey Sudakovich / @ssudakovich

05/02/2016 at 06:42PM

35
#3745 - Giorgi Jibladze / @Jibla

12/26/2017 at 11:56AM

35
#3746 - Wake Lankard / @wakelank

05/03/2018 at 09:44PM

35
#3747 - Dmitry Ilyin / @widgetii

05/05/2018 at 06:51PM

35
#3748 - Alexei Eleusis Díaz / @alexeieleusis

08/01/2018 at 12:53AM

35
#3749 - Chirag Joshi / @thechijos

08/13/2018 at 12:18AM

35
#3750 - Louis Palma / @Lou_C137

08/28/2018 at 08:02PM