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

2644 active golfers, 12155 entries

Leaderboard (lowest score wins):
16
#601 - Rasmus Bergström / @JRasmusBm

09/25/2018 at 03:46PM

16
#602 - DoubleIA / @IaDouble

09/30/2018 at 08:38AM

16
#603 - Taylor Shane Hawkins / @underempire

10/08/2018 at 03:20PM

16
#604 - Benjamin Kiesl / @BenjaminKiesl

10/10/2018 at 12:48PM

16
#605 - Tuomas Jokioja / @TJokioja

10/12/2018 at 05:56PM

16
#606 - Jan Chwiejczak / @iamjanhak

10/22/2018 at 09:38PM

16
#607 - Mike Adams / @davis_cromwell

11/02/2018 at 02:58AM

16
#608 - 唐偉 / @tangw

11/09/2018 at 04:09AM

16
#609 - Parker Couch / @couch_parker

11/12/2018 at 05:33PM

16
#610 - 永森 / @nagakei05

11/16/2018 at 04:38AM

16
#611 - 905garlicjack / @905garlicjack

11/16/2018 at 12:24PM

16
#612 - Bruno Cunha / @bruncun

11/17/2018 at 06:37PM

16
#613 - Lucas Nussbaum / @LucasNussbaum

12/02/2018 at 08:36AM

16
#614 - guxbug / @guxbug1

12/18/2018 at 03:19PM

16
#615 - beew71493 / @beew71493

12/18/2018 at 07:59PM

16
#616 - Kris Ezra / @kris_ezra

12/19/2018 at 07:53PM

16
#617 - Brendan Holmes / @bdholmes

12/28/2018 at 05:33PM

16
#618 - Jose Villalta 👨‍💻 / @PhilosoGeekDad

12/31/2018 at 05:44PM

16
#619 - William Robson / @wnrbs

01/02/2019 at 12:39AM

16
#620 - Jonas / @ex1c

01/07/2019 at 05:10PM

16
#621 - abgalphabet / @abgalphabet

01/12/2019 at 12:57PM

16
#622 - Mangeart Yoric / @yoricm

01/14/2019 at 03:11PM

16
#623 - Stefano Bettani / @StefanoBettani

01/19/2019 at 03:02PM

16
#624 - brian / @b_

01/28/2019 at 03:45AM

16
#625 - Patrick Lavin / @LavinComputes

01/30/2019 at 04:38PM

16
#626 - Ng Sek Long / @NgSekLong

02/09/2019 at 01:43PM

16
#627 - sjcomp / @sjcomp

02/20/2019 at 01:47PM

16
#628 - sisi100 / @s1si100

02/24/2019 at 03:08PM

16
#629 - hn9u / @hn9u

02/25/2019 at 05:31PM

16
#630 - ahm4711 / @ahm4711

03/01/2019 at 02:36PM