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

3018 active golfers, 14168 entries

Leaderboard (lowest score wins):
36
#2941 - Christoph Heim / @iLords

07/28/2018 at 11:14AM

36
#2942 - Jason Aeh / @JasonAeh

07/30/2018 at 06:14PM

36
#2943 - Stefan Schneider / @hinogi

09/05/2018 at 11:25AM

36
#2944 - alaric27 / @alaric272

01/08/2019 at 09:15AM

36
#2945 - Inge Becht / @IngeBecht

01/08/2019 at 06:24PM

36
#2946 - Marko Z / @MarkoZ24828260

03/13/2019 at 03:43PM

36
#2947 - imnottheonlyspy / @imnottheonlyspy

04/25/2019 at 12:43PM

37
#2948 - Veeral Patel / @torrex18

08/22/2016 at 03:53AM

37
#2949 - king_zorba / @StrangeZorba

09/21/2016 at 07:18PM

37
#2950 - James Burns / @James_Ian_Burns

10/28/2016 at 01:39PM

37
#2951 - SpermWhale / @AwhaleThatCodes

04/28/2017 at 12:36PM

37
#2952 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 07:08PM

37
#2953 - DQMSL対戦募集ツイートbot / @foronlinegamer

03/13/2018 at 02:37AM

37
#2954 - Artsiom Kashkou / @pochka15

07/09/2018 at 05:49PM

37
#2955 - Jakub Tesárek / @JakubTesarek

07/24/2018 at 12:47PM

37
#2956 - Ernesto Fornaciari / @ernesto11a

10/24/2019 at 01:03PM

38
#2957 - Cameron Dershem / @jerknextdoor

10/04/2016 at 11:44PM

38
#2958 - The9ain / @the9ain

08/03/2018 at 02:29AM

38
#2959 - Cole Hudson / @colejhudson

11/21/2018 at 05:47PM

38
#2960 - Carsano / @DamienFbn

03/03/2019 at 09:36PM

38
#2961 - James Perry Hartman / @JauntyJPH

03/27/2019 at 12:09PM

38
#2962 - Juan Francisco Bertona / @Weed1an

10/11/2019 at 09:57AM

39
#2963 - Ayberk Yılmaz / @thelatesttrick

12/28/2016 at 09:28PM

39
#2964 - eleonora V Genechten / @eleonoraV_G

05/03/2018 at 07:40PM

39
#2965 - Urso / @UrsoAcademy

01/31/2019 at 08:16PM

39
#2966 - Marco Cárdenas / @mgtcardenas

03/09/2019 at 06:51PM

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

08/18/2019 at 10:44AM

40
#2968 - kai / @klc1989110

08/27/2016 at 12:42AM

40
#2969 - kyusuke / @8140i2865_3

04/06/2018 at 04:50AM

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

05/06/2018 at 12:49PM