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

2883 active golfers, 13373 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_ja

03/16/2019 at 05:35AM

14
#498 - Unfair / @ItIsUnfair

03/24/2019 at 08:08PM

14
#499 - Tom / @Tom39997681

03/27/2019 at 09:46AM

14
#500 - 🅷🅰🆁🆁🆈 / @HarryAAbrahams1

03/28/2019 at 10:17AM

14
#501 - Gerbier Thomas / @GerbierThomas1

03/29/2019 at 03:39PM

14
#502 - Maximilian F. / @TheMaex

03/30/2019 at 01:47AM

14
#503 - David A. Lyon / @dauglyon

04/02/2019 at 03:55PM

14
#504 - Remy Oudemans / @OudemansRemy

04/06/2019 at 10:38AM

14
#505 - hoge2341836 / @RootShunsuke

04/06/2019 at 08:04PM

14
#506 - Mikhail K. / @_mkl_k

04/06/2019 at 09:16PM

14
#507 - Joel Eriksson / @OwariDa

04/08/2019 at 12:29PM

14
#508 - alekfed / @alek_fed

04/14/2019 at 09:34AM

14
#509 - John / @John40423001

04/14/2019 at 01:23PM

14
#510 - Jaan Toots / @JaanToots

04/18/2019 at 11:02AM