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

3578 active golfers, 17274 entries

Leaderboard (lowest score wins):
22
#2581 - Sina Khalili / @sinathagreat

02/17/2020 at 01:04PM

22
#2582 - Vitor / @vitorldfreitas

03/21/2020 at 09:45PM

22
#2583 - Victor Ramirez / @virako

04/01/2020 at 10:24AM

22
#2584 - Nick Lee / @TooManyNickLees

04/04/2020 at 04:03PM

22
#2585 - Caio Marcelo / @CaioMCG

04/06/2020 at 02:44AM

22
#2586 - fedja golf / @FedjaGolf

04/13/2020 at 12:25AM

22
#2587 - Jan Fiser / @dmmn082

05/08/2020 at 11:43AM

22
#2588 - Essiane Abel / @essianeabel

05/09/2020 at 11:56AM

22
#2589 - Manish Baghel / @ManishBaghelz

05/14/2020 at 08:03AM

22
#2590 - Jimmy Tang / @moosekk

05/14/2020 at 09:50PM

22
#2591 - Henry / @hqin2011

05/17/2020 at 08:56AM

22
#2592 - Salman AlSaigal / @Salman_AlSaigal

05/20/2020 at 12:35AM

22
#2593 - Micael Jarniac / @MicaelJarniac

06/14/2020 at 01:20AM

22
#2594 - smlbrngr / @smlbrngr

06/14/2020 at 03:34PM

22
#2595 - Hannes Käufler / @hanneskaeufler

07/06/2020 at 08:35PM

22
#2596 - GenericHardwareGamer / @GnrikHrdwrGamer

07/26/2020 at 06:55AM

22
#2597 - Martin Bielik / @mabielik

08/06/2020 at 09:13PM

22
#2598 - stanley förster / @stnlyfrstr

09/23/2020 at 01:32PM

23
#2599 - Samuel Walladge / @srwalladge

03/30/2016 at 03:59AM

23
#2600 - AleksandarTrifunovic / @akstrfn

03/30/2016 at 08:51AM

23
#2601 - Kevin Ilphrin Pellet / @Kilphrin

03/30/2016 at 09:14PM

23
#2602 - Niru Maheswaranathan / @niru_m

04/03/2016 at 10:19PM

23
#2603 - Karolis / @k_lesevicius

04/10/2016 at 01:57PM

23
#2604 - Nathan Schulte / @nmschulte

04/11/2016 at 07:55PM

23
#2605 - Juampy NR / @juampynr

04/14/2016 at 09:32AM

23
#2606 - Tj / @yrddy

04/19/2016 at 10:41AM

23
#2607 - payoub / @pay0ub

04/20/2016 at 12:30AM

23
#2608 - Gabriel Florit / @gabrielflorit

04/20/2016 at 04:24AM

23
#2609 - Feras / @faldah

04/24/2016 at 12:58AM

23
#2610 - Kevin R / @TheKevinthDay

04/25/2016 at 08:49PM