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

2771 active golfers, 12725 entries

Leaderboard (lowest score wins):
36
#2701 - Nir S / @N1RS

04/07/2016 at 09:40AM

36
#2702 - Mike Krason / @mfkrason

10/27/2016 at 07:50PM

36
#2703 - Nihal Narayanan / @nihaloct31

09/10/2017 at 12:18PM

36
#2704 - – / @nabn_

04/27/2018 at 10:07AM

36
#2705 - Christoph Heim / @iLords

07/28/2018 at 11:14AM

36
#2706 - Jason Aeh / @JasonAeh

07/30/2018 at 06:14PM

36
#2707 - Stefan Schneider / @hinogi

09/05/2018 at 11:25AM

36
#2708 - alaric27 / @alaric272

01/08/2019 at 09:15AM

36
#2709 - Inge Becht / @IngeBecht

01/08/2019 at 06:24PM

36
#2710 - Marko Z / @MarkoZ24828260

03/13/2019 at 03:43PM

36
#2711 - imnottheonlyspy / @imnottheonlyspy

04/25/2019 at 12:43PM

37
#2712 - Veeral Patel / @torrex18

08/22/2016 at 03:53AM

37
#2713 - king_zorba / @StrangeZorba

09/21/2016 at 07:18PM

37
#2714 - James Burns / @James_Ian_Burns

10/28/2016 at 01:39PM

37
#2715 - SpermWhale / @AwhaleThatCodes

04/28/2017 at 12:36PM

37
#2716 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 07:08PM

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

03/13/2018 at 02:37AM

37
#2718 - Artsiom Kashkou / @pochka15

07/09/2018 at 05:49PM

37
#2719 - Jakub Tesárek / @JakubTesarek

07/24/2018 at 12:47PM

38
#2720 - Cameron Dershem / @jerknextdoor

10/04/2016 at 11:44PM

38
#2721 - The9ain / @the9ain

08/03/2018 at 02:29AM

38
#2722 - Cole Hudson / @colejhudson

11/21/2018 at 05:47PM

38
#2723 - Carsano / @DamienFbn

03/03/2019 at 09:36PM

38
#2724 - James Perry Hartman / @JauntyJPH

03/27/2019 at 12:09PM

39
#2725 - Ayberk Yılmaz / @thelatesttrick

12/28/2016 at 09:28PM

39
#2726 - eleonora V Genechten / @eleonoraV_G

05/03/2018 at 07:40PM

39
#2727 - Urso / @UrsoAcademy

01/31/2019 at 08:16PM

39
#2728 - Marco Cárdenas / @mgtcardenas

03/09/2019 at 06:51PM

40
#2729 - kai / @klc1989110

08/27/2016 at 12:42AM

40
#2730 - kyusuke / @8140i2865_3

04/06/2018 at 04:50AM