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

3400 active golfers, 16262 entries

Leaderboard (lowest score wins):
24
#2881 - Hans Lidiki / @HLidiki

09/07/2019 at 05:20PM

24
#2882 - Ioannis Cherouvim / @cherouvim

09/11/2019 at 06:36PM

24
#2883 - Thomas Edlich / @grumpybavarian

09/27/2019 at 09:10PM

24
#2884 - siledUp / @siledev1

10/02/2019 at 10:10PM

24
#2885 - Michael Parrott / @MikeParrott94

10/06/2019 at 02:34AM

24
#2886 - Keith Klassen / @Collegekid491

11/02/2019 at 09:47PM

24
#2887 - Max Coplan / @mchcopl

11/03/2019 at 11:17PM

24
#2888 - Leandro Lourenci / @lourenci

11/27/2019 at 10:44PM

24
#2889 - ちくあな / @navcw

12/06/2019 at 03:27PM

24
#2890 - Moritz Biersack / @TheAppPeak

12/19/2019 at 09:16AM

24
#2891 - Samuello / @Samuell45812609

12/30/2019 at 02:09AM

24
#2892 - Bitt Faulk / @bittfaulk

02/18/2020 at 09:39PM

24
#2893 - Jakub / @Jaqbek

02/24/2020 at 03:29PM

24
#2894 - 廖彥智 / @JeffYenchih

03/03/2020 at 10:20AM

24
#2895 - Harsh Raj / @harshraj22aug

03/06/2020 at 06:52AM

24
#2896 - Chris Fowler / @ChrisFowler3

04/12/2020 at 08:08AM

24
#2897 - volandkit / @volandkit

04/17/2020 at 10:45PM

24
#2898 - Francsico / @Francsi31459977

04/18/2020 at 12:41PM

24
#2899 - sydman / @sydman11

04/30/2020 at 06:27AM

24
#2900 - dotvimrc / @dotvimrc1

05/03/2020 at 03:55PM

24
#2901 - whale / @Hari84444713

05/04/2020 at 01:46AM

24
#2902 - Alexandre Devienne / @alexdevienn

05/09/2020 at 12:37PM

24
#2903 - jhoanfalcon / @jhoanfalcon1

05/10/2020 at 05:23PM

24
#2904 - Derrick Anderson - Solstice / @DerrickSolstice

05/14/2020 at 10:06PM

24
#2905 - Леонид / @miiasond

05/25/2020 at 07:04AM

24
#2906 - sunny / @pooisonner

05/29/2020 at 04:27AM

25
#2907 - jb M / @Jiboo_hey

04/21/2016 at 03:04PM

25
#2908 - alekseiKO / @alekseiKO

04/26/2016 at 04:21PM

25
#2909 - David Bjergaard / @dbjergaard

05/03/2016 at 08:25PM

25
#2910 - Ian Malerich / @IMalerich

05/03/2016 at 09:20PM