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

2955 active golfers, 13765 entries

Leaderboard (lowest score wins):
16
#721 - XiaoXiaoLui / @XiaoXiaoLui1

08/04/2019 at 06:08AM

16
#722 - Wistan Chou / @wisty97

08/14/2019 at 04:22PM

16
#723 - Maxime Turquetil / @maturquetil

08/21/2019 at 02:40PM

16
#724 - spock900 / @spock9002

08/24/2019 at 09:15AM

16
#725 - blub / @agorilladriving

08/27/2019 at 03:15PM

16
#726 - Ivo Blöchliger / @aigledesalpes

09/01/2019 at 05:26PM

16
#727 - jonathangai / @jonathangai1

09/01/2019 at 09:07PM

16
#728 - David Lignell / @davidlignell

09/07/2019 at 10:01PM

16
#729 - asfsef / @asfsef5

09/12/2019 at 07:49AM

16
#730 - Alan Martins Silva / @alanfortlink

09/12/2019 at 07:12PM

16
#731 - IronTiger Park / @IrontigerP

09/27/2019 at 07:08AM

16
#732 - Jake Nixon / @thejakenixon

09/29/2019 at 06:49AM

16
#733 - Sebastien Baudray / @sbaudray

09/29/2019 at 07:01PM

16
#734 - Adrian Craciun / @adi_craciun

09/30/2019 at 12:43PM

16
#735 - Howl / @Howlxx55

10/07/2019 at 01:54PM

16
#736 - Stephen Westhead / @CraziCrow

10/08/2019 at 02:39PM

16
#737 - Emil Braserud / @Erdustiggen

10/10/2019 at 06:17PM

16
#738 - Sam O'Malley / @Samuel_OMalley

10/11/2019 at 03:21PM

16
#739 - KlondikeBaer / @BaerKlondike

10/16/2019 at 08:04PM

16
#740 - artgur / @artgur

10/18/2019 at 02:25AM

17
#741 - Cristian Lupașcu / @clupasq

03/30/2016 at 10:08AM

17
#742 - Kai Yuan / @kentyuan

03/30/2016 at 10:22AM

17
#743 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 09:48PM

17
#744 - Patrick Elliott / @thatcsguy

03/30/2016 at 10:48PM

17
#745 - Jon Krause / @jkrause314

03/30/2016 at 11:20PM

17
#746 - glepha / @glepha_vim

03/31/2016 at 06:00AM

17
#747 - Defts = DvToons / @defts

03/31/2016 at 07:15AM

17
#748 - Mister Knister / @vimgolf_ctrl_x

03/31/2016 at 07:26AM

17
#749 - Smylers / @Smylers2

03/31/2016 at 08:01AM

17
#750 - Jan Bundesmann / @janbundesmann

03/31/2016 at 01:44PM