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

2639 active golfers, 12107 entries

Leaderboard (lowest score wins):
16
#541 - Rami Hovi / @hacker_lawyer

05/07/2017 at 10:57AM

16
#542 - Vladislav Supalov / @vsupalov

05/12/2017 at 10:45AM

16
#543 - Ming Dai / @MingDai2

05/21/2017 at 03:52PM

16
#544 - Brian Hall / @_bruab_

06/15/2017 at 05:17PM

16
#545 - moritz / @moritz45081535

06/18/2017 at 12:20PM

16
#546 - Julian Felix / @h4wked

06/27/2017 at 03:25PM

16
#547 - 杨洋 / @176795444

06/30/2017 at 01:33PM

16
#548 - Rowan Tree / @RowanTr88447528

07/21/2017 at 05:33AM

16
#549 - 徐学健 / @zebrallel

08/18/2017 at 03:49AM

16
#550 - Gabriel Somoza / @gabriel_somoza

08/21/2017 at 10:14PM

16
#551 - SirVimGolf / @SirVimGolf

08/23/2017 at 10:47AM

16
#552 - Peter B / @l0wm4x

08/27/2017 at 06:49PM

16
#553 - Andrew Hlavats / @farthestworld

09/03/2017 at 02:27PM

16
#554 - bencvim / @bencvim

09/03/2017 at 11:45PM

16
#555 - Cyhors / @Cyhors

09/12/2017 at 01:37PM

16
#556 - F / @gofilby

09/26/2017 at 01:33PM

16
#557 - Matt Rixman / @MattRixman

09/29/2017 at 04:40PM

16
#558 - BarbaJol / @drpproteus

10/01/2017 at 02:01PM

16
#559 - Brian Vodicka / @BrianVodicka2

10/07/2017 at 08:52PM

16
#560 - しぇぱっち / @shepabashi

10/20/2017 at 03:06AM

16
#561 - BouboulouVimGolf / @BouboulouVG

10/31/2017 at 03:34PM

16
#562 - Mihai / @mihaicristiant

11/08/2017 at 07:32PM

16
#563 - Hawk Newton / @hawknewton

11/13/2017 at 08:23PM

16
#564 - Zachary Neubert / @Mr_Saturn16347

11/16/2017 at 09:25PM

16
#565 - QingyuZhao / @zhao_qingyu

11/21/2017 at 06:35AM

16
#566 - test / @_test_acc_

11/23/2017 at 09:49AM

16
#567 - BareTull / @BareTull3

12/03/2017 at 04:32PM

16
#568 - Justin Sermeno / @justinsermeno

12/04/2017 at 05:59PM

16
#569 - Joe Kerian / @kerian

01/08/2018 at 05:00PM

16
#570 - xyz / @menhej

02/03/2018 at 02:36PM