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

2391 active golfers, 10849 entries

Leaderboard (lowest score wins):
14
#481 - omrisarig / @omrisarig

12/28/2018 at 05:07PM

14
#482 - heppen / @heppen_He

01/02/2019 at 08:11AM

14
#483 - pankaj singh / @pankajsingh013

01/09/2019 at 02:45PM

14
#484 - Tomás Cetkovich / @SaladeDeMerde

01/15/2019 at 02:17PM

15
#485 - Piotr Walkusz / @piotrwalkusz1

08/11/2018 at 07:43PM

15
#486 - A E / @aechirps

09/11/2018 at 01:30AM

15
#487 - Robin De Mol / @RobinDeMol

09/14/2018 at 10:11AM

15
#488 - Vasil Mikhalenya / @bazillek

09/21/2018 at 07:30PM

15
#489 - Sebastian Korten / @FlashKorten

10/12/2018 at 04:28PM

15
#490 - Commi / @hellocommi

11/23/2018 at 07:29PM

15
#491 - 波波 / @sbob87

01/04/2019 at 06:08AM

15
#492 - Fl4t / @Fl4t

01/07/2019 at 08:02PM

16
#493 - Saki Gw / @Sakigw

03/31/2016 at 03:59PM

16
#494 - matthieu le grix / @mlegrix

05/01/2016 at 01:09PM

16
#495 - Petro Тrouq / @zulolosi

06/14/2016 at 08:31PM

16
#496 - Yann / @yannstadnicki

03/06/2017 at 10:03PM

16
#497 - Matthias Klauer / @M_Klauer

03/20/2017 at 09:22PM

16
#498 - Alex Linden / @alexwlinden1

04/19/2017 at 05:43PM

16
#499 - Alec Goebel / @bewarethegrue

05/01/2017 at 03:55PM

16
#500 - Etienne de Maricourt / @edemaric

05/02/2017 at 12:07PM

16
#501 - Rami Hovi / @hacker_lawyer

05/07/2017 at 10:57AM

16
#502 - Vladislav Supalov / @vsupalov

05/12/2017 at 10:45AM

16
#503 - Ming Dai / @MingDai2

05/21/2017 at 03:52PM

16
#504 - Brian Hall / @_bruab_

06/15/2017 at 05:17PM

16
#505 - moritz / @moritz45081535

06/18/2017 at 12:20PM

16
#506 - Julian Felix / @h4wked

06/27/2017 at 03:25PM

16
#507 - 杨洋 / @176795444

06/30/2017 at 01:33PM

16
#508 - Rowan Tree / @RowanTr88447528

07/21/2017 at 05:33AM

16
#509 - 徐学健 / @zebrallel

08/18/2017 at 03:49AM

16
#510 - Gabriel Somoza / @gabriel_somoza

08/21/2017 at 10:14PM