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

2886 active golfers, 13381 entries

Leaderboard (lowest score wins):
33
#2791 - Joanna / @joannac_

05/12/2019 at 05:56AM

33
#2792 - kevinski / @kevinsk30746831

08/21/2019 at 06:12PM

34
#2793 - Super Cheezy Guy / @_SuperCheezyGuy

04/10/2016 at 02:53AM

34
#2794 - German Robayo Paz / @germanrobayo33

08/25/2017 at 10:34PM

34
#2795 - rabbitear / @rabbitear

01/21/2018 at 12:25AM

34
#2796 - Dongha Lee / @mathicalee

05/06/2018 at 07:25PM

34
#2797 - Ali Mostafavi / @Ali_Mostafavi_

09/04/2018 at 04:59PM

34
#2798 - Dave Brda / @BrdaDave

09/28/2018 at 01:22AM

34
#2799 - Pumpkin Parapet / @PumpkinParapet

10/05/2018 at 07:06PM

34
#2800 - gWOLF3 / @GL3NNWOLF3

03/28/2019 at 04:52PM

35
#2801 - Sergey Sudakovich / @ssudakovich

05/02/2016 at 06:42PM

35
#2802 - Giorgi Jibladze / @Jibla

12/26/2017 at 11:56AM

35
#2803 - Wake Lankard / @wakelank

05/03/2018 at 09:44PM

35
#2804 - Dmitry Ilyin / @widgetii

05/05/2018 at 06:51PM

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

08/01/2018 at 12:53AM

35
#2806 - Chirag Joshi / @thechijos

08/13/2018 at 12:18AM

35
#2807 - Louis Palma / @Lou_C137

08/28/2018 at 08:02PM

35
#2808 - 茶々豆 / @chachamame0420

10/19/2018 at 12:48PM

35
#2809 - 陳欣俞 / @newfishg

11/15/2018 at 05:39AM

35
#2810 - Matador Funkmann / @MFunkmann

05/14/2019 at 11:18PM

35
#2811 - Matt / @m4tty1c3

07/25/2019 at 07:19PM

35
#2812 - Tosiaki / @Tosiaki1

09/16/2019 at 01:39PM

36
#2813 - Nir S / @N1RS

04/07/2016 at 09:40AM

36
#2814 - Mike Krason / @mfkrason

10/27/2016 at 07:50PM

36
#2815 - Nihal Narayanan / @nihaloct31

09/10/2017 at 12:18PM

36
#2816 - – / @nabn_

04/27/2018 at 10:07AM

36
#2817 - Christoph Heim / @iLords

07/28/2018 at 11:14AM

36
#2818 - Jason Aeh / @JasonAeh

07/30/2018 at 06:14PM

36
#2819 - Stefan Schneider / @hinogi

09/05/2018 at 11:25AM

36
#2820 - alaric27 / @alaric272

01/08/2019 at 09:15AM