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 3063 remaining solutions by signing in and submitting your own entry
#3064 ν˜Έλ„λ₯΄ / @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

3064 active golfers, 14411 entries

Leaderboard (lowest score wins):
16
#691 - guxbug / @guxbug1

12/18/2018 at 03:19PM

16
#692 - beew71493 / @beew71493

12/18/2018 at 07:59PM

16
#693 - Kris Ezra / @kris_ezra

12/19/2018 at 07:53PM

16
#694 - Brendan Holmes / @bdholmes

12/28/2018 at 05:33PM

16
#695 - Jose Villalta πŸ‘¨β€πŸ’» / @PhilosoGeekDad

12/31/2018 at 05:44PM

16
#696 - William Robson / @wnrbs

01/02/2019 at 12:39AM

16
#697 - Jonas / @ex1c

01/07/2019 at 05:10PM

16
#698 - abgalphabet / @abgalphabet

01/12/2019 at 12:57PM

16
#699 - Mangeart Yoric / @yoricm

01/14/2019 at 03:11PM

16
#700 - Stefano Bettani / @StefanoBettani

01/19/2019 at 03:02PM

16
#701 - brian / @b_

01/28/2019 at 03:45AM

16
#702 - Patrick Lavin / @LavinComputes

01/30/2019 at 04:38PM

16
#703 - Ng Sek Long / @NgSekLong

02/09/2019 at 01:43PM

16
#704 - sjcomp / @sjcomp

02/20/2019 at 01:47PM

16
#705 - sisi100 / @s1si100

02/24/2019 at 03:08PM

16
#706 - hn9u / @hn9u

02/25/2019 at 05:31PM

16
#707 - ahm4711 / @ahm4711

03/01/2019 at 02:36PM

16
#708 - maq / @maq41476369

03/05/2019 at 01:26PM

16
#709 - Svetlin PENKOV / @SvetlinPenkov

03/11/2019 at 11:37AM

16
#710 - Ivo Tripunovic / @ivo_tripunovic

03/14/2019 at 09:03AM

16
#711 - longB / @longB77353628

03/20/2019 at 08:07AM

16
#712 - Murmus / @MurmusCTF

03/22/2019 at 03:08PM

16
#713 - Alex Mihov / @AlexMihov

03/27/2019 at 03:29PM

16
#714 - Antoine Gagelin / @AntoineGagelin

03/29/2019 at 03:51PM

16
#715 - Dryvnt / @Dryvnt

04/04/2019 at 12:39PM

16
#716 - smillence / @smillence1

04/10/2019 at 05:43AM

16
#717 - Ben Weinstein-Raun / @benwr

04/11/2019 at 06:00AM

16
#718 - Gitsnik / @dracyrys

04/18/2019 at 02:37PM

16
#719 - ow / @ow34480012

04/30/2019 at 07:25PM

16
#720 - Guilherme Henrique C / @todolar

05/02/2019 at 06:56AM