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

2498 active golfers, 11373 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

14
#485 - Sébastien Roccaserra / @sroccaserra

01/25/2019 at 11:44PM

14
#486 - makke_vn / @makke_vn

01/26/2019 at 05:37PM

14
#487 - Marc Päpper / @mpaepper

01/28/2019 at 02:30PM

14
#488 - Narwaro / @Narwaro

01/30/2019 at 08:20PM

14
#489 - Titouan Teyssier / @TitouanT_

02/01/2019 at 01:21PM

14
#490 - Rene Ribaud / @Uggla_

02/04/2019 at 12:54AM

14
#491 - Christopher Weyand / @swordman378

02/11/2019 at 01:49PM

14
#492 - David Accomazzo / @WordsofDefiance

02/27/2019 at 07:06PM

14
#493 - james_bunch / @james_bunch

03/01/2019 at 12:31AM

14
#494 - serent / @serent

03/01/2019 at 12:33AM

14
#495 - Alessio / @aleb1an

03/09/2019 at 09:01PM

14
#496 - k24w24 / @k24w24

03/16/2019 at 05:15AM

14
#497 - enji / @enji_jp

03/16/2019 at 05:35AM

15
#498 - Piotr Walkusz / @piotrwalkusz1

08/11/2018 at 07:43PM

15
#499 - A E / @aechirps

09/11/2018 at 01:30AM

15
#500 - Robin De Mol / @RobinDeMol

09/14/2018 at 10:11AM

15
#501 - Vasil Mikhalenya / @bazillek

09/21/2018 at 07:30PM

15
#502 - Sebastian Korten / @FlashKorten

10/12/2018 at 04:28PM

15
#503 - Commi / @hellocommi

11/23/2018 at 07:29PM

15
#504 - 波波 / @sbob87

01/04/2019 at 06:08AM

15
#505 - Fl4t / @Fl4t

01/07/2019 at 08:02PM

15
#506 - Federico / @gselsette

01/23/2019 at 12:11AM

15
#507 - Daniel Steinberg / @dstein64

01/29/2019 at 05:59AM

15
#508 - Andy / @andm1992

02/28/2019 at 09:14PM

15
#509 - zh0ng / @zh00ng

03/06/2019 at 07:49AM

15
#510 - T A / @SirAviles

03/17/2019 at 09:57PM